diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-12-31 09:49:19 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-01-13 20:24:33 +0300 |
commit | 21b9231d7f5a248027c32dcc7daab3318390c20f (patch) | |
tree | d839a6a1f178c8f1506bce881f94be7575d12607 /source/blender/blenlib/BLI_math_geom.h | |
parent | 00b2c7c5ccc38fd80b3264b248157683b366491f (diff) |
Transform: geodesic distances for proportional edit connected mode
Use approximate geodesic distance computatiom that crosses through triangles
rather than only along edges. Using only edges would give artifacts already
on a simple grid.
Fixes T78752, T35590, T43393, T53602
Differential Revision: https://developer.blender.org/D10068
Diffstat (limited to 'source/blender/blenlib/BLI_math_geom.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_geom.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_geom.h b/source/blender/blenlib/BLI_math_geom.h index c0a9ea91e75..e7dd1821a82 100644 --- a/source/blender/blenlib/BLI_math_geom.h +++ b/source/blender/blenlib/BLI_math_geom.h @@ -826,6 +826,11 @@ MINLINE float shell_v2v2_mid_normalized_to_dist(const float a[2], const float b[ float cubic_tangent_factor_circle_v3(const float tan_l[3], const float tan_r[3]); +/********************************** Geodesics *********************************/ + +float geodesic_distance_propagate_across_triangle( + const float v0[3], const float v1[3], const float v2[3], const float dist1, const float dist2); + /**************************** Inline Definitions ******************************/ #if BLI_MATH_DO_INLINE |