PDA

View Full Version : Get each element of Poly as mesh.


scorpion007
06-17-2006, 03:29 AM
Hi, I would like to mimic the behaviour of the Shape Instance node in PFlow when you check the "Object elements" box.
Basically, i want to read an Editable poly, get each Element, and store it in an array, then later get its transformation etc.

How can i do this?

hblan
06-19-2006, 12:58 AM
elements of mesh or poly is only a group of faces ,use this command to get them :

polyop.getElementsUsingFace()
meshop.getElementsUsingFace()

it will return a bitarray of faces , eg: #{1..5} ,then make a loop , do what u want with each face .

maybe helpful

CGTalk Moderation
06-19-2006, 12:58 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.