Shapes Example 3D

Shapes Example 3D preview image

1 collaborator

Uri_dolphin3 Uri Wilensky (Author)

Tags

(This model has yet to be categorized with any tags)
Model group CCL | Visible to everyone | Changeable by group members (CCL)
Model was written in NetLogo 3D 4.1pre7 • Viewed 295 times • Downloaded 24 times • Run 0 times
Download the 'Shapes Example 3D' modelDownload this modelEmbed this model

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.

Uploaded by When Description Download
Uri Wilensky over 12 years ago Updated from NetLogo 4.1 Download this version
Uri Wilensky over 12 years ago Model from NetLogo distribution Download this version
Uri Wilensky over 12 years ago Shapes Example 3D Download this version

Attached files

File Type Description Last updated
Shapes Example 3D.png preview Preview for 'Shapes Example 3D' over 9 years ago, by Uri Wilensky Download

This model does not have any ancestors.

This model does not have any descendants.