Blender V4.3
blender::ed::sculpt_paint::ScaleCurvesEffect Class Reference

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
 

Detailed Description

Change the length of curves by scaling them uniformly.

Definition at line 172 of file curves_sculpt_grow_shrink.cc.

Constructor & Destructor Documentation

◆ ScaleCurvesEffect()

blender::ed::sculpt_paint::ScaleCurvesEffect::ScaleCurvesEffect ( bool scale_up,
const Brush & brush )
inline

Definition at line 178 of file curves_sculpt_grow_shrink.cc.

Member Function Documentation

◆ compute_poly_curve_length()

float blender::ed::sculpt_paint::ScaleCurvesEffect::compute_poly_curve_length ( const Span< float3 > positions)
inline

Definition at line 203 of file curves_sculpt_grow_shrink.cc.

References blender::math::distance(), and length().

Referenced by execute().

◆ execute()

void blender::ed::sculpt_paint::ScaleCurvesEffect::execute ( CurvesGeometry & curves,
const IndexMask & curve_mask,
const Span< float > move_distances_cu,
MutableSpan< float3 > positions_cu )
inlineoverridevirtual

The documentation for this class was generated from the following file: