|
Blender V5.3
|
Public Member Functions | |
| PinchOperationExecutor (const PaintStroke &stroke) | |
| void | execute (PinchOperation &self, const StrokeExtension &stroke_extension) |
| void | pinch_projected_with_symmetry (MutableSpan< bool > r_changed_curves) |
| void | pinch_projected (const float4x4 &brush_transform, MutableSpan< bool > r_changed_curves) |
| void | pinch_spherical_with_symmetry (MutableSpan< bool > r_changed_curves) |
| void | pinch_spherical (const float3 &brush_pos_cu, const float brush_radius_cu, MutableSpan< bool > r_changed_curves) |
Definition at line 59 of file curves/sculpt_pinch.cc.
|
inline |
Definition at line 83 of file curves/sculpt_pinch.cc.
References ctx_.
|
inline |
Definition at line 85 of file curves/sculpt_pinch.cc.
References blender::bke::CurvesGeometry::attributes(), blender::BKE_brush_alpha_get(), blender::BKE_brush_radius_get(), blender::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_, ctx_, curve_selection_, curves_, curves_id_, blender::bke::CurvesGeometry::curves_num(), blender::ToolSettings::curves_sculpt, curves_sculpt_, blender::bke::CurvesSurfaceTransforms::curves_to_world, blender::ed::sculpt_paint::CurvesSurfaceTransforms::CurvesSurfaceTransforms(), blender::CV_SCULPT_COLLISION_ENABLED, blender::Object::data, blender::DEG_id_tag_update(), blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, blender::ED_region_tag_redraw(), blender::Brush::falloff_shape, blender::IndexMask::from_bools(), blender::ID_RECALC_GEOMETRY, blender::ed::sculpt_paint::CurvesConstraintSolver::initialize(), invert_factor_, 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, object_, blender::CurvesSculpt::paint, blender::PAINT_FALLOFF_SHAPE_SPHERE, blender::PAINT_FALLOFF_SHAPE_TUBE, pinch_projected_with_symmetry(), pinch_spherical_with_symmetry(), blender::bke::Point, point_factors_, blender::ed::sculpt_paint::CurvesBrush3D::position_cu, blender::ed::sculpt_paint::CurvesSculptCommonContext::region, blender::ed::sculpt_paint::remember_stroke_position(), blender::ed::curves::retrieve_selected_curves(), blender::ed::sculpt_paint::CurvesSculptCommonContext::rv3d, blender::ed::sculpt_paint::sample_curves_3d_brush(), blender::ed::sculpt_paint::CurvesSculptCommonContext::scene, selected_curve_memory_, self_, blender::ed::sculpt_paint::CurvesConstraintSolver::solve_step(), blender::bke::CurvesGeometry::tag_positions_changed(), blender::Scene::toolsettings, blender::math::transform_point(), transforms_, blender::U, blender::USER_ORBIT_SELECTION, blender::ed::sculpt_paint::CurvesSculptCommonContext::v3d, and blender::WM_main_add_notifier().
Referenced by blender::ed::sculpt_paint::PinchOperation::on_stroke_extended().
|
inline |
Definition at line 166 of file curves/sculpt_pinch.cc.
References blender::BKE_brush_curve_strength(), brush_, brush_pos_re_, brush_radius_base_re_, brush_radius_factor_, brush_strength_, ctx_, curve_selection_, curves_, blender::bke::CurvesSurfaceTransforms::curves_to_world, blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, blender::math::distance_squared(), 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::interpolate(), blender::math::invert(), invert_factor_, object_, 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_divide(), 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 pinch_projected_with_symmetry().
|
inline |
Definition at line 157 of file curves/sculpt_pinch.cc.
References curves_id_, blender::ed::sculpt_paint::get_symmetry_brush_transforms(), and pinch_projected().
Referenced by execute().
|
inline |
Definition at line 247 of file curves/sculpt_pinch.cc.
References blender::BKE_brush_curve_strength(), brush_, brush_strength_, ctx_, curve_selection_, curves_, blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, blender::math::distance_squared(), blender::IndexRange::drop_front(), blender::index_mask::IndexMask::foreach_segment(), blender::bke::crazyspace::get_evaluated_curves_deformation(), blender::exec_mode::grain_size(), blender::math::interpolate(), invert_factor_, object_, point_factors_, blender::bke::CurvesGeometry::points_by_curve(), blender::bke::crazyspace::GeometryDeformation::positions, blender::bke::CurvesGeometry::positions_for_write(), blender::pow2f(), blender::math::safe_divide(), and blender::bke::crazyspace::GeometryDeformation::translation_from_deformed_to_original().
Referenced by pinch_spherical_with_symmetry().
|
inline |
Definition at line 227 of file curves/sculpt_pinch.cc.
References brush_pos_re_, brush_radius_factor_, ctx_, curves_id_, blender::bke::CurvesSurfaceTransforms::curves_to_world, blender::ED_view3d_win_to_3d(), blender::ed::sculpt_paint::get_symmetry_brush_transforms(), pinch_spherical(), 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().
Definition at line 74 of file curves/sculpt_pinch.cc.
Referenced by execute(), pinch_projected(), and pinch_spherical().
| float2 blender::ed::sculpt_paint::PinchOperationExecutor::brush_pos_re_ |
Definition at line 81 of file curves/sculpt_pinch.cc.
Referenced by execute(), pinch_projected(), and pinch_spherical_with_symmetry().
| float blender::ed::sculpt_paint::PinchOperationExecutor::brush_radius_base_re_ |
Definition at line 75 of file curves/sculpt_pinch.cc.
Referenced by execute(), and pinch_projected().
| float blender::ed::sculpt_paint::PinchOperationExecutor::brush_radius_factor_ |
Definition at line 76 of file curves/sculpt_pinch.cc.
Referenced by execute(), pinch_projected(), and pinch_spherical_with_symmetry().
| float blender::ed::sculpt_paint::PinchOperationExecutor::brush_strength_ |
Definition at line 77 of file curves/sculpt_pinch.cc.
Referenced by execute(), pinch_projected(), and pinch_spherical().
| CurvesSculptCommonContext blender::ed::sculpt_paint::PinchOperationExecutor::ctx_ |
Definition at line 61 of file curves/sculpt_pinch.cc.
Referenced by execute(), pinch_projected(), pinch_spherical(), pinch_spherical_with_symmetry(), and PinchOperationExecutor().
| IndexMask blender::ed::sculpt_paint::PinchOperationExecutor::curve_selection_ |
Definition at line 69 of file curves/sculpt_pinch.cc.
Referenced by execute(), pinch_projected(), and pinch_spherical().
| CurvesGeometry* blender::ed::sculpt_paint::PinchOperationExecutor::curves_ = nullptr |
Definition at line 65 of file curves/sculpt_pinch.cc.
Referenced by execute(), pinch_projected(), and pinch_spherical().
Definition at line 64 of file curves/sculpt_pinch.cc.
Referenced by execute(), pinch_projected_with_symmetry(), and pinch_spherical_with_symmetry().
| CurvesSculpt* blender::ed::sculpt_paint::PinchOperationExecutor::curves_sculpt_ = nullptr |
Definition at line 73 of file curves/sculpt_pinch.cc.
Referenced by execute().
| float blender::ed::sculpt_paint::PinchOperationExecutor::invert_factor_ |
Definition at line 79 of file curves/sculpt_pinch.cc.
Referenced by execute(), pinch_projected(), and pinch_spherical().
Definition at line 63 of file curves/sculpt_pinch.cc.
Referenced by execute(), pinch_projected(), and pinch_spherical().
Definition at line 67 of file curves/sculpt_pinch.cc.
Referenced by execute(), pinch_projected(), and pinch_spherical().
| IndexMaskMemory blender::ed::sculpt_paint::PinchOperationExecutor::selected_curve_memory_ |
Definition at line 68 of file curves/sculpt_pinch.cc.
Referenced by execute().
| PinchOperation* blender::ed::sculpt_paint::PinchOperationExecutor::self_ = nullptr |
Definition at line 60 of file curves/sculpt_pinch.cc.
Referenced by execute(), and pinch_spherical_with_symmetry().
| CurvesSurfaceTransforms blender::ed::sculpt_paint::PinchOperationExecutor::transforms_ |
Definition at line 71 of file curves/sculpt_pinch.cc.
Referenced by execute(), pinch_projected(), and pinch_spherical_with_symmetry().