|
Blender V5.0
|
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 169 of file curves_sculpt_grow_shrink.cc.
|
inline |
Definition at line 175 of file curves_sculpt_grow_shrink.cc.
|
inline |
Definition at line 200 of file curves_sculpt_grow_shrink.cc.
References blender::math::distance(), length(), and blender::Span< T >::size().
Referenced by execute().
|
inlineoverridevirtual |
Implements blender::ed::sculpt_paint::CurvesEffect.
Definition at line 177 of file curves_sculpt_grow_shrink.cc.
References compute_poly_curve_length(), blender::IndexRange::drop_front(), blender::index_mask::IndexMask::foreach_index(), blender::math::safe_divide(), and blender::MutableSpan< T >::slice().