wolph / numpy-stl

Simple library to make working with STL files (and 3D objects in general) fast and easy.
http://numpy-stl.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
624 stars 105 forks source link

Areas of faces are all equal to 0.5 #122

Closed DriesAllaerts closed 4 years ago

DriesAllaerts commented 4 years ago

Since numpy-stl version 2.11.0, the areas of the faces of an stl mesh object are all equal to 0.5. I believe this is related to the fact that in version 2.11 the normals are normalised to have a magnitude equal to one, but the surface area is calculated based on these normals.

wolph commented 4 years ago

Yep, you're right that's definitely wrong. I'm creating a new release now :)