Blender
V3.3
|
Public Member Functions | |
ScaleCurvesEffect (bool scale_up, const Brush &brush) | |
void | execute (CurvesGeometry &curves, const Span< int > curve_indices, const Span< float > move_distances_cu) override |
float | compute_poly_curve_length (const Span< float3 > positions) |
![]() | |
virtual | ~CurvesEffect ()=default |
Change the length of curves by scaling them uniformly.
Definition at line 171 of file curves_sculpt_grow_shrink.cc.
|
inline |
Definition at line 177 of file curves_sculpt_grow_shrink.cc.
|
inline |
Definition at line 206 of file curves_sculpt_grow_shrink.cc.
References blender::math::distance(), blender::math::length(), positions, and blender::bke::curves::segments_num().
|
inlineoverridevirtual |
Implements blender::ed::sculpt_paint::CurvesEffect.
Definition at line 181 of file curves_sculpt_grow_shrink.cc.
References curves, blender::Span< T >::index_range(), and blender::threading::parallel_for().