Blender V5.0
blender::ed::sculpt_paint::SmoothOperationExecutor Struct Reference

Public Member Functions

 SmoothOperationExecutor (const bContext &C)
void execute (SmoothOperation &self, const bContext &C, const StrokeExtension &stroke_extension)
void find_projected_smooth_factors_with_symmetry (MutableSpan< float > r_point_smooth_factors)
void find_projected_smooth_factors (const float4x4 &brush_transform, MutableSpan< float > r_point_smooth_factors)
void find_spherical_smooth_factors_with_symmetry (MutableSpan< float > r_point_smooth_factors)
void find_spherical_smooth_factors (const float3 &brush_pos_cu, const float brush_radius_cu, MutableSpan< float > r_point_smooth_factors)
void smooth (const Span< float > point_smooth_factors)

Public Attributes

SmoothOperationself_ = nullptr
CurvesSculptCommonContext ctx_
Objectobject_ = nullptr
Curvescurves_id_ = nullptr
CurvesGeometrycurves_ = nullptr
VArray< floatpoint_factors_
IndexMaskMemory selected_curve_memory_
IndexMask curve_selection_
CurvesSculptcurves_sculpt_ = nullptr
const Brushbrush_ = nullptr
float brush_radius_base_re_
float brush_radius_factor_
float brush_strength_
float2 brush_pos_re_
CurvesSurfaceTransforms transforms_

Detailed Description

Utility class that actually executes the update when the stroke is updated. That's useful because it avoids passing a very large number of parameters between functions.

Definition at line 40 of file curves_sculpt_smooth.cc.

Constructor & Destructor Documentation

◆ SmoothOperationExecutor()

blender::ed::sculpt_paint::SmoothOperationExecutor::SmoothOperationExecutor ( const bContext & C)
inline

Definition at line 61 of file curves_sculpt_smooth.cc.

References C, and ctx_.

Member Function Documentation

◆ execute()

◆ find_projected_smooth_factors()

◆ find_projected_smooth_factors_with_symmetry()

void blender::ed::sculpt_paint::SmoothOperationExecutor::find_projected_smooth_factors_with_symmetry ( MutableSpan< float > r_point_smooth_factors)
inline

◆ find_spherical_smooth_factors()

void blender::ed::sculpt_paint::SmoothOperationExecutor::find_spherical_smooth_factors ( const float3 & brush_pos_cu,
const float brush_radius_cu,
MutableSpan< float > r_point_smooth_factors )
inline

◆ find_spherical_smooth_factors_with_symmetry()

void blender::ed::sculpt_paint::SmoothOperationExecutor::find_spherical_smooth_factors_with_symmetry ( MutableSpan< float > r_point_smooth_factors)
inline

◆ smooth()

Member Data Documentation

◆ brush_

const Brush* blender::ed::sculpt_paint::SmoothOperationExecutor::brush_ = nullptr

◆ brush_pos_re_

float2 blender::ed::sculpt_paint::SmoothOperationExecutor::brush_pos_re_

◆ brush_radius_base_re_

float blender::ed::sculpt_paint::SmoothOperationExecutor::brush_radius_base_re_

Definition at line 54 of file curves_sculpt_smooth.cc.

Referenced by execute(), and find_projected_smooth_factors().

◆ brush_radius_factor_

float blender::ed::sculpt_paint::SmoothOperationExecutor::brush_radius_factor_

◆ brush_strength_

float blender::ed::sculpt_paint::SmoothOperationExecutor::brush_strength_

◆ ctx_

◆ curve_selection_

IndexMask blender::ed::sculpt_paint::SmoothOperationExecutor::curve_selection_

◆ curves_

CurvesGeometry* blender::ed::sculpt_paint::SmoothOperationExecutor::curves_ = nullptr

◆ curves_id_

Curves* blender::ed::sculpt_paint::SmoothOperationExecutor::curves_id_ = nullptr

◆ curves_sculpt_

CurvesSculpt* blender::ed::sculpt_paint::SmoothOperationExecutor::curves_sculpt_ = nullptr

Definition at line 52 of file curves_sculpt_smooth.cc.

Referenced by execute().

◆ object_

Object* blender::ed::sculpt_paint::SmoothOperationExecutor::object_ = nullptr

◆ point_factors_

VArray<float> blender::ed::sculpt_paint::SmoothOperationExecutor::point_factors_

◆ selected_curve_memory_

IndexMaskMemory blender::ed::sculpt_paint::SmoothOperationExecutor::selected_curve_memory_

Definition at line 49 of file curves_sculpt_smooth.cc.

Referenced by execute().

◆ self_

SmoothOperation* blender::ed::sculpt_paint::SmoothOperationExecutor::self_ = nullptr

Definition at line 41 of file curves_sculpt_smooth.cc.

Referenced by execute(), and find_spherical_smooth_factors_with_symmetry().

◆ transforms_

CurvesSurfaceTransforms blender::ed::sculpt_paint::SmoothOperationExecutor::transforms_

Definition at line 59 of file curves_sculpt_smooth.cc.

Referenced by execute(), and find_spherical_smooth_factors_with_symmetry().


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