NetLogo 7.0.0-beta2:

set-topology7.0

set-topology wraps-in-x? wraps-in-y?

Sets the wrapping behavior of the world, such that X coordinates wrap if the first argument was true and Y coordinates wrap if the second argument was true.

Equivalent to adjusting the "World wraps horizontally" and "World wraps vertically" checkboxes in the "Model Settings" window.

set-topology true true
;; wrapping in both directions (torus)
set-topology true false
;; wrapping only in the X direction (vertical cylinder)
set-topology false true
;; wrapping only in the Y direction (horizontal cylinder)
set-topology false false
;; no wrapping (box)

Take me to the full NetLogo Dictionary