|
Blender V5.3
|
Public Member Functions | |
| PuffOperationExecutor (const PaintStroke &stroke) | |
| void | execute (PuffOperation &self, const StrokeExtension &stroke_extension) |
| void | find_curve_weights_projected_with_symmetry (MutableSpan< float > r_curve_weights) |
| void | find_curve_weights_projected (const float4x4 &brush_transform, MutableSpan< float > r_curve_weights) |
| void | find_curves_weights_spherical_with_symmetry (MutableSpan< float > r_curve_weights) |
| void | find_curves_weights_spherical (const float3 &brush_pos_cu, const float brush_radius_cu, MutableSpan< float > r_curve_weights) |
| void | puff (const IndexMask &selection, const Span< float > curve_weights) |
Public Attributes | |
| PuffOperation * | self_ = nullptr |
| CurvesSculptCommonContext | ctx_ |
| Object * | object_ = nullptr |
| Curves * | curves_id_ = nullptr |
| CurvesGeometry * | curves_ = nullptr |
| VArray< float > | point_factors_ |
| IndexMaskMemory | selected_curve_memory_ |
| IndexMask | curve_selection_ |
| CurvesSculpt * | curves_sculpt_ = nullptr |
| const Brush * | brush_ = nullptr |
| float | brush_radius_base_re_ |
| float | brush_radius_factor_ |
| float | brush_strength_ |
| float2 | brush_pos_re_ |
| CurvesSurfaceTransforms | transforms_ |
| const Object * | surface_ob_ = nullptr |
| const Mesh * | surface_ = nullptr |
| Span< float3 > | surface_positions_ |
| Span< int > | surface_corner_verts_ |
| Span< int3 > | surface_corner_tris_ |
| Span< float3 > | corner_normals_su_ |
| const bke::bvh::Tree * | surface_bvh_ |
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 53 of file sculpt_puff.cc.
|
inline |
Definition at line 82 of file sculpt_puff.cc.
References ctx_.
|
inline |
Definition at line 84 of file sculpt_puff.cc.
References blender::bke::CurvesGeometry::attributes(), 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_, blender::ed::sculpt_paint::brush_strength_get(), corner_normals_su_, 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, find_curve_weights_projected_with_symmetry(), find_curves_weights_spherical_with_symmetry(), blender::IndexMask::from_predicate(), blender::ID_RECALC_GEOMETRY, blender::ed::sculpt_paint::CurvesConstraintSolver::initialize(), 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, blender::bke::Point, point_factors_, blender::ed::sculpt_paint::CurvesBrush3D::position_cu, puff(), blender::ed::sculpt_paint::CurvesSculptCommonContext::region, blender::ed::sculpt_paint::remember_stroke_position(), blender::ed::sculpt_paint::report_missing_surface(), blender::ed::sculpt_paint::StrokeExtension::reports, 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(), surface_, surface_bvh_, surface_corner_tris_, surface_corner_verts_, surface_ob_, surface_positions_, 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::PuffOperation::on_stroke_extended().
|
inline |
Definition at line 180 of file sculpt_puff.cc.
References blender::BKE_brush_curve_strength(), BLI_SCOPED_DEFER, brush_, brush_pos_re_, brush_radius_base_re_, brush_radius_factor_, ctx_, curve_selection_, curves_, 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::index_mask::IndexMask::foreach_index(), blender::bke::crazyspace::get_evaluated_curves_deformation(), blender::exec_mode::grain_size(), blender::math::invert(), blender::math::max_inplace(), object_, blender::bke::CurvesGeometry::points_by_curve(), blender::bke::crazyspace::GeometryDeformation::positions, blender::pow2f(), blender::ed::sculpt_paint::CurvesSculptCommonContext::region, blender::ed::sculpt_paint::CurvesSculptCommonContext::rv3d, and blender::math::transform_point().
Referenced by find_curve_weights_projected_with_symmetry().
|
inline |
Definition at line 171 of file sculpt_puff.cc.
References curves_id_, find_curve_weights_projected(), and blender::ed::sculpt_paint::get_symmetry_brush_transforms().
Referenced by execute().
|
inline |
Definition at line 244 of file sculpt_puff.cc.
References blender::BKE_brush_curve_strength(), brush_, ctx_, curve_selection_, curves_, blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, blender::dist_squared_to_line_segment_v3(), blender::IndexRange::drop_front(), blender::index_mask::IndexMask::foreach_index(), blender::bke::crazyspace::get_evaluated_curves_deformation(), blender::exec_mode::grain_size(), blender::math::max_inplace(), object_, blender::bke::CurvesGeometry::points_by_curve(), blender::bke::crazyspace::GeometryDeformation::positions, and blender::pow2f().
Referenced by find_curves_weights_spherical_with_symmetry().
|
inline |
Definition at line 224 of file sculpt_puff.cc.
References brush_pos_re_, brush_radius_factor_, ctx_, curves_id_, blender::bke::CurvesSurfaceTransforms::curves_to_world, blender::ED_view3d_win_to_3d(), find_curves_weights_spherical(), 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 277 of file sculpt_puff.cc.
References blender::length_parameterize::accumulate_lengths(), brush_strength_, blender::bke::bvh::Tree::closest_point(), blender::geometry::compute_surface_point_normal(), corner_normals_su_, curves_, blender::bke::CurvesSurfaceTransforms::curves_to_surface, blender::math::distance(), blender::index_mask::IndexMask::foreach_segment(), blender::exec_mode::grain_size(), blender::IndexRange::IndexRange(), blender::interp_weights_tri_v3(), blender::math::interpolate(), blender::math::normalize(), point_factors_, blender::bke::CurvesGeometry::points_by_curve(), blender::bke::CurvesGeometry::positions_for_write(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::IndexRange::size(), blender::MutableSpan< T >::slice(), surface_bvh_, surface_corner_tris_, surface_corner_verts_, surface_positions_, blender::bke::CurvesSurfaceTransforms::surface_to_curves_normal, blender::math::transform_direction(), blender::math::transform_point(), and transforms_.
Referenced by execute().
Definition at line 66 of file sculpt_puff.cc.
Referenced by execute(), find_curve_weights_projected(), and find_curves_weights_spherical().
| float2 blender::ed::sculpt_paint::PuffOperationExecutor::brush_pos_re_ |
Definition at line 70 of file sculpt_puff.cc.
Referenced by execute(), find_curve_weights_projected(), and find_curves_weights_spherical_with_symmetry().
| float blender::ed::sculpt_paint::PuffOperationExecutor::brush_radius_base_re_ |
Definition at line 67 of file sculpt_puff.cc.
Referenced by execute(), and find_curve_weights_projected().
| float blender::ed::sculpt_paint::PuffOperationExecutor::brush_radius_factor_ |
Definition at line 68 of file sculpt_puff.cc.
Referenced by execute(), find_curve_weights_projected(), and find_curves_weights_spherical_with_symmetry().
| float blender::ed::sculpt_paint::PuffOperationExecutor::brush_strength_ |
Definition at line 69 of file sculpt_puff.cc.
Definition at line 79 of file sculpt_puff.cc.
| CurvesSculptCommonContext blender::ed::sculpt_paint::PuffOperationExecutor::ctx_ |
Definition at line 55 of file sculpt_puff.cc.
Referenced by execute(), find_curve_weights_projected(), find_curves_weights_spherical(), find_curves_weights_spherical_with_symmetry(), and PuffOperationExecutor().
| IndexMask blender::ed::sculpt_paint::PuffOperationExecutor::curve_selection_ |
Definition at line 63 of file sculpt_puff.cc.
Referenced by execute(), find_curve_weights_projected(), and find_curves_weights_spherical().
| CurvesGeometry* blender::ed::sculpt_paint::PuffOperationExecutor::curves_ = nullptr |
Definition at line 59 of file sculpt_puff.cc.
Referenced by execute(), find_curve_weights_projected(), find_curves_weights_spherical(), and puff().
Definition at line 58 of file sculpt_puff.cc.
Referenced by execute(), find_curve_weights_projected_with_symmetry(), and find_curves_weights_spherical_with_symmetry().
| CurvesSculpt* blender::ed::sculpt_paint::PuffOperationExecutor::curves_sculpt_ = nullptr |
Definition at line 65 of file sculpt_puff.cc.
Referenced by execute().
Definition at line 57 of file sculpt_puff.cc.
Referenced by execute(), find_curve_weights_projected(), and find_curves_weights_spherical().
Definition at line 61 of file sculpt_puff.cc.
| IndexMaskMemory blender::ed::sculpt_paint::PuffOperationExecutor::selected_curve_memory_ |
Definition at line 62 of file sculpt_puff.cc.
Referenced by execute().
| PuffOperation* blender::ed::sculpt_paint::PuffOperationExecutor::self_ = nullptr |
Definition at line 54 of file sculpt_puff.cc.
Referenced by execute(), and find_curves_weights_spherical_with_symmetry().
Definition at line 75 of file sculpt_puff.cc.
Referenced by execute().
| const bke::bvh::Tree* blender::ed::sculpt_paint::PuffOperationExecutor::surface_bvh_ |
Definition at line 80 of file sculpt_puff.cc.
Definition at line 78 of file sculpt_puff.cc.
| Span<int> blender::ed::sculpt_paint::PuffOperationExecutor::surface_corner_verts_ |
Definition at line 77 of file sculpt_puff.cc.
Definition at line 74 of file sculpt_puff.cc.
Referenced by execute().
Definition at line 76 of file sculpt_puff.cc.
| CurvesSurfaceTransforms blender::ed::sculpt_paint::PuffOperationExecutor::transforms_ |
Definition at line 72 of file sculpt_puff.cc.
Referenced by execute(), find_curves_weights_spherical_with_symmetry(), and puff().