1

I would need to get and compare the area of the polygons/faces of objects of different shape. I found the variable 'area' in class bpy.types.MeshPolygon but this does not give me the real area of the polygon after scaling and modifying a mesh primitive. Why is this? Is there another way to get the area?

Thank you for your time!

Kirjain
  • 167
  • 1
  • 5
  • 2
    Did you scale the mesh geometry in edit mode, or is the object datablock scaled? Perhaps if you use Ctrl-a to apply the scale it will adjust the mesh so that the area is what you want. – Mutant Bob Jan 26 '16 at 16:35
  • 1
    Thank you for the quick answer! I had indeed overlooked applying the scaling! – Kirjain Jan 26 '16 at 18:15
  • The short answer is with my_face.calc_area(), but anyone trying to calculate polygon area should check out this answer, because quads may return incorrect area values unless first triangulated. – Mentalist Nov 18 '20 at 21:05

0 Answers0