|
Blender V4.3
|
Inherits blender::ed::sculpt_paint::CurvesEffect.
Public Member Functions | |
| ScaleCurvesEffect (bool scale_up, const Brush &brush) | |
| void | execute (CurvesGeometry &curves, const IndexMask &curve_mask, const Span< float > move_distances_cu, MutableSpan< float3 > positions_cu) override |
| float | compute_poly_curve_length (const Span< float3 > positions) |
Public Member Functions inherited from blender::ed::sculpt_paint::CurvesEffect | |
| virtual | ~CurvesEffect ()=default |
Change the length of curves by scaling them uniformly.
Definition at line 172 of file curves_sculpt_grow_shrink.cc.
|
inline |
Definition at line 178 of file curves_sculpt_grow_shrink.cc.
|
inline |
Definition at line 203 of file curves_sculpt_grow_shrink.cc.
References blender::math::distance(), and length().
Referenced by execute().
|
inlineoverridevirtual |
Implements blender::ed::sculpt_paint::CurvesEffect.
Definition at line 180 of file curves_sculpt_grow_shrink.cc.
References compute_poly_curve_length(), Brush::curves_sculpt_settings, blender::index_mask::IndexMask::foreach_index(), BrushCurvesSculptSettings::minimum_length, blender::math::safe_divide(), and blender::MutableSpan< T >::slice().