Libraries‎ > ‎Library‎ > ‎Environment‎ > ‎

World size 3D

BehaviourComposer: ignore everything before this.
Begin micro-behaviour:
Begin description:
Set the initial size of the 3D world where the model runs.
End description
World size 3D
Begin NetLogo code:
substitute-text-area-for minimum-world-x -9 
substitute-text-area-for maximum-world-x 10 
substitute-text-area-for minimum-world-y -9 
substitute-text-area-for maximum-world-y 10 
substitute-text-area-for minimum-world-z -9 
substitute-text-area-for maximum-world-z 10 
set-world-size minimum-world-x maximum-world-x minimum-world-y maximum-world-y minimum-world-z maximum-world-z
End NetLogo code

Variants

The text areas should contain six numbers: minimum x, maximum x, minimum y, maximum y, minimum z, and maximum z. For example to create a 10x20x30 grid with positive and negative coordinates the numbers should be -4, 5, -9, 10, -19, 20.

How this works

Due to current limitations of NetLogo this specifies only the initial size of the world and cannot be used to change the world dimensions during execution. It uses relies upon the 3D version of NetLogo.

Related micro-behaviours

World size is the two-dimensional version of this.

History

World size 3d was implemented by Ken Kahn on 3 October 2012.

BehaviourComposer: ignore everything after this.
Comments