diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-05-07 04:12:13 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-05-07 04:12:13 +0400 |
commit | 4a9eba45170c7fdb6c78906340769ba6355dc495 (patch) | |
tree | f645e7c1ffdbfba463814b90e5db2406d0a1467d /object_print3d_utils/mesh_helpers.py | |
parent | 5009787d61ec9fb6e056f86deedca6844bbb3d6a (diff) |
use bmesh volume function, show cubit inches for volume/area statistics.
Diffstat (limited to 'object_print3d_utils/mesh_helpers.py')
-rw-r--r-- | object_print3d_utils/mesh_helpers.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/object_print3d_utils/mesh_helpers.py b/object_print3d_utils/mesh_helpers.py index faf16d2e..4996ca69 100644 --- a/object_print3d_utils/mesh_helpers.py +++ b/object_print3d_utils/mesh_helpers.py @@ -88,26 +88,6 @@ def bmesh_to_object(obj, bm): me.vertices[0].co[0] = me.vertices[0].co[0] -def bmesh_calc_volume(bm): - """ - Calculate the volume of a triangulated bmesh. - """ - def tri_signed_volume(p1, p2, p3): - return p1.dot(p2.cross(p3)) / 6.0 - return abs(sum((tri_signed_volume(*(v.co for v in f.verts)) - for f in bm.faces))) - - -def bmesh_calc_volume_signed(bm): - """ - Calculate the volume of a triangulated bmesh. - """ - def tri_signed_volume(p1, p2, p3): - return p1.dot(p2.cross(p3)) / 6.0 - return sum((tri_signed_volume(*(v.co for v in f.verts)) - for f in bm.faces)) - - def bmesh_calc_area(bm): """ Calculate the surface area. |