Shapes Example 3D
Model was written in NetLogo 3D 4.1pre7
•
Viewed 402 times
•
Downloaded 31 times
•
Run 0 times
Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)
WHAT IS IT?
This code example shows all of the 3D shapes currently available in NetLogo 3D.
Comments and Questions
Please start the discussion about this model!
(You'll first need to log in.)
Click to Run Model
to setup ca let threedshapes [ "default" "square" "circle" "triangle" "cylinder" "line" ] let positions [ "rt 60" "rt 120" "tilt-up 60" "tilt-up 120" "tilt-up 180" ] foreach threedshapes [ crt 1 [ set shape ? set size 2 set xcor (5 * who) + min-pxcor + 6 set ycor max-pycor - 6 set zcor 0 ask patch xcor (max-pycor - 3) 0 [ set plabel ? ] set color red ] ] ask turtles [ let n 0 repeat 5 [ hatch 1 [ set ycor ycor - 4 * (n + 1) run item n positions set n n + 1 ] ] ] end ; Copyright 2005 Uri Wilensky. This code may be freely copied, distributed, ; altered, or otherwise used by anyone for any legal purpose.
There are 3 versions of this model.
Attached files
File | Type | Description | Last updated | |
---|---|---|---|---|
Shapes Example 3D.png | preview | Preview for 'Shapes Example 3D' | over 11 years ago, by Uri Wilensky | Download |
This model does not have any ancestors.
This model does not have any descendants.