|
Blender V5.3
|
Public Member Functions | |
| DensityAddOperationExecutor (const PaintStroke &stroke) | |
| void | execute (DensityAddOperation &self, const StrokeExtension &stroke_extension) |
| void | prepare_curve_roots_kdtrees () |
| void | sample_projected_with_symmetry (RandomNumberGenerator &rng, Vector< float2 > &r_uvs, Vector< float3 > &r_positions_su) |
| void | sample_spherical_with_symmetry (RandomNumberGenerator &rng, Vector< float2 > &r_uvs, Vector< float3 > &r_positions_su) |
Public Attributes | |
| DensityAddOperation * | self_ = nullptr |
| CurvesSculptCommonContext | ctx_ |
| Object * | curves_ob_orig_ = nullptr |
| Curves * | curves_id_orig_ = nullptr |
| CurvesGeometry * | curves_orig_ = nullptr |
| Object * | surface_ob_orig_ = nullptr |
| const Mesh * | surface_orig_ = nullptr |
| Object * | surface_ob_eval_ = nullptr |
| Mesh * | surface_eval_ = nullptr |
| Span< int3 > | surface_corner_tris_eval_ |
| VArraySpan< float2 > | surface_uv_map_eval_ |
| const bke::bvh::Tree * | surface_bvh_eval_ = nullptr |
| CurvesSculpt * | curves_sculpt_ = nullptr |
| const Brush * | brush_ = nullptr |
| const BrushCurvesSculptSettings * | brush_settings_ = nullptr |
| float | brush_strength_ |
| float | brush_radius_re_ |
| float2 | brush_pos_re_ |
| CurvesSurfaceTransforms | transforms_ |
Definition at line 64 of file sculpt_density.cc.
|
inline |
Definition at line 91 of file sculpt_density.cc.
References ctx_.
|
inline |
Definition at line 93 of file sculpt_density.cc.
References blender::BKE_object_get_evaluated_mesh(), blender::BKE_paint_brush_for_read(), BLI_assert_unreachable, brush_, brush_pos_re_, blender::ed::sculpt_paint::brush_radius_get(), brush_radius_re_, brush_settings_, brush_strength_, blender::ed::sculpt_paint::brush_strength_get(), blender::bke::Corner, ctx_, curves_id_orig_, blender::bke::CurvesGeometry::curves_num(), curves_ob_orig_, curves_orig_, blender::ToolSettings::curves_sculpt, curves_sculpt_, blender::Brush::curves_sculpt_settings, blender::ed::sculpt_paint::CurvesSurfaceTransforms::CurvesSurfaceTransforms(), blender::Object::data, blender::DEG_get_evaluated(), blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, blender::Mesh::faces_num, blender::Brush::falloff_shape, blender::RandomNumberGenerator::from_random_seed(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::blender::Span< T >::is_empty(), blender::ed::sculpt_paint::StrokeExtension::is_first, blender::BrushCurvesSculptSettings::minimum_distance, blender::ed::sculpt_paint::StrokeExtension::mouse_position, blender::OB_MESH, blender::ed::sculpt_paint::CurvesSculptCommonContext::object, blender::CurvesSculpt::paint, blender::PAINT_FALLOFF_SHAPE_SPHERE, blender::PAINT_FALLOFF_SHAPE_TUBE, blender::threading::parallel_for(), blender::pow2f(), prepare_curve_roots_kdtrees(), blender::ed::sculpt_paint::report_empty_evaluated_surface(), blender::ed::sculpt_paint::report_empty_original_surface(), blender::ed::sculpt_paint::report_missing_surface(), blender::ed::sculpt_paint::report_missing_uv_map_on_evaluated_surface(), blender::ed::sculpt_paint::report_missing_uv_map_on_original_surface(), blender::ed::sculpt_paint::StrokeExtension::reports, sample_projected_with_symmetry(), sample_spherical_with_symmetry(), blender::ed::sculpt_paint::CurvesSculptCommonContext::scene, self_, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), surface_bvh_eval_, surface_corner_tris_eval_, surface_eval_, surface_ob_eval_, surface_ob_orig_, surface_orig_, blender::bke::CurvesSurfaceTransforms::surface_to_curves, surface_uv_map_eval_, blender::Scene::toolsettings, blender::math::transform_points(), and transforms_.
Referenced by blender::ed::sculpt_paint::DensityAddOperation::on_stroke_extended().
|
inline |
Definition at line 279 of file sculpt_density.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::BLI_assert(), ctx_, blender::bke::CurvesGeometry::curves_num(), curves_ob_orig_, curves_orig_, blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, blender::array_utils::gather(), blender::bke::crazyspace::get_evaluated_curves_deformation(), blender::bke::CurvesGeometry::offsets(), blender::threading::parallel_invoke(), blender::bke::crazyspace::GeometryDeformation::positions, blender::bke::CurvesGeometry::positions(), blender::Span< T >::size(), and blender::Span< T >::take_front().
Referenced by execute().
|
inline |
Definition at line 310 of file sculpt_density.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::BKE_brush_curve_strength(), brush_, brush_pos_re_, brush_radius_re_, brush_settings_, brush_strength_, ctx_, curves_id_orig_, curves_ob_orig_, blender::bke::CurvesSurfaceTransforms::curves_to_surface, blender::BrushCurvesSculptSettings::density_add_attempts, blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, blender::math::distance(), blender::ED_view3d_ob_project_mat_get(), blender::ED_view3d_project_float_v2_m4(), blender::ED_view3d_win_to_segment_clipped(), blender::Vector< T, InlineBufferCapacity, Allocator >::extend(), blender::RandomNumberGenerator::get_float(), blender::ed::sculpt_paint::get_symmetry_brush_transforms(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::math::invert(), blender::ed::sculpt_paint::CurvesSculptCommonContext::region, blender::Vector< T, InlineBufferCapacity, Allocator >::remove_and_reorder(), blender::ed::sculpt_paint::CurvesSculptCommonContext::rv3d, blender::bke::mesh_surface_sample::sample_corner_attribute_with_bary_coords(), blender::bke::mesh_surface_sample::sample_surface_points_projected(), surface_bvh_eval_, surface_corner_tris_eval_, surface_eval_, blender::bke::CurvesSurfaceTransforms::surface_to_curves, surface_uv_map_eval_, 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 371 of file sculpt_density.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::BKE_brush_curve_strength(), brush_, brush_pos_re_, brush_radius_re_, brush_settings_, brush_strength_, ctx_, curves_id_orig_, blender::bke::CurvesSurfaceTransforms::curves_to_surface, blender::BrushCurvesSculptSettings::density_add_attempts, blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, blender::math::distance(), blender::Vector< T, InlineBufferCapacity, Allocator >::extend(), blender::RandomNumberGenerator::get_float(), blender::ed::sculpt_paint::get_symmetry_brush_transforms(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), M_PI, blender::pow2f(), blender::bke::bvh::Tree::range_query(), blender::ed::sculpt_paint::CurvesSculptCommonContext::region, blender::Vector< T, InlineBufferCapacity, Allocator >::remove_and_reorder(), blender::bke::mesh_surface_sample::sample_corner_attribute_with_bary_coords(), blender::ed::sculpt_paint::sample_curves_surface_3d_brush(), blender::bke::mesh_surface_sample::sample_surface_points_spherical(), surface_bvh_eval_, surface_corner_tris_eval_, surface_eval_, blender::bke::CurvesSurfaceTransforms::surface_to_curves, surface_uv_map_eval_, blender::ed::sculpt_paint::transform_brush_radius(), blender::math::transform_point(), transforms_, and blender::ed::sculpt_paint::CurvesSculptCommonContext::v3d.
Referenced by execute().
Definition at line 82 of file sculpt_density.cc.
Referenced by execute(), sample_projected_with_symmetry(), and sample_spherical_with_symmetry().
| float2 blender::ed::sculpt_paint::DensityAddOperationExecutor::brush_pos_re_ |
Definition at line 87 of file sculpt_density.cc.
Referenced by execute(), sample_projected_with_symmetry(), and sample_spherical_with_symmetry().
| float blender::ed::sculpt_paint::DensityAddOperationExecutor::brush_radius_re_ |
Definition at line 86 of file sculpt_density.cc.
Referenced by execute(), sample_projected_with_symmetry(), and sample_spherical_with_symmetry().
| const BrushCurvesSculptSettings* blender::ed::sculpt_paint::DensityAddOperationExecutor::brush_settings_ = nullptr |
Definition at line 83 of file sculpt_density.cc.
Referenced by execute(), sample_projected_with_symmetry(), and sample_spherical_with_symmetry().
| float blender::ed::sculpt_paint::DensityAddOperationExecutor::brush_strength_ |
Definition at line 85 of file sculpt_density.cc.
Referenced by execute(), sample_projected_with_symmetry(), and sample_spherical_with_symmetry().
| CurvesSculptCommonContext blender::ed::sculpt_paint::DensityAddOperationExecutor::ctx_ |
Definition at line 66 of file sculpt_density.cc.
Referenced by DensityAddOperationExecutor(), execute(), prepare_curve_roots_kdtrees(), sample_projected_with_symmetry(), and sample_spherical_with_symmetry().
Definition at line 69 of file sculpt_density.cc.
Referenced by execute(), sample_projected_with_symmetry(), and sample_spherical_with_symmetry().
Definition at line 68 of file sculpt_density.cc.
Referenced by execute(), prepare_curve_roots_kdtrees(), and sample_projected_with_symmetry().
| CurvesGeometry* blender::ed::sculpt_paint::DensityAddOperationExecutor::curves_orig_ = nullptr |
Definition at line 70 of file sculpt_density.cc.
Referenced by execute(), and prepare_curve_roots_kdtrees().
| CurvesSculpt* blender::ed::sculpt_paint::DensityAddOperationExecutor::curves_sculpt_ = nullptr |
Definition at line 81 of file sculpt_density.cc.
Referenced by execute().
| DensityAddOperation* blender::ed::sculpt_paint::DensityAddOperationExecutor::self_ = nullptr |
Definition at line 65 of file sculpt_density.cc.
Referenced by execute().
| const bke::bvh::Tree* blender::ed::sculpt_paint::DensityAddOperationExecutor::surface_bvh_eval_ = nullptr |
Definition at line 79 of file sculpt_density.cc.
Referenced by execute(), sample_projected_with_symmetry(), and sample_spherical_with_symmetry().
Definition at line 77 of file sculpt_density.cc.
Referenced by execute(), sample_projected_with_symmetry(), and sample_spherical_with_symmetry().
Definition at line 76 of file sculpt_density.cc.
Referenced by execute(), sample_projected_with_symmetry(), and sample_spherical_with_symmetry().
Definition at line 75 of file sculpt_density.cc.
Referenced by execute().
Definition at line 72 of file sculpt_density.cc.
Referenced by execute().
Definition at line 73 of file sculpt_density.cc.
Referenced by execute().
| VArraySpan<float2> blender::ed::sculpt_paint::DensityAddOperationExecutor::surface_uv_map_eval_ |
Definition at line 78 of file sculpt_density.cc.
Referenced by execute(), sample_projected_with_symmetry(), and sample_spherical_with_symmetry().
| CurvesSurfaceTransforms blender::ed::sculpt_paint::DensityAddOperationExecutor::transforms_ |
Definition at line 89 of file sculpt_density.cc.
Referenced by execute(), sample_projected_with_symmetry(), and sample_spherical_with_symmetry().