How to get the selected faces
SMokeyDemon
Posts: 0
Hey guys,
Ive been trying to write a small tool here that involves getting a list of the faces selected in the view port.
(To select the faces I am using the Polygon Group Editor Tool)
Ive managed to get to the DzFacetMesh of the object but this only seems to allow me to set the selected faces or clear them etc. The only hack ive found so far is to create a new face group and assigned the selection to that then read the selected faces from that new face group... but this modifies the face groups which I dont want to do.
Is there a proper way of getting the selected faces?
Cheers,
Comments
This works for me:
awesome thanks for that...
the missing link was the 'getFacetFlagsPtr' function, I spent a few nights digging around and found the DZ_SELECTED_FACE_BIT but couldn't find what to compare it with :-)