Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
How do I get the (worldspace units) of the area of any given mesh face? Looking for a python solution.
most faces are not rectilinear and might contain any number of edges, so getting the attaced verts and doing some sort of spatial calculation is a nightmarish idea.
OpenMaya.MItMeshPolygon has a getArea() function but I can't figure out how to jump through all the hoops to actually use it, because OpenMaya makes you recast everything through a hundred different class instances just to do simple things. And the documentation isn't very helpful.
def get_face_area( 'polySurface1.f[0]'):
area =?????????????????????
return area
Thanks for any help.
Solved! Go to Solution.