|
Blender V5.3
|
Public Member Functions | |
| CombOperationExecutor (const PaintStroke &stroke) | |
| void | execute (CombOperation &self, const StrokeExtension &stroke_extension) |
| void | comb_projected_with_symmetry (MutableSpan< bool > r_changed_curves) |
| void | comb_projected (MutableSpan< bool > r_changed_curves, const float4x4 &brush_transform) |
| void | comb_spherical_with_symmetry (MutableSpan< bool > r_changed_curves) |
| void | comb_spherical (MutableSpan< bool > r_changed_curves, const float3 &brush_start_cu, const float3 &brush_end_cu, const float brush_radius_cu) |
| void | initialize_spherical_brush_reference_point () |
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 76 of file sculpt_comb.cc.
|
inline |
Definition at line 100 of file sculpt_comb.cc.
References ctx_.
|
inline |
Definition at line 197 of file sculpt_comb.cc.
References blender::BKE_brush_curve_strength(), blender::BKE_curvemapping_evaluateF(), blender::BKE_curvemapping_init(), brush_, brush_pos_diff_re_, brush_pos_prev_re_, brush_pos_re_, brush_radius_base_re_, brush_radius_factor_, brush_strength_, ctx_, blender::BrushCurvesSculptSettings::curve_parameter_falloff, curve_selection_, curves_ob_orig_, curves_orig_, blender::Brush::curves_sculpt_settings, blender::bke::CurvesSurfaceTransforms::curves_to_world, blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, blender::dist_squared_to_line_segment_v2(), blender::IndexRange::drop_front(), blender::ED_view3d_ob_project_mat_get(), blender::ED_view3d_project_float_v2_m4(), blender::ED_view3d_win_to_3d(), blender::index_mask::IndexMask::foreach_segment(), blender::bke::crazyspace::get_evaluated_curves_deformation(), blender::exec_mode::grain_size(), blender::math::invert(), point_factors_, blender::bke::CurvesGeometry::points_by_curve(), blender::bke::crazyspace::GeometryDeformation::positions, blender::bke::CurvesGeometry::positions_for_write(), blender::pow2f(), blender::ed::sculpt_paint::CurvesSculptCommonContext::region, blender::ed::sculpt_paint::CurvesSculptCommonContext::rv3d, blender::math::safe_rcp(), blender::ed::sculpt_paint::CurvesConstraintSolver::segment_lengths(), self_, blender::math::transform_point(), transforms_, blender::bke::crazyspace::GeometryDeformation::translation_from_deformed_to_original(), blender::ed::sculpt_paint::CurvesSculptCommonContext::v3d, and blender::bke::CurvesSurfaceTransforms::world_to_curves.
Referenced by comb_projected_with_symmetry().
|
inline |
Do combing in screen space.
Definition at line 188 of file sculpt_comb.cc.
References comb_projected(), curves_id_orig_, and blender::ed::sculpt_paint::get_symmetry_brush_transforms().
Referenced by execute().
|
inline |
Definition at line 318 of file sculpt_comb.cc.
References blender::BKE_brush_curve_strength(), blender::BKE_curvemapping_evaluateF(), blender::BKE_curvemapping_init(), brush_, brush_strength_, ctx_, blender::BrushCurvesSculptSettings::curve_parameter_falloff, curve_selection_, curves_ob_orig_, curves_orig_, blender::Brush::curves_sculpt_settings, blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, blender::dist_squared_to_line_segment_v3(), blender::IndexRange::drop_front(), blender::index_mask::IndexMask::foreach_segment(), blender::bke::crazyspace::get_evaluated_curves_deformation(), blender::exec_mode::grain_size(), point_factors_, blender::bke::CurvesGeometry::points_by_curve(), blender::bke::crazyspace::GeometryDeformation::positions, blender::bke::CurvesGeometry::positions_for_write(), blender::pow2f(), blender::math::safe_rcp(), blender::ed::sculpt_paint::CurvesConstraintSolver::segment_lengths(), self_, and blender::bke::crazyspace::GeometryDeformation::translation_from_deformed_to_original().
Referenced by comb_spherical_with_symmetry().
|
inline |
Do combing in 3D space.
Definition at line 287 of file sculpt_comb.cc.
References brush_pos_prev_re_, brush_pos_re_, brush_radius_factor_, comb_spherical(), ctx_, curves_id_orig_, blender::bke::CurvesSurfaceTransforms::curves_to_world, blender::ED_view3d_win_to_3d(), blender::ed::sculpt_paint::get_symmetry_brush_transforms(), blender::ed::sculpt_paint::CurvesBrush3D::position_cu, blender::ed::sculpt_paint::CurvesBrush3D::radius_cu, blender::ed::sculpt_paint::CurvesSculptCommonContext::region, self_, blender::math::transform_point(), transforms_, blender::ed::sculpt_paint::CurvesSculptCommonContext::v3d, and blender::bke::CurvesSurfaceTransforms::world_to_curves.
Referenced by execute().
|
inline |
Definition at line 102 of file sculpt_comb.cc.
References blender::bke::CurvesGeometry::attributes(), blender::Span< T >::begin(), blender::BKE_brush_radius_get(), blender::BKE_paint_brush_for_read(), BLI_assert_unreachable, BLI_SCOPED_DEFER, brush_, brush_pos_diff_re_, brush_pos_prev_re_, 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(), comb_projected_with_symmetry(), comb_spherical_with_symmetry(), ctx_, curve_selection_, curves_id_orig_, blender::bke::CurvesGeometry::curves_num(), curves_ob_orig_, curves_orig_, blender::ToolSettings::curves_sculpt, curves_sculpt_, blender::ed::sculpt_paint::CurvesSurfaceTransforms::CurvesSurfaceTransforms(), blender::CV_SCULPT_COLLISION_ENABLED, blender::DEG_id_tag_update(), blender::IndexRange::drop_back(), blender::ED_region_tag_redraw(), blender::Span< T >::end(), blender::Brush::falloff_shape, blender::IndexMask::from_bools(), blender::exec_mode::grain_size(), blender::ID_RECALC_GEOMETRY, blender::ed::sculpt_paint::CurvesConstraintSolver::initialize(), initialize_spherical_brush_reference_point(), blender::bke::CurvesGeometry::is_empty(), blender::ed::sculpt_paint::StrokeExtension::is_first, blender::bke::AttributeAccessor::lookup_or_default(), blender::ed::sculpt_paint::StrokeExtension::mouse_position, NC_GEOM, ND_DATA, blender::OB_MESH, blender::ed::sculpt_paint::CurvesSculptCommonContext::object, blender::CurvesSculpt::paint, blender::PAINT_FALLOFF_SHAPE_SPHERE, blender::PAINT_FALLOFF_SHAPE_TUBE, blender::bke::Point, point_factors_, blender::bke::CurvesGeometry::points_by_curve(), blender::ed::sculpt_paint::CurvesSculptCommonContext::region, blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::ed::curves::retrieve_selected_curves(), blender::ed::sculpt_paint::CurvesSculptCommonContext::scene, blender::ed::sculpt_paint::CurvesConstraintSolver::segment_lengths(), selected_curve_memory_, self_, blender::Span< T >::slice(), blender::ed::sculpt_paint::CurvesConstraintSolver::solve_step(), blender::bke::CurvesGeometry::tag_positions_changed(), blender::Scene::toolsettings, transforms_, blender::U, blender::USER_ORBIT_SELECTION, and blender::WM_main_add_notifier().
Referenced by blender::ed::sculpt_paint::CombOperation::on_stroke_extended().
|
inline |
Sample depth under mouse by looking at curves and the surface.
Definition at line 389 of file sculpt_comb.cc.
References brush_pos_re_, brush_radius_base_re_, ctx_, curves_ob_orig_, curves_sculpt_, blender::bke::CurvesSurfaceTransforms::curves_to_world, blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, blender::ed::sculpt_paint::CurvesBrush3D::position_cu, blender::ed::sculpt_paint::CurvesSculptCommonContext::region, blender::ed::sculpt_paint::remember_stroke_position(), blender::ed::sculpt_paint::CurvesSculptCommonContext::rv3d, blender::ed::sculpt_paint::sample_curves_3d_brush(), self_, blender::math::transform_point(), transforms_, and blender::ed::sculpt_paint::CurvesSculptCommonContext::v3d.
Referenced by execute().
Definition at line 81 of file sculpt_comb.cc.
Referenced by comb_projected(), comb_spherical(), and execute().
| float2 blender::ed::sculpt_paint::CombOperationExecutor::brush_pos_diff_re_ |
Definition at line 96 of file sculpt_comb.cc.
Referenced by comb_projected(), and execute().
| float2 blender::ed::sculpt_paint::CombOperationExecutor::brush_pos_prev_re_ |
Definition at line 94 of file sculpt_comb.cc.
Referenced by comb_projected(), comb_spherical_with_symmetry(), and execute().
| float2 blender::ed::sculpt_paint::CombOperationExecutor::brush_pos_re_ |
Definition at line 95 of file sculpt_comb.cc.
Referenced by comb_projected(), comb_spherical_with_symmetry(), execute(), and initialize_spherical_brush_reference_point().
| float blender::ed::sculpt_paint::CombOperationExecutor::brush_radius_base_re_ |
Definition at line 82 of file sculpt_comb.cc.
Referenced by comb_projected(), execute(), and initialize_spherical_brush_reference_point().
| float blender::ed::sculpt_paint::CombOperationExecutor::brush_radius_factor_ |
Definition at line 83 of file sculpt_comb.cc.
Referenced by comb_projected(), comb_spherical_with_symmetry(), and execute().
| float blender::ed::sculpt_paint::CombOperationExecutor::brush_strength_ |
Definition at line 84 of file sculpt_comb.cc.
Referenced by comb_projected(), comb_spherical(), and execute().
| CurvesSculptCommonContext blender::ed::sculpt_paint::CombOperationExecutor::ctx_ |
Definition at line 78 of file sculpt_comb.cc.
Referenced by comb_projected(), comb_spherical(), comb_spherical_with_symmetry(), CombOperationExecutor(), execute(), and initialize_spherical_brush_reference_point().
| IndexMask blender::ed::sculpt_paint::CombOperationExecutor::curve_selection_ |
Definition at line 92 of file sculpt_comb.cc.
Referenced by comb_projected(), comb_spherical(), and execute().
Definition at line 87 of file sculpt_comb.cc.
Referenced by comb_projected_with_symmetry(), comb_spherical_with_symmetry(), and execute().
Definition at line 86 of file sculpt_comb.cc.
Referenced by comb_projected(), comb_spherical(), execute(), and initialize_spherical_brush_reference_point().
| CurvesGeometry* blender::ed::sculpt_paint::CombOperationExecutor::curves_orig_ = nullptr |
Definition at line 88 of file sculpt_comb.cc.
Referenced by comb_projected(), comb_spherical(), and execute().
| CurvesSculpt* blender::ed::sculpt_paint::CombOperationExecutor::curves_sculpt_ = nullptr |
Definition at line 80 of file sculpt_comb.cc.
Referenced by execute(), and initialize_spherical_brush_reference_point().
Definition at line 90 of file sculpt_comb.cc.
Referenced by comb_projected(), comb_spherical(), and execute().
| IndexMaskMemory blender::ed::sculpt_paint::CombOperationExecutor::selected_curve_memory_ |
Definition at line 91 of file sculpt_comb.cc.
Referenced by execute().
| CombOperation* blender::ed::sculpt_paint::CombOperationExecutor::self_ = nullptr |
Definition at line 77 of file sculpt_comb.cc.
Referenced by comb_projected(), comb_spherical(), comb_spherical_with_symmetry(), execute(), and initialize_spherical_brush_reference_point().
| CurvesSurfaceTransforms blender::ed::sculpt_paint::CombOperationExecutor::transforms_ |
Definition at line 98 of file sculpt_comb.cc.
Referenced by comb_projected(), comb_spherical_with_symmetry(), execute(), and initialize_spherical_brush_reference_point().