PDA

View Full Version : On the fly Objects


shivanangel
03-15-2006, 03:23 PM
I was readaing in your help file on how to create onthefly objects.
I see you can make points and lines, but is there anyway to create
faces that unit these points/lines?

farshizzo
03-15-2006, 03:29 PM
Hi,

Sorry, I don't understand exactly what you are asking for. Are you talking about creating triangles? If so, then you can create them like so:viz.startlayer(viz.TRIANGLES)
viz.vertex(0,0,0)
viz.vertex(0,1,0)
viz.vertex(1,0,0)
.
.
.
viz.endlayer()