count edges on selected faces

Can anybody help whit this one, I already tried with polyop.getEdgeFaces,getEdgesByFlag, but I can`t figure this out.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kredka's picture

thank you very much

thank you very much

miauu's picture

.

Use polyop.getEdgesUsingFace
Add all edges to one bitarray to avoid having edges multiple times when they are adjacent for two faces.

Also, the ugly solution:
convert face selection to edge selection and count edges:

$.EditablePoly.ConvertSelection #Face #Edge
$.modifiers[#Edit_Poly].ConvertSelection #Face #Edge

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.