|
Blender V4.3
|
Public Member Functions | |
| SlideOperationExecutor (const bContext &C) | |
| void | execute (SlideOperation &self, const bContext &C, const StrokeExtension &stroke_extension) |
| void | find_curves_to_slide_with_symmetry () |
| void | find_curves_to_slide (const float3 &brush_pos_cu, const float brush_radius_cu, const ReverseUVSampler &reverse_uv_sampler_orig, Vector< SlideCurveInfo > &r_curves_to_slide) |
| void | slide_with_symmetry () |
| void | slide (const Span< SlideCurveInfo > slide_curves, const ReverseUVSampler &reverse_uv_sampler_orig, const float4x4 &brush_transform) |
| bool | find_closest_ray_hit (const float3 &ray_start_su, const float3 &ray_direction_su, const float3 &point_su, int &r_tri_index, float3 &r_hit_pos) |
| float4x4 | get_slide_transform (const float3 &old_root_pos, const float3 &new_root_pos, const float3 &old_normal, const float3 &new_normal) |
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 84 of file curves_sculpt_slide.cc.
|
inline |
Definition at line 122 of file curves_sculpt_slide.cc.
|
inline |
Definition at line 124 of file curves_sculpt_slide.cc.
References blender::bke::CurvesGeometry::attributes(), Geometry::attributes, BKE_brush_size_get(), BKE_bvhtree_from_mesh_get(), BKE_object_get_evaluated_mesh(), BKE_paint_brush_for_read(), BKE_report(), BLI_SCOPED_DEFER, 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(), BVHTREE_FROM_CORNER_TRIS, blender::bke::Corner, corner_normals_orig_su_, ctx_, CTX_data_active_object(), blender::bke::Curve, curve_factors_, curve_selection_, curves_id_orig_, blender::bke::CurvesGeometry::curves_num(), curves_ob_orig_, curves_orig_, ToolSettings::curves_sculpt, curves_sculpt_, Object::data, DEG_get_evaluated_object(), DEG_id_tag_update(), blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, ED_region_tag_redraw(), Mesh::faces_num, find_curves_to_slide_with_symmetry(), found_invalid_uv_mapping_, free_bvhtree_from_mesh(), Curves::geometry, blender::bke::crazyspace::get_evaluated_curves_deformation(), Curves::id, ID_RECALC_GEOMETRY, blender::ed::sculpt_paint::StrokeExtension::is_first, blender::bke::AttributeAccessor::lookup_or_default(), blender::ed::sculpt_paint::StrokeExtension::mouse_position, NC_GEOM, ND_DATA, OB_MESH, CurvesSculpt::paint, blender::bke::CurvesGeometry::positions(), blender::ed::sculpt_paint::CurvesSculptCommonContext::region, 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, blender::ed::curves::retrieve_selected_curves(), RPT_WARNING, blender::ed::sculpt_paint::CurvesSculptCommonContext::scene, selected_curve_memory_, self, self_, slide_with_symmetry(), Curves::surface, surface_bvh_eval_, surface_corner_tris_eval_, surface_corner_tris_orig_, surface_corner_verts_eval_, surface_eval_, surface_ob_eval_, surface_ob_orig_, surface_orig_, surface_positions_eval_, blender::bke::CurvesGeometry::surface_uv_coords(), Curves::surface_uv_map, surface_uv_map_eval_, surface_uv_map_orig_, blender::bke::CurvesGeometry::tag_positions_changed(), Scene::toolsettings, transforms_, Object::type, UNUSED_VARS, and WM_main_add_notifier().
Referenced by blender::ed::sculpt_paint::SlideOperation::on_stroke_extended().
|
inline |
Definition at line 423 of file curves_sculpt_slide.cc.
References blender::math::distance_squared(), and FLT_MAX.
|
inline |
Definition at line 256 of file curves_sculpt_slide.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BKE_brush_curve_strength(), brush_, blender::geometry::compute_surface_point_normal(), corner_normals_orig_su_, curve_selection_, curves_orig_, blender::math::distance_squared(), blender::index_mask::IndexMask::foreach_segment(), found_invalid_uv_mapping_, blender::math::normalize(), blender::bke::CurvesGeometry::offsets(), blender::geometry::ReverseUVSampler::Ok, pow2f(), blender::geometry::ReverseUVSampler::sample(), self_, surface_corner_tris_orig_, blender::bke::CurvesSurfaceTransforms::surface_to_curves_normal, blender::bke::CurvesGeometry::surface_uv_coords(), blender::math::transform_point(), and transforms_.
Referenced by find_curves_to_slide_with_symmetry().
|
inline |
Definition at line 228 of file curves_sculpt_slide.cc.
References brush_pos_re_, brush_radius_base_re_, brush_radius_factor_, blender::ed::sculpt_paint::SlideInfo::brush_transform, ctx_, curves_id_orig_, blender::ed::sculpt_paint::SlideInfo::curves_to_slide, blender::ed::sculpt_paint::CurvesSculptCommonContext::depsgraph, find_curves_to_slide(), blender::ed::sculpt_paint::get_symmetry_brush_transforms(), blender::ed::sculpt_paint::CurvesSculptCommonContext::region, blender::ed::sculpt_paint::sample_curves_surface_3d_brush(), self_, surface_bvh_eval_, surface_corner_tris_orig_, surface_uv_map_orig_, Curves::symmetry, blender::math::transform_point(), transforms_, and blender::ed::sculpt_paint::CurvesSculptCommonContext::v3d.
Referenced by execute().
|
inline |
Definition at line 460 of file curves_sculpt_slide.cc.
References blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), rotation_between_vecs_to_mat3(), and transform().
|
inline |
Definition at line 307 of file curves_sculpt_slide.cc.
References brush_pos_re_, ctx_, curves_ob_orig_, curves_orig_, blender::bke::CurvesSurfaceTransforms::curves_to_surface, ED_view3d_ob_project_mat_get(), blender::Span< T >::index_range(), blender::math::invert(), blender::threading::parallel_for(), blender::bke::CurvesGeometry::points_by_curve(), blender::bke::CurvesGeometry::positions_for_write(), blender::ed::sculpt_paint::CurvesSculptCommonContext::rv3d, self_, surface_orig_, blender::bke::CurvesGeometry::surface_uv_coords_for_write(), transforms_, and blender::bke::CurvesSurfaceTransforms::world_to_curves.
Referenced by slide_with_symmetry().
|
inline |
Definition at line 298 of file curves_sculpt_slide.cc.
References self_, slide(), surface_corner_tris_orig_, and surface_uv_map_orig_.
Referenced by execute().
| const Brush* blender::ed::sculpt_paint::SlideOperationExecutor::brush_ = nullptr |
Definition at line 89 of file curves_sculpt_slide.cc.
Referenced by execute(), and find_curves_to_slide().
| float2 blender::ed::sculpt_paint::SlideOperationExecutor::brush_pos_re_ |
Definition at line 116 of file curves_sculpt_slide.cc.
Referenced by execute(), find_curves_to_slide_with_symmetry(), and slide().
| float blender::ed::sculpt_paint::SlideOperationExecutor::brush_radius_base_re_ |
Definition at line 90 of file curves_sculpt_slide.cc.
Referenced by execute(), and find_curves_to_slide_with_symmetry().
| float blender::ed::sculpt_paint::SlideOperationExecutor::brush_radius_factor_ |
Definition at line 91 of file curves_sculpt_slide.cc.
Referenced by execute(), and find_curves_to_slide_with_symmetry().
| float blender::ed::sculpt_paint::SlideOperationExecutor::brush_strength_ |
Definition at line 92 of file curves_sculpt_slide.cc.
Referenced by execute().
Definition at line 102 of file curves_sculpt_slide.cc.
Referenced by execute(), and find_curves_to_slide().
| CurvesSculptCommonContext blender::ed::sculpt_paint::SlideOperationExecutor::ctx_ |
Definition at line 86 of file curves_sculpt_slide.cc.
Referenced by execute(), find_curves_to_slide_with_symmetry(), and slide().
Definition at line 112 of file curves_sculpt_slide.cc.
Referenced by execute().
| IndexMask blender::ed::sculpt_paint::SlideOperationExecutor::curve_selection_ |
Definition at line 114 of file curves_sculpt_slide.cc.
Referenced by execute(), and find_curves_to_slide().
| Curves* blender::ed::sculpt_paint::SlideOperationExecutor::curves_id_orig_ = nullptr |
Definition at line 95 of file curves_sculpt_slide.cc.
Referenced by execute(), and find_curves_to_slide_with_symmetry().
| Object* blender::ed::sculpt_paint::SlideOperationExecutor::curves_ob_orig_ = nullptr |
Definition at line 94 of file curves_sculpt_slide.cc.
| CurvesGeometry* blender::ed::sculpt_paint::SlideOperationExecutor::curves_orig_ = nullptr |
Definition at line 96 of file curves_sculpt_slide.cc.
Referenced by execute(), find_curves_to_slide(), and slide().
| const CurvesSculpt* blender::ed::sculpt_paint::SlideOperationExecutor::curves_sculpt_ = nullptr |
Definition at line 88 of file curves_sculpt_slide.cc.
Referenced by execute().
| std::atomic<bool> blender::ed::sculpt_paint::SlideOperationExecutor::found_invalid_uv_mapping_ {false} |
Definition at line 120 of file curves_sculpt_slide.cc.
Referenced by execute(), and find_curves_to_slide().
| IndexMaskMemory blender::ed::sculpt_paint::SlideOperationExecutor::selected_curve_memory_ |
Definition at line 113 of file curves_sculpt_slide.cc.
Referenced by execute().
| SlideOperation* blender::ed::sculpt_paint::SlideOperationExecutor::self_ = nullptr |
Definition at line 85 of file curves_sculpt_slide.cc.
Referenced by execute(), find_curves_to_slide(), find_curves_to_slide_with_symmetry(), slide(), and slide_with_symmetry().
| BVHTreeFromMesh blender::ed::sculpt_paint::SlideOperationExecutor::surface_bvh_eval_ |
Definition at line 110 of file curves_sculpt_slide.cc.
Referenced by execute(), and find_curves_to_slide_with_symmetry().
Definition at line 108 of file curves_sculpt_slide.cc.
Referenced by execute().
Definition at line 100 of file curves_sculpt_slide.cc.
Referenced by execute(), find_curves_to_slide(), find_curves_to_slide_with_symmetry(), and slide_with_symmetry().
Definition at line 107 of file curves_sculpt_slide.cc.
Referenced by execute().
| Mesh* blender::ed::sculpt_paint::SlideOperationExecutor::surface_eval_ = nullptr |
Definition at line 105 of file curves_sculpt_slide.cc.
Referenced by execute().
| Object* blender::ed::sculpt_paint::SlideOperationExecutor::surface_ob_eval_ = nullptr |
Definition at line 104 of file curves_sculpt_slide.cc.
Referenced by execute().
| Object* blender::ed::sculpt_paint::SlideOperationExecutor::surface_ob_orig_ = nullptr |
Definition at line 98 of file curves_sculpt_slide.cc.
Referenced by execute().
| const Mesh* blender::ed::sculpt_paint::SlideOperationExecutor::surface_orig_ = nullptr |
Definition at line 99 of file curves_sculpt_slide.cc.
Definition at line 106 of file curves_sculpt_slide.cc.
Referenced by execute().
| VArraySpan<float2> blender::ed::sculpt_paint::SlideOperationExecutor::surface_uv_map_eval_ |
Definition at line 109 of file curves_sculpt_slide.cc.
Referenced by execute().
| VArraySpan<float2> blender::ed::sculpt_paint::SlideOperationExecutor::surface_uv_map_orig_ |
Definition at line 101 of file curves_sculpt_slide.cc.
Referenced by execute(), find_curves_to_slide_with_symmetry(), and slide_with_symmetry().
| CurvesSurfaceTransforms blender::ed::sculpt_paint::SlideOperationExecutor::transforms_ |
Definition at line 118 of file curves_sculpt_slide.cc.
Referenced by execute(), find_curves_to_slide(), find_curves_to_slide_with_symmetry(), and slide().