|
Blender V5.0
|
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) |
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.
|
inline |
Definition at line 61 of file curves_sculpt_smooth.cc.
|
inline |
Definition at line 63 of file curves_sculpt_smooth.cc.
References BKE_brush_radius_get(), BKE_paint_brush_for_read(), BLI_assert_unreachable, brush_, brush_pos_re_, brush_radius_base_re_, blender::ed::sculpt_paint::brush_radius_factor(), brush_radius_factor_, brush_strength_, blender::ed::sculpt_paint::brush_strength_get(), C, ctx_, CTX_data_active_object(), curve_selection_, curves_, curves_id_, curves_sculpt_, DEG_id_tag_update(), ED_region_tag_redraw(), find_projected_smooth_factors_with_symmetry(), find_spherical_smooth_factors_with_symmetry(), ID_RECALC_GEOMETRY, blender::ed::sculpt_paint::StrokeExtension::is_first, blender::ed::sculpt_paint::StrokeExtension::mouse_position, NC_GEOM, ND_DATA, object_, PAINT_FALLOFF_SHAPE_SPHERE, PAINT_FALLOFF_SHAPE_TUBE, blender::bke::Point, point_factors_, blender::ed::sculpt_paint::remember_stroke_position(), blender::ed::curves::retrieve_selected_curves(), blender::ed::sculpt_paint::sample_curves_3d_brush(), selected_curve_memory_, self, self_, smooth(), blender::math::transform_point(), transforms_, U, UNUSED_VARS, USER_ORBIT_SELECTION, and WM_main_add_notifier().
Referenced by blender::ed::sculpt_paint::SmoothOperation::on_stroke_extended().
|
inline |
Definition at line 131 of file curves_sculpt_smooth.cc.
References BKE_brush_curve_strength(), brush_, brush_pos_re_, brush_radius_base_re_, brush_radius_factor_, brush_strength_, ctx_, curve_selection_, curves_, blender::math::distance_squared(), ED_view3d_ob_project_mat_get(), ED_view3d_project_float_v2_m4(), blender::bke::crazyspace::get_evaluated_curves_deformation(), blender::math::invert(), blender::math::max_inplace(), object_, point_factors_, blender::bke::crazyspace::GeometryDeformation::positions, pow2f(), and blender::math::transform_point().
Referenced by find_projected_smooth_factors_with_symmetry().
|
inline |
Definition at line 122 of file curves_sculpt_smooth.cc.
References curves_id_, find_projected_smooth_factors(), and blender::ed::sculpt_paint::get_symmetry_brush_transforms().
Referenced by execute().
|
inline |
Definition at line 190 of file curves_sculpt_smooth.cc.
References BKE_brush_curve_strength(), brush_, brush_strength_, ctx_, curve_selection_, curves_, blender::math::distance_squared(), blender::bke::crazyspace::get_evaluated_curves_deformation(), blender::math::max_inplace(), object_, point_factors_, blender::bke::crazyspace::GeometryDeformation::positions, and pow2f().
Referenced by find_spherical_smooth_factors_with_symmetry().
|
inline |
Definition at line 169 of file curves_sculpt_smooth.cc.
References brush_pos_re_, brush_radius_factor_, ctx_, curves_id_, ED_view3d_win_to_3d(), find_spherical_smooth_factors(), blender::ed::sculpt_paint::get_symmetry_brush_transforms(), self_, blender::math::transform_point(), and transforms_.
Referenced by execute().
|
inline |
Definition at line 221 of file curves_sculpt_smooth.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::clear(), curve_selection_, curves_, blender::IndexRange::drop_back(), blender::IndexRange::drop_front(), blender::Vector< T, InlineBufferCapacity, Allocator >::extend(), i, blender::math::interpolate(), blender::math::midpoint(), blender::IndexRange::size(), and blender::MutableSpan< T >::slice().
Referenced by execute().
Definition at line 53 of file curves_sculpt_smooth.cc.
Referenced by execute(), find_projected_smooth_factors(), and find_spherical_smooth_factors().
| float2 blender::ed::sculpt_paint::SmoothOperationExecutor::brush_pos_re_ |
Definition at line 57 of file curves_sculpt_smooth.cc.
Referenced by execute(), find_projected_smooth_factors(), and find_spherical_smooth_factors_with_symmetry().
| 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().
| float blender::ed::sculpt_paint::SmoothOperationExecutor::brush_radius_factor_ |
Definition at line 55 of file curves_sculpt_smooth.cc.
Referenced by execute(), find_projected_smooth_factors(), and find_spherical_smooth_factors_with_symmetry().
| float blender::ed::sculpt_paint::SmoothOperationExecutor::brush_strength_ |
Definition at line 56 of file curves_sculpt_smooth.cc.
Referenced by execute(), find_projected_smooth_factors(), and find_spherical_smooth_factors().
| CurvesSculptCommonContext blender::ed::sculpt_paint::SmoothOperationExecutor::ctx_ |
Definition at line 42 of file curves_sculpt_smooth.cc.
Referenced by execute(), find_projected_smooth_factors(), find_spherical_smooth_factors(), find_spherical_smooth_factors_with_symmetry(), and SmoothOperationExecutor().
| IndexMask blender::ed::sculpt_paint::SmoothOperationExecutor::curve_selection_ |
Definition at line 50 of file curves_sculpt_smooth.cc.
Referenced by execute(), find_projected_smooth_factors(), find_spherical_smooth_factors(), and smooth().
| CurvesGeometry* blender::ed::sculpt_paint::SmoothOperationExecutor::curves_ = nullptr |
Definition at line 46 of file curves_sculpt_smooth.cc.
Referenced by execute(), find_projected_smooth_factors(), find_spherical_smooth_factors(), and smooth().
Definition at line 45 of file curves_sculpt_smooth.cc.
Referenced by execute(), find_projected_smooth_factors_with_symmetry(), and find_spherical_smooth_factors_with_symmetry().
| CurvesSculpt* blender::ed::sculpt_paint::SmoothOperationExecutor::curves_sculpt_ = nullptr |
Definition at line 52 of file curves_sculpt_smooth.cc.
Referenced by execute().
Definition at line 44 of file curves_sculpt_smooth.cc.
Referenced by execute(), find_projected_smooth_factors(), and find_spherical_smooth_factors().
Definition at line 48 of file curves_sculpt_smooth.cc.
Referenced by execute(), find_projected_smooth_factors(), and find_spherical_smooth_factors().
| IndexMaskMemory blender::ed::sculpt_paint::SmoothOperationExecutor::selected_curve_memory_ |
Definition at line 49 of file curves_sculpt_smooth.cc.
Referenced by execute().
| 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().
| 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().