diff options
author | Jacques Lucke <jacques@blender.org> | 2022-02-23 18:56:27 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-02-23 18:56:27 +0300 |
commit | 226f0c4fef7e7792c16458cd3e456b169ddce918 (patch) | |
tree | 25c9a8214b66bbb06e86e0953189bb303e561323 /source/blender/blenlib/BLI_math_geom.h | |
parent | 120f16fa1f1efd3cbb4da191d2912e0a6ce3ea59 (diff) |
Curves: initial brush implementations for curves sculpt mode
The main goal here is to add the boilerplate code to make it possible
to add the actual sculpt tools more easily. Both brush implementations
added by this patch are meant to be prototypes which will be removed
or refined in the coming weeks.
Ref T95773.
Differential Revision: https://developer.blender.org/D14180
Diffstat (limited to 'source/blender/blenlib/BLI_math_geom.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_geom.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_geom.h b/source/blender/blenlib/BLI_math_geom.h index 3d2ac5688ff..4bba84f2e29 100644 --- a/source/blender/blenlib/BLI_math_geom.h +++ b/source/blender/blenlib/BLI_math_geom.h @@ -303,6 +303,9 @@ float dist_squared_to_projected_aabb_simple(const float projmat[4][4], const float bbmin[3], const float bbmax[3]); +/** Returns the distance between two 2D line segments. */ +float dist_seg_seg_v2(const float a1[3], const float a2[3], const float b1[3], const float b2[3]); + float closest_to_ray_v3(float r_close[3], const float p[3], const float ray_orig[3], |