|
Blender V5.3
|
Public Member Functions | |
| DensitySubtractOperationExecutor (const PaintStroke &stroke) | |
| void | execute (DensitySubtractOperation &self, const StrokeExtension &stroke_extension) |
| void | reduce_density_projected_with_symmetry (MutableSpan< bool > curves_to_keep) |
| void | reduce_density_projected (const float4x4 &brush_transform, MutableSpan< bool > curves_to_keep) |
| void | reduce_density_spherical_with_symmetry (MutableSpan< bool > curves_to_keep) |
| void | reduce_density_spherical (const float3 &brush_pos_cu, const float brush_radius_cu, MutableSpan< bool > curves_to_keep) |
Public Attributes | |
| DensitySubtractOperation * | self_ = nullptr |
| CurvesSculptCommonContext | ctx_ |
| Object * | object_ = nullptr |
| Curves * | curves_id_ = nullptr |
| CurvesGeometry * | curves_ = nullptr |
| IndexMaskMemory | selected_curve_memory_ |
| IndexMask | curve_selection_ |
| Object * | surface_ob_orig_ = nullptr |
| Mesh * | surface_orig_ = nullptr |
| Object * | surface_ob_eval_ = nullptr |
| Mesh * | surface_eval_ = nullptr |
| const bke::bvh::Tree * | surface_bvh_eval_ = nullptr |
| const CurvesSculpt * | curves_sculpt_ = nullptr |
| const Brush * | brush_ = nullptr |
| float | brush_radius_base_re_ |
| float | brush_radius_factor_ |
| float | brush_strength_ |
| float2 | brush_pos_re_ |
| float | minimum_distance_ |
| CurvesSurfaceTransforms | transforms_ |
| std::unique_ptr< KDTreeNew< float3 > > | root_points_kdtree_ |
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 473 of file sculpt_density.cc.
|
inline |
Definition at line 504 of file sculpt_density.cc.
References ctx_.
|
inline |
Definition at line 506 of file sculpt_density.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::BKE_brush_radius_get(), blender::BKE_object_get_evaluated_mesh(), blender::BKE_paint_brush_for_read(), blender::BLI_assert(), 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(), ctx_, curve_selection_, curves_, blender::bke::curves_copy_curve_selection(), curves_id_, blender::bke::CurvesGeometry::curves_num(), blender::bke::CurvesGeometry::curves_range(), blender::ToolSettings::curves_sculpt, curves_sculpt_, blender::Brush::curves_sculpt_settings, blender::Object::data, blender::DEG_get_evaluated(), 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::array_utils::gather(), blender::bke::crazyspace::get_evaluated_curves_deformation(), blender::ID_RECALC_GEOMETRY, blender::bke::CurvesGeometry::is_empty(), blender::ed::sculpt_paint::StrokeExtension::is_first, blender::BrushCurvesSculptSettings::minimum_distance, minimum_distance_, blender::ed::sculpt_paint::StrokeExtension::mouse_position, NC_GEOM, ND_DATA, blender::ed::sculpt_paint::CurvesSculptCommonContext::object, object_, blender::bke::CurvesGeometry::offsets(), blender::CurvesSculpt::paint, blender::PAINT_FALLOFF_SHAPE_SPHERE, blender::PAINT_FALLOFF_SHAPE_TUBE, blender::bke::crazyspace::GeometryDeformation::positions, reduce_density_projected_with_symmetry(), reduce_density_spherical_with_symmetry(), blender::ed::sculpt_paint::CurvesSculptCommonContext::region, blender::ed::curves::retrieve_selected_curves(), root_points_kdtree_, blender::ed::sculpt_paint::CurvesSculptCommonContext::scene, selected_curve_memory_, self_, blender::index_mask::IndexMask::size(), surface_bvh_eval_, surface_eval_, surface_ob_eval_, surface_ob_orig_, surface_orig_, blender::Scene::toolsettings, transforms_, and blender::WM_main_add_notifier().
Referenced by blender::ed::sculpt_paint::DensitySubtractOperation::on_stroke_extended().
|
inline |
Definition at line 598 of file sculpt_density.cc.
References brush_radius_base_re_, brush_radius_factor_, ctx_, curves_, blender::bke::CurvesGeometry::curves_num(), blender::bke::CurvesGeometry::curves_range(), blender::ED_view3d_ob_project_mat_get(), object_, blender::threading::parallel_for(), blender::pow2f(), and blender::ed::sculpt_paint::CurvesSculptCommonContext::rv3d.
Referenced by reduce_density_projected_with_symmetry().
|
inline |
Definition at line 589 of file sculpt_density.cc.
References curves_id_, blender::ed::sculpt_paint::get_symmetry_brush_transforms(), and reduce_density_projected().
Referenced by execute().
|
inline |
Definition at line 688 of file sculpt_density.cc.
References curves_, blender::bke::CurvesGeometry::curves_num(), blender::bke::CurvesGeometry::curves_range(), blender::threading::parallel_for(), and blender::pow2f().
Referenced by reduce_density_spherical_with_symmetry().
|
inline |
Definition at line 665 of file sculpt_density.cc.
References brush_pos_re_, brush_radius_base_re_, brush_radius_factor_, ctx_, curves_id_, blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, blender::ed::sculpt_paint::get_symmetry_brush_transforms(), reduce_density_spherical(), blender::ed::sculpt_paint::CurvesSculptCommonContext::region, blender::ed::sculpt_paint::sample_curves_surface_3d_brush(), surface_bvh_eval_, blender::math::transform_point(), transforms_, and blender::ed::sculpt_paint::CurvesSculptCommonContext::v3d.
Referenced by execute().
Definition at line 492 of file sculpt_density.cc.
Referenced by execute().
| float2 blender::ed::sculpt_paint::DensitySubtractOperationExecutor::brush_pos_re_ |
Definition at line 496 of file sculpt_density.cc.
Referenced by execute(), and reduce_density_spherical_with_symmetry().
| float blender::ed::sculpt_paint::DensitySubtractOperationExecutor::brush_radius_base_re_ |
Definition at line 493 of file sculpt_density.cc.
Referenced by execute(), reduce_density_projected(), and reduce_density_spherical_with_symmetry().
| float blender::ed::sculpt_paint::DensitySubtractOperationExecutor::brush_radius_factor_ |
Definition at line 494 of file sculpt_density.cc.
Referenced by execute(), reduce_density_projected(), and reduce_density_spherical_with_symmetry().
| float blender::ed::sculpt_paint::DensitySubtractOperationExecutor::brush_strength_ |
Definition at line 495 of file sculpt_density.cc.
Referenced by execute().
| CurvesSculptCommonContext blender::ed::sculpt_paint::DensitySubtractOperationExecutor::ctx_ |
Definition at line 475 of file sculpt_density.cc.
Referenced by DensitySubtractOperationExecutor(), execute(), reduce_density_projected(), and reduce_density_spherical_with_symmetry().
| IndexMask blender::ed::sculpt_paint::DensitySubtractOperationExecutor::curve_selection_ |
Definition at line 482 of file sculpt_density.cc.
Referenced by execute().
| CurvesGeometry* blender::ed::sculpt_paint::DensitySubtractOperationExecutor::curves_ = nullptr |
Definition at line 479 of file sculpt_density.cc.
Referenced by execute(), reduce_density_projected(), and reduce_density_spherical().
Definition at line 478 of file sculpt_density.cc.
Referenced by execute(), reduce_density_projected_with_symmetry(), and reduce_density_spherical_with_symmetry().
| const CurvesSculpt* blender::ed::sculpt_paint::DensitySubtractOperationExecutor::curves_sculpt_ = nullptr |
Definition at line 491 of file sculpt_density.cc.
Referenced by execute().
| float blender::ed::sculpt_paint::DensitySubtractOperationExecutor::minimum_distance_ |
Definition at line 498 of file sculpt_density.cc.
Referenced by execute().
Definition at line 477 of file sculpt_density.cc.
Referenced by execute(), and reduce_density_projected().
| std::unique_ptr<KDTreeNew<float3> > blender::ed::sculpt_paint::DensitySubtractOperationExecutor::root_points_kdtree_ |
Definition at line 502 of file sculpt_density.cc.
Referenced by execute().
| IndexMaskMemory blender::ed::sculpt_paint::DensitySubtractOperationExecutor::selected_curve_memory_ |
Definition at line 481 of file sculpt_density.cc.
Referenced by execute().
| DensitySubtractOperation* blender::ed::sculpt_paint::DensitySubtractOperationExecutor::self_ = nullptr |
Definition at line 474 of file sculpt_density.cc.
Referenced by execute().
| const bke::bvh::Tree* blender::ed::sculpt_paint::DensitySubtractOperationExecutor::surface_bvh_eval_ = nullptr |
Definition at line 489 of file sculpt_density.cc.
Referenced by execute(), and reduce_density_spherical_with_symmetry().
Definition at line 488 of file sculpt_density.cc.
Referenced by execute().
Definition at line 487 of file sculpt_density.cc.
Referenced by execute().
Definition at line 484 of file sculpt_density.cc.
Referenced by execute().
Definition at line 485 of file sculpt_density.cc.
Referenced by execute().
| CurvesSurfaceTransforms blender::ed::sculpt_paint::DensitySubtractOperationExecutor::transforms_ |
Definition at line 500 of file sculpt_density.cc.
Referenced by execute(), and reduce_density_spherical_with_symmetry().