Blender
V3.3
|
Public Member Functions | |
DensityAddOperationExecutor (const bContext &C) | |
void | execute (DensityAddOperation &self, const bContext &C, 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 |
Mesh * | surface_orig_ = nullptr |
Object * | surface_ob_eval_ = nullptr |
Mesh * | surface_eval_ = nullptr |
Span< MLoopTri > | surface_looptris_eval_ |
VArraySpan< float2 > | surface_uv_map_eval_ |
BVHTreeFromMesh | surface_bvh_eval_ |
const 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 67 of file curves_sculpt_density.cc.
|
inline |
Definition at line 94 of file curves_sculpt_density.cc.
References C.
|
inline |
Definition at line 98 of file curves_sculpt_density.cc.
References ATTR_DOMAIN_CORNER, BKE_bvhtree_from_mesh_get(), BKE_mesh_runtime_looptri_ensure(), BKE_mesh_runtime_looptri_len(), BKE_object_get_evaluated_mesh(), BKE_paint_brush_for_read(), BLI_assert_unreachable, BLI_SCOPED_DEFER, 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(), BVHTREE_FROM_LOOPTRI, C, ctx_, CTX_data_active_object(), curves_id_orig_, blender::bke::CurvesGeometry::curves_num(), curves_ob_orig_, curves_orig_, ToolSettings::curves_sculpt, curves_sculpt_, Brush::curves_sculpt_settings, Object::data, DEG_get_evaluated_object(), blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, Brush::falloff_shape, free_bvhtree_from_mesh(), Curves::geometry, blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::Span< T >::is_empty(), blender::ed::sculpt_paint::StrokeExtension::is_first, blender::bke::AttributeAccessor::lookup(), blender::bke::mesh_attributes(), blender::ed::sculpt_paint::StrokeExtension::mouse_position, OB_MESH, CurvesSculpt::paint, PAINT_FALLOFF_SHAPE_SPHERE, PAINT_FALLOFF_SHAPE_TUBE, blender::threading::parallel_invoke(), PIL_check_seconds_timer(), pos, 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(), Curves::surface, surface_bvh_eval_, surface_eval_, surface_looptris_eval_, surface_ob_eval_, surface_ob_orig_, surface_orig_, blender::bke::CurvesSurfaceTransforms::surface_to_curves, Curves::surface_uv_map, surface_uv_map_eval_, time, Scene::toolsettings, Mesh::totpoly, transforms_, Object::type, and blender::bke::CurvesGeometry::wrap().
|
inline |
Definition at line 301 of file curves_sculpt_density.cc.
References BLI_assert, blender::bke::CurvesGeometry::curves_num(), blender::bke::CurvesGeometry::curves_range(), blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, blender::bke::crazyspace::get_evaluated_curves_deformation(), blender::bke::CurvesGeometry::offsets(), blender::threading::parallel_invoke(), blender::bke::crazyspace::GeometryDeformation::positions, blender::bke::CurvesGeometry::positions(), positions, and blender::Span< T >::size().
Referenced by execute().
|
inline |
Definition at line 330 of file curves_sculpt_density.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BKE_brush_curve_strength(), blender::bke::CurvesSurfaceTransforms::curves_to_surface, BrushCurvesSculptSettings::density_add_attempts, blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, blender::math::distance(), ED_view3d_ob_project_mat_get(), ED_view3d_project_float_v2_m4(), 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::float4x4::inverted(), 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_attrribute_with_bary_coords(), blender::bke::mesh_surface_sample::sample_surface_points_projected(), blender::bke::CurvesSurfaceTransforms::surface_to_curves, Curves::symmetry, transform(), blender::ed::sculpt_paint::CurvesSculptCommonContext::v3d, blender::float4x4::values, and blender::bke::CurvesSurfaceTransforms::world_to_curves.
Referenced by execute().
|
inline |
Definition at line 392 of file curves_sculpt_density.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BKE_brush_curve_strength(), blender::bke::CurvesSurfaceTransforms::curves_to_surface, 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, pow2f(), blender::ed::sculpt_paint::CurvesSculptCommonContext::region, blender::Vector< T, InlineBufferCapacity, Allocator >::remove_and_reorder(), blender::bke::mesh_surface_sample::sample_corner_attrribute_with_bary_coords(), blender::ed::sculpt_paint::sample_curves_surface_3d_brush(), blender::bke::mesh_surface_sample::sample_surface_points_spherical(), blender::bke::CurvesSurfaceTransforms::surface_to_curves, Curves::symmetry, blender::ed::sculpt_paint::transform_brush_radius(), BVHTreeFromMesh::tree, UNUSED, and blender::ed::sculpt_paint::CurvesSculptCommonContext::v3d.
Referenced by execute().
const Brush* blender::ed::sculpt_paint::DensityAddOperationExecutor::brush_ = nullptr |
Definition at line 85 of file curves_sculpt_density.cc.
Referenced by execute().
float2 blender::ed::sculpt_paint::DensityAddOperationExecutor::brush_pos_re_ |
Definition at line 90 of file curves_sculpt_density.cc.
Referenced by execute().
float blender::ed::sculpt_paint::DensityAddOperationExecutor::brush_radius_re_ |
Definition at line 89 of file curves_sculpt_density.cc.
Referenced by execute().
const BrushCurvesSculptSettings* blender::ed::sculpt_paint::DensityAddOperationExecutor::brush_settings_ = nullptr |
Definition at line 86 of file curves_sculpt_density.cc.
Referenced by execute().
float blender::ed::sculpt_paint::DensityAddOperationExecutor::brush_strength_ |
Definition at line 88 of file curves_sculpt_density.cc.
Referenced by execute().
CurvesSculptCommonContext blender::ed::sculpt_paint::DensityAddOperationExecutor::ctx_ |
Definition at line 69 of file curves_sculpt_density.cc.
Referenced by execute().
Curves* blender::ed::sculpt_paint::DensityAddOperationExecutor::curves_id_orig_ = nullptr |
Definition at line 72 of file curves_sculpt_density.cc.
Referenced by execute().
Object* blender::ed::sculpt_paint::DensityAddOperationExecutor::curves_ob_orig_ = nullptr |
Definition at line 71 of file curves_sculpt_density.cc.
Referenced by execute().
CurvesGeometry* blender::ed::sculpt_paint::DensityAddOperationExecutor::curves_orig_ = nullptr |
Definition at line 73 of file curves_sculpt_density.cc.
Referenced by execute().
const CurvesSculpt* blender::ed::sculpt_paint::DensityAddOperationExecutor::curves_sculpt_ = nullptr |
Definition at line 84 of file curves_sculpt_density.cc.
Referenced by execute().
DensityAddOperation* blender::ed::sculpt_paint::DensityAddOperationExecutor::self_ = nullptr |
Definition at line 68 of file curves_sculpt_density.cc.
Referenced by execute().
BVHTreeFromMesh blender::ed::sculpt_paint::DensityAddOperationExecutor::surface_bvh_eval_ |
Definition at line 82 of file curves_sculpt_density.cc.
Referenced by execute().
Mesh* blender::ed::sculpt_paint::DensityAddOperationExecutor::surface_eval_ = nullptr |
Definition at line 79 of file curves_sculpt_density.cc.
Referenced by execute().
Definition at line 80 of file curves_sculpt_density.cc.
Referenced by execute().
Object* blender::ed::sculpt_paint::DensityAddOperationExecutor::surface_ob_eval_ = nullptr |
Definition at line 78 of file curves_sculpt_density.cc.
Referenced by execute().
Object* blender::ed::sculpt_paint::DensityAddOperationExecutor::surface_ob_orig_ = nullptr |
Definition at line 75 of file curves_sculpt_density.cc.
Referenced by execute().
Mesh* blender::ed::sculpt_paint::DensityAddOperationExecutor::surface_orig_ = nullptr |
Definition at line 76 of file curves_sculpt_density.cc.
Referenced by execute().
VArraySpan<float2> blender::ed::sculpt_paint::DensityAddOperationExecutor::surface_uv_map_eval_ |
Definition at line 81 of file curves_sculpt_density.cc.
Referenced by execute().
CurvesSurfaceTransforms blender::ed::sculpt_paint::DensityAddOperationExecutor::transforms_ |
Definition at line 92 of file curves_sculpt_density.cc.
Referenced by execute().