diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-08-09 22:34:30 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-08-11 14:50:48 +0300 |
commit | 1cd65b274b69990c36187148f873497f282cf5a9 (patch) | |
tree | 91c0ddeeef74ab3177a0c2fcf58e9c3ec70ed770 /source/blender/blenlib/BLI_math_geom.h | |
parent | c3a9fc5efb4a81f6efb28d0c787e17503deaee46 (diff) |
BLI_math: add isect_tri_tri_v2, wrap via mathutils.geometry
Diffstat (limited to 'source/blender/blenlib/BLI_math_geom.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_geom.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_geom.h b/source/blender/blenlib/BLI_math_geom.h index 5ac4ce8be0b..b1437dbe140 100644 --- a/source/blender/blenlib/BLI_math_geom.h +++ b/source/blender/blenlib/BLI_math_geom.h @@ -390,6 +390,13 @@ bool isect_tri_tri_epsilon_v3(const float t_a0[3], float r_i2[3], const float epsilon); +bool isect_tri_tri_v2(const float p1[2], + const float q1[2], + const float r1[2], + const float p2[2], + const float q2[2], + const float r2[2]); + /* water-tight raycast (requires pre-calculation) */ struct IsectRayPrecalc { /* Maximal dimension kz, and orthogonal dimensions. */ |