diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-21 17:24:45 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-21 17:24:45 +0400 |
commit | c667f1ff10c872a894fa7a102e3c254e4cac1386 (patch) | |
tree | bcb206bee71e24155b6903902985a1da791447b7 /source/blender/blenlib/BLI_math_geom.h | |
parent | 1fe7657b4f4513b44e8bb68d1b42ba4845119e5c (diff) |
utility function volume_tetrahedron(), for mathutils and BLI math.
Diffstat (limited to 'source/blender/blenlib/BLI_math_geom.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_geom.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_geom.h b/source/blender/blenlib/BLI_math_geom.h index 7028c7c7530..d24d5fb8c38 100644 --- a/source/blender/blenlib/BLI_math_geom.h +++ b/source/blender/blenlib/BLI_math_geom.h @@ -61,6 +61,8 @@ float area_quad_v3(const float a[3], const float b[3], const float c[3], const f float area_poly_v3(int nr, float verts[][3], const float normal[3]); float area_poly_v2(int nr, float verts[][2]); +float volume_tetrahedron_v3(const float v1[3], const float v2[3], const float v3[3], const float v4[3]); + int is_quad_convex_v3(const float v1[3], const float v2[3], const float v3[3], const float v4[3]); int is_quad_convex_v2(const float v1[2], const float v2[2], const float v3[2], const float v4[2]); |