|
Blender V5.3
|
Classes | |
| struct | BrushLocalData |
| struct | GrowFactorLocalData |
| struct | IKChain |
| struct | IKChainSegment |
| struct | PoseGrowFactorData |
Functions | |
| static void | solve_ik_chain (IKChain &ik_chain, const float3 &initial_target, const bool use_anchor) |
| static void | solve_roll_chain (IKChain &ik_chain, const Brush &brush, const float roll) |
| static void | solve_translate_chain (IKChain &ik_chain, const float delta[3]) |
| static void | solve_scale_chain (IKChain &ik_chain, const float scale[3]) |
| static BLI_NOINLINE void | calc_segment_translations (const Span< float3 > positions, const IKChainSegment &segment, const MutableSpan< float3 > translations) |
| static BLI_NOINLINE void | add_arrays (const MutableSpan< float3 > a, const Span< float3 > b) |
| static void | calc_mesh (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const MeshAttributeData &attribute_data, const bke::pbvh::MeshNode &node, Object &object, const PositionDeformData &position_data) |
| static void | calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const bke::pbvh::GridsNode &node, Object &object, BrushLocalData &tls) |
| static void | calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, bke::pbvh::BMeshNode &node, Object &object, BrushLocalData &tls) |
| static BLI_NOINLINE void | add_fake_neighbors (const Span< int > fake_neighbors, const Span< int > verts, const Span< int > orig_neighbor_data, MutableSpan< int > neighbor_offsets, Vector< int > &neighbor_data_with_fake) |
| static void | grow_factors_mesh (const ePaintSymmetryFlags symm, const float3 &pose_initial_position, const Span< float3 > vert_positions, const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const Span< bool > hide_vert, const Span< bool > hide_poly, const Span< int > fake_neighbors, const Span< float > prev_mask, const bke::pbvh::MeshNode &node, GrowFactorLocalData &tls, const MutableSpan< float > pose_factor, PoseGrowFactorData &gftd) |
| static void | grow_factors_grids (const ePaintSymmetryFlags symm, const float3 &pose_initial_position, const SubdivCCG &subdiv_ccg, const Span< int > fake_neighbors, const Span< float > prev_mask, const bke::pbvh::GridsNode &node, const MutableSpan< float > pose_factor, PoseGrowFactorData &gftd) |
| static void | grow_factors_bmesh (const ePaintSymmetryFlags symm, const float3 &pose_initial_position, const Span< int > fake_neighbors, const Span< float > prev_mask, bke::pbvh::BMeshNode &node, const MutableSpan< float > pose_factor, PoseGrowFactorData &gftd) |
| static void | grow_pose_factor (const Depsgraph &depsgraph, Object &ob, SculptSession &ss, float pose_origin[3], float pose_target[3], float max_len, float *r_pose_origin, MutableSpan< float > pose_factor) |
| static bool | vert_inside_brush_radius (const float3 &vertex, const float3 &br_co, float radius, char symm) |
| static void | calc_pose_origin_and_factor_mesh (const Depsgraph &depsgraph, Object &object, SculptSession &ss, const float3 &initial_location, float radius, float3 &r_pose_origin, MutableSpan< float > r_pose_factor) |
| static void | calc_pose_origin_and_factor_grids (Object &object, SculptSession &ss, const float3 &initial_location, float radius, float3 &r_pose_origin, MutableSpan< float > r_pose_factor) |
| static void | calc_pose_origin_and_factor_bmesh (Object &object, SculptSession &ss, const float3 &initial_location, float radius, float3 &r_pose_origin, MutableSpan< float > r_pose_factor) |
| static void | calc_pose_data (const Depsgraph &depsgraph, Object &object, SculptSession &ss, const float3 &initial_location, float radius, float pose_offset, float3 &r_pose_origin, MutableSpan< float > r_pose_factor) |
| static std::unique_ptr< IKChain > | ik_chain_new (const int totsegments, const int totverts) |
| static void | ik_chain_origin_heads_init (IKChain &ik_chain, const float3 &initial_location) |
| static int | brush_num_effective_segments (const Brush &brush) |
| static std::unique_ptr< IKChain > | ik_chain_init_topology (const Depsgraph &depsgraph, Object &object, SculptSession &ss, const Brush &brush, const float3 &initial_location, const float radius) |
| static std::unique_ptr< IKChain > | ik_chain_init_face_sets_mesh (const Depsgraph &depsgraph, Object &object, SculptSession &ss, const Brush &brush, const float radius) |
| static std::unique_ptr< IKChain > | ik_chain_init_face_sets_grids (Object &object, SculptSession &ss, const Brush &brush, const float radius) |
| static std::unique_ptr< IKChain > | ik_chain_init_face_sets_bmesh (Object &object, SculptSession &ss, const Brush &brush, const float radius) |
| static std::unique_ptr< IKChain > | ik_chain_init_face_sets (const Depsgraph &depsgraph, Object &object, SculptSession &ss, const Brush &brush, const float radius) |
| static std::optional< float3 > | calc_average_face_set_center (const Depsgraph &depsgraph, Object &object, const Span< int > floodfill_step, const int active_face_set, const int target_face_set) |
| static std::unique_ptr< IKChain > | ik_chain_init_face_sets_fk_mesh (const Depsgraph &depsgraph, Object &object, SculptSession &ss, const float radius, const float3 &initial_location) |
| static std::unique_ptr< IKChain > | ik_chain_init_face_sets_fk_grids (const Depsgraph &depsgraph, Object &object, SculptSession &ss, const float radius, const float3 &initial_location) |
| static std::unique_ptr< IKChain > | ik_chain_init_face_sets_fk_bmesh (const Depsgraph &depsgraph, Object &object, SculptSession &ss, const float radius, const float3 &initial_location) |
| static std::unique_ptr< IKChain > | ik_chain_init_face_sets_fk (const Depsgraph &depsgraph, Object &object, SculptSession &ss, const float radius, const float3 &initial_location) |
| static std::unique_ptr< IKChain > | ik_chain_init (const Depsgraph &depsgraph, Object &ob, SculptSession &ss, const Brush &brush, const float3 &initial_location, const float radius) |
| static bool | pose_brush_init (const Depsgraph &depsgraph, Object &ob, SculptSession &ss, const Brush &brush) |
| std::unique_ptr< SculptPoseIKChainPreview > | preview_ik_chain_init (const Depsgraph &depsgraph, Object &ob, SculptSession &ss, const Brush &brush, const float3 &initial_location, const float radius) |
| static void | sculpt_pose_do_translate_deform (SculptSession &ss, const Brush &brush) |
| static float | calc_scale_from_grab_delta (SculptSession &ss, const float3 &ik_target) |
| static void | calc_scale_deform (SculptSession &ss, const Brush &brush) |
| static void | calc_twist_deform (SculptSession &ss, const Brush &brush) |
| static void | calc_rotate_deform (SculptSession &ss, const Brush &brush) |
| static void | calc_rotate_twist_deform (SculptSession &ss, const Brush &brush) |
| static void | calc_scale_translate_deform (SculptSession &ss, const Brush &brush) |
| static void | calc_squash_stretch_deform (SculptSession &ss, const Brush &) |
| static void | align_pivot_local_space (float r_mat[4][4], ePaintSymmetryFlags symm, ePaintSymmetryAreas symm_area, IKChainSegment *segment, const float3 &grab_location) |
| void | do_pose_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask) |
|
static |
Definition at line 149 of file sculpt_pose.cc.
References add_arrays(), b, blender::BLI_assert(), BLI_NOINLINE, blender::Editor, blender::MutableSpan< T >::index_range(), PRF_scope, and blender::MutableSpan< T >::size().
Referenced by add_arrays(), calc_bmesh(), calc_grids(), and calc_mesh().
|
static |
Definition at line 330 of file sculpt_pose.cc.
References add_fake_neighbors(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BLI_NOINLINE, blender::Editor, blender::Vector< T, InlineBufferCapacity, Allocator >::extend(), FAKE_NEIGHBOR_NONE, blender::Span< T >::index_range(), blender::MutableSpan< T >::last(), PRF_scope, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and blender::Span< T >::slice().
Referenced by add_fake_neighbors(), and grow_factors_mesh().
|
static |
Definition at line 2108 of file sculpt_pose.cc.
References align_pivot_local_space(), blender::copy_v3_v3(), blender::ed::sculpt_paint::flip_v3_by_symm_area(), blender::math::normalize(), and blender::ortho_basis_v3v3_v3().
Referenced by align_pivot_local_space(), and do_pose_brush().
|
static |
Definition at line 901 of file sculpt_pose.cc.
References brush_num_effective_segments(), blender::BRUSH_POSE_DEFORM_SCALE_TRANSLATE, blender::BRUSH_POSE_DEFORM_SQUASH_STRETCH, and ELEM.
Referenced by brush_num_effective_segments(), ik_chain_init_face_sets_bmesh(), ik_chain_init_face_sets_grids(), ik_chain_init_face_sets_mesh(), and ik_chain_init_topology().
|
static |
Definition at line 1561 of file sculpt_pose.cc.
References blender::BKE_subdiv_ccg_key_top_level(), blender::bm, blender::BM_mesh_elem_count(), blender::BM_VERT, blender::BM_vert_at_index(), blender::bke::pbvh::BMesh, calc_average_face_set_center(), blender::CD_PROP_INT32, blender::BMVert::co, blender::CustomData_get_offset_named(), blender::data, blender::Editor, blender::bke::Face, float, blender::bke::ccg::grid_range(), blender::bke::pbvh::Grids, blender::SubdivCCG::grids_num, blender::Span< T >::index_range(), blender::bke::AttributeAccessor::lookup_or_default(), blender::bke::pbvh::Mesh, blender::bke::object::pbvh_get(), blender::BMesh::pdata, blender::SubdivCCG::positions, PRF_scope, blender::ed::sculpt_paint::face_set::vert_has_face_set(), blender::bke::pbvh::vert_positions_eval(), and blender::ed::sculpt_paint::vert_random_access_ensure().
Referenced by calc_average_face_set_center(), ik_chain_init_face_sets_fk_bmesh(), ik_chain_init_face_sets_fk_grids(), and ik_chain_init_face_sets_fk_mesh().
|
static |
Definition at line 259 of file sculpt_pose.cc.
References add_arrays(), blender::ed::sculpt_paint::apply_translations(), blender::MutableSpan< T >::as_span(), blender::ed::sculpt_paint::StrokeCache::automasking, blender::BKE_pbvh_bmesh_node_unique_verts(), blender::SculptSession::bm, blender::SculptSession::bm_log, blender::BRUSH_DEFORM_TARGET_CLOTH_SIM, blender::BRUSH_DEFORM_TARGET_GEOMETRY, blender::SculptSession::cache, calc_bmesh(), calc_segment_translations(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::clip_and_lock_translations(), blender::ed::sculpt_paint::StrokeCache::cloth_sim, blender::ed::sculpt_paint::pose::BrushLocalData::factors, blender::MutableSpan< T >::fill(), blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::ed::sculpt_paint::gather_bmesh_positions(), blender::ed::sculpt_paint::gather_data_bmesh(), node, blender::ed::sculpt_paint::orig_position_data_gather_bmesh(), blender::ed::sculpt_paint::StrokeCache::pose_ik_chain, blender::ed::sculpt_paint::pose::BrushLocalData::positions, blender::ed::sculpt_paint::reset_translations_to_original(), lexit::Vector< T >::resize(), blender::ed::sculpt_paint::scale_translations(), blender::ed::sculpt_paint::scatter_data_bmesh(), blender::ed::sculpt_paint::pose::BrushLocalData::segment_translations, blender::ed::sculpt_paint::pose::BrushLocalData::segment_weights, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), and blender::ed::sculpt_paint::pose::BrushLocalData::translations.
Referenced by calc_bmesh(), and do_pose_brush().
|
static |
Definition at line 206 of file sculpt_pose.cc.
References add_arrays(), blender::ed::sculpt_paint::apply_translations(), blender::MutableSpan< T >::as_span(), blender::ed::sculpt_paint::StrokeCache::automasking, blender::BRUSH_DEFORM_TARGET_CLOTH_SIM, blender::BRUSH_DEFORM_TARGET_GEOMETRY, blender::SculptSession::cache, calc_grids(), blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), calc_segment_translations(), blender::ed::sculpt_paint::clip_and_lock_translations(), blender::ed::sculpt_paint::StrokeCache::cloth_sim, blender::ed::sculpt_paint::pose::BrushLocalData::factors, blender::MutableSpan< T >::fill(), blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::ed::sculpt_paint::gather_data_grids(), blender::ed::sculpt_paint::gather_grids_positions(), node, blender::ed::sculpt_paint::orig_position_data_get_grids(), blender::ed::sculpt_paint::StrokeCache::pose_ik_chain, blender::ed::sculpt_paint::OrigPositionData::positions, blender::ed::sculpt_paint::pose::BrushLocalData::positions, blender::ed::sculpt_paint::reset_translations_to_original(), lexit::Vector< T >::resize(), blender::ed::sculpt_paint::scale_translations(), blender::ed::sculpt_paint::scatter_data_grids(), blender::ed::sculpt_paint::pose::BrushLocalData::segment_translations, blender::ed::sculpt_paint::pose::BrushLocalData::segment_weights, blender::Span< T >::size(), blender::SculptSession::subdiv_ccg, and blender::ed::sculpt_paint::pose::BrushLocalData::translations.
Referenced by calc_grids(), and do_pose_brush().
|
static |
Definition at line 158 of file sculpt_pose.cc.
References add_arrays(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::ed::sculpt_paint::StrokeCache::automasking, blender::BRUSH_DEFORM_TARGET_CLOTH_SIM, blender::BRUSH_DEFORM_TARGET_GEOMETRY, blender::SculptSession::cache, calc_mesh(), calc_segment_translations(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::clip_and_lock_translations(), blender::ed::sculpt_paint::StrokeCache::cloth_sim, blender::Array< T, InlineBufferCapacity, Allocator >::fill(), blender::ed::sculpt_paint::fill_factor_from_hide_and_mask(), blender::ed::sculpt_paint::gather_data_mesh(), blender::ed::sculpt_paint::MeshAttributeData::hide_vert, blender::ed::sculpt_paint::MeshAttributeData::mask, node, blender::ed::sculpt_paint::orig_position_data_get_mesh(), blender::ed::sculpt_paint::StrokeCache::pose_ik_chain, blender::ed::sculpt_paint::OrigPositionData::positions, blender::ed::sculpt_paint::reset_translations_to_original(), blender::ed::sculpt_paint::scale_translations(), blender::ed::sculpt_paint::scatter_data_mesh(), and blender::Span< T >::size().
Referenced by calc_mesh(), and do_pose_brush().
|
static |
Definition at line 827 of file sculpt_pose.cc.
References blender::BLI_assert(), blender::bke::pbvh::BMesh, calc_pose_data(), calc_pose_origin_and_factor_bmesh(), calc_pose_origin_and_factor_grids(), calc_pose_origin_and_factor_mesh(), blender::Editor, blender::bke::pbvh::Grids, grow_pose_factor(), blender::MutableSpan< T >::is_empty(), blender::bke::pbvh::Mesh, blender::math::normalize(), blender::bke::object::pbvh_get(), and PRF_scope.
Referenced by calc_pose_data(), and ik_chain_init_topology().
|
static |
Definition at line 776 of file sculpt_pose.cc.
References blender::SculptSession::active_vert_index(), blender::ed::sculpt_paint::flood_fill::FillDataBMesh::add_initial(), blender::BLI_assert(), blender::SculptSession::bm, BM_elem_index_get, blender::BM_mesh_elem_count(), blender::BM_VERT, calc_pose_origin_and_factor_bmesh(), blender::ed::sculpt_paint::check_vertex_pivot_symmetry(), blender::BMVert::co, blender::math::distance_squared(), blender::ed::sculpt_paint::flood_fill::FillDataBMesh::execute(), blender::SculptFakeNeighbors::fake_neighbor_index, blender::SculptSession::fake_neighbors, blender::ed::sculpt_paint::find_symm_verts_bmesh(), float, blender::MutableSpan< T >::is_empty(), blender::ed::sculpt_paint::mesh_symmetry_xyz_get(), vert_inside_brush_radius(), and blender::ed::sculpt_paint::vert_random_access_ensure().
Referenced by calc_pose_data(), and calc_pose_origin_and_factor_bmesh().
|
static |
Definition at line 719 of file sculpt_pose.cc.
References blender::SculptSession::active_vert_index(), blender::ed::sculpt_paint::flood_fill::FillDataGrids::add_initial(), blender::BKE_subdiv_ccg_key_top_level(), blender::BLI_assert(), calc_pose_origin_and_factor_grids(), blender::ed::sculpt_paint::check_vertex_pivot_symmetry(), blender::math::distance_squared(), blender::ed::sculpt_paint::flood_fill::FillDataGrids::execute(), blender::SculptFakeNeighbors::fake_neighbor_index, blender::SculptSession::fake_neighbors, blender::ed::sculpt_paint::find_symm_verts_grids(), float, blender::MutableSpan< T >::is_empty(), blender::ed::sculpt_paint::mesh_symmetry_xyz_get(), blender::SubdivCCG::positions, blender::Span< T >::size(), blender::SculptSession::subdiv_ccg, blender::SubdivCCGCoord::to_index(), and vert_inside_brush_radius().
Referenced by calc_pose_data(), and calc_pose_origin_and_factor_grids().
|
static |
fallback_floodfill_origin: In topology mode this stores the furthest point from the stroke origin for cases when a pose origin based on the brush radius can't be set.
Definition at line 666 of file sculpt_pose.cc.
References blender::SculptSession::active_vert_index(), blender::ed::sculpt_paint::flood_fill::FillDataMesh::add_initial(), blender::BLI_assert(), calc_pose_origin_and_factor_mesh(), blender::ed::sculpt_paint::check_vertex_pivot_symmetry(), blender::data, blender::math::distance_squared(), blender::ed::sculpt_paint::flood_fill::FillDataMesh::execute(), blender::SculptFakeNeighbors::fake_neighbor_index, blender::SculptSession::fake_neighbors, blender::ed::sculpt_paint::find_symm_verts_mesh(), float, blender::MutableSpan< T >::is_empty(), blender::ed::sculpt_paint::mesh_symmetry_xyz_get(), blender::Span< T >::size(), vert_inside_brush_radius(), and blender::bke::pbvh::vert_positions_eval().
Referenced by calc_pose_data(), and calc_pose_origin_and_factor_mesh().
|
static |
Definition at line 2052 of file sculpt_pose.cc.
References blender::BRUSH_POSE_IK_ANCHORED, blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, calc_rotate_deform(), blender::ed::sculpt_paint::StrokeCache::grab_delta, blender::ed::sculpt_paint::pose::IKChain::grab_delta_offset, blender::ed::sculpt_paint::StrokeCache::location, blender::ed::sculpt_paint::StrokeCache::pose_ik_chain, and solve_ik_chain().
Referenced by calc_rotate_deform(), and calc_rotate_twist_deform().
|
static |
Definition at line 2064 of file sculpt_pose.cc.
References blender::SculptSession::cache, calc_rotate_deform(), calc_rotate_twist_deform(), calc_twist_deform(), blender::ed::sculpt_paint::StrokeToggleSettings::invert, and blender::ed::sculpt_paint::StrokeCache::toggle_settings.
Referenced by calc_rotate_twist_deform(), and do_pose_brush().
|
static |
Definition at line 2025 of file sculpt_pose.cc.
References blender::BRUSH_POSE_IK_ANCHORED, blender::BRUSH_POSE_USE_LOCK_ROTATION, blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, calc_scale_deform(), calc_scale_from_grab_delta(), blender::ed::sculpt_paint::StrokeCache::grab_delta, blender::ed::sculpt_paint::StrokeCache::location, blender::ed::sculpt_paint::StrokeCache::pose_ik_chain, scale(), solve_ik_chain(), and solve_scale_chain().
Referenced by calc_scale_deform(), and calc_scale_translate_deform().
|
static |
Definition at line 2014 of file sculpt_pose.cc.
References blender::SculptSession::cache, calc_scale_from_grab_delta(), blender::dist_signed_to_plane_v3(), blender::math::normalize(), blender::plane_from_point_normal_v3(), blender::ed::sculpt_paint::StrokeCache::pose_ik_chain, and blender::ed::sculpt_paint::pose::IKChain::segments.
Referenced by calc_scale_deform(), calc_scale_from_grab_delta(), and calc_squash_stretch_deform().
|
static |
Definition at line 2074 of file sculpt_pose.cc.
References blender::SculptSession::cache, calc_scale_deform(), calc_scale_translate_deform(), blender::ed::sculpt_paint::StrokeToggleSettings::invert, sculpt_pose_do_translate_deform(), and blender::ed::sculpt_paint::StrokeCache::toggle_settings.
Referenced by calc_scale_translate_deform(), and do_pose_brush().
|
static |
Definition at line 133 of file sculpt_pose.cc.
References blender::BLI_assert(), BLI_NOINLINE, calc_segment_translations(), blender::Editor, blender::ed::sculpt_paint::get_vertex_symm_area(), blender::Span< T >::index_range(), position, PRF_scope, blender::MutableSpan< T >::size(), blender::Span< T >::size(), and blender::math::transform_point().
Referenced by calc_bmesh(), calc_grids(), calc_mesh(), and calc_segment_translations().
|
static |
Definition at line 2084 of file sculpt_pose.cc.
References blender::math::abs(), blender::BLI_assert(), blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, calc_scale_from_grab_delta(), calc_squash_stretch_deform(), blender::ed::sculpt_paint::StrokeCache::grab_delta, blender::ed::sculpt_paint::StrokeCache::location, blender::ed::sculpt_paint::StrokeCache::pose_ik_chain, scale(), blender::math::sign(), solve_scale_chain(), and blender::math::sqrt().
Referenced by calc_squash_stretch_deform(), and do_pose_brush().
|
static |
Definition at line 2042 of file sculpt_pose.cc.
References blender::BKE_curvemapping_init(), blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, calc_twist_deform(), blender::ed::sculpt_paint::StrokeCache::initial_mouse, blender::ed::sculpt_paint::StrokeCache::mouse, blender::ed::sculpt_paint::StrokeCache::pose_ik_chain, and solve_roll_chain().
Referenced by calc_rotate_twist_deform(), and calc_twist_deform().
| void blender::ed::sculpt_paint::pose::do_pose_brush | ( | const Depsgraph & | depsgraph, |
| const Sculpt & | sd, | ||
| Object & | ob, | ||
| const IndexMask & | node_mask ) |
Definition at line 2123 of file sculpt_pose.cc.
References align_pivot_local_space(), blender::BKE_paint_brush_for_read(), blender::bke::pbvh::BMesh, blender::BRUSH_POSE_DEFORM_ROTATE_TWIST, blender::BRUSH_POSE_DEFORM_SCALE_TRANSLATE, blender::BRUSH_POSE_DEFORM_SQUASH_STRETCH, blender::SculptSession::cache, calc_bmesh(), calc_grids(), calc_mesh(), calc_rotate_twist_deform(), calc_scale_translate_deform(), calc_squash_stretch_deform(), blender::copy_qt_qt(), blender::Object::data, do_pose_brush(), blender::Editor, blender::ed::sculpt_paint::flip_quat_by_symm_area(), blender::ed::sculpt_paint::flip_v3_by_symm_area(), blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::SubdivCCG::grid_area, blender::bke::pbvh::Grids, blender::invert_m4_m4(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::ed::sculpt_paint::mesh_symmetry_xyz_get(), blender::ed::sculpt_paint::StrokeCache::mirror_symmetry_pass, blender::mul_m4_m4_post(), blender::mul_v3_fl(), blender::ed::sculpt_paint::StrokeCache::orig_grab_location, blender::Sculpt::paint, PAINT_SYMM_AREAS, blender::bke::object::pbvh_get(), pose_brush_init(), blender::ed::sculpt_paint::StrokeCache::pose_ik_chain, blender::SubdivCCG::positions, PRF_scope, blender::quat_to_mat4(), blender::Object::runtime, blender::bke::ObjectRuntime::sculpt_session, blender::ed::sculpt_paint::pose::IKChain::segments, blender::SculptSession::subdiv_ccg, blender::translate_m4(), blender::unit_m4(), blender::bke::pbvh::update_node_bounds_bmesh(), blender::bke::pbvh::update_node_bounds_grids(), and blender::bke::pbvh::update_node_bounds_mesh().
Referenced by blender::ed::sculpt_paint::do_brush_action(), and do_pose_brush().
|
static |
Definition at line 460 of file sculpt_pose.cc.
References blender::BKE_pbvh_bmesh_node_unique_verts(), BM_elem_index_get, blender::ed::sculpt_paint::check_vertex_pivot_symmetry(), FAKE_NEIGHBOR_NONE, grow_factors_bmesh(), blender::Span< T >::is_empty(), max, node, blender::ed::sculpt_paint::pose::PoseGrowFactorData::pos_avg, blender::ed::sculpt_paint::pose::PoseGrowFactorData::pos_count, position, and blender::ed::sculpt_paint::vert_neighbors_get_bmesh().
Referenced by grow_factors_bmesh().
|
static |
Definition at line 408 of file sculpt_pose.cc.
References blender::BKE_subdiv_ccg_key_top_level(), blender::BKE_subdiv_ccg_neighbor_coords_get(), blender::CCG_grid_xy_to_index(), blender::ed::sculpt_paint::check_vertex_pivot_symmetry(), blender::SubdivCCGNeighbors::coords, FAKE_NEIGHBOR_NONE, blender::SubdivCCG::grid_hidden, blender::bke::ccg::grid_range(), blender::CCGKey::grid_size, grow_factors_grids(), blender::Span< T >::index_range(), blender::IndexRange::IndexRange(), blender::bits::BitGroupVector< InlineBufferCapacity, Allocator >::is_empty(), blender::Span< T >::is_empty(), max, node, blender::ed::sculpt_paint::pose::PoseGrowFactorData::pos_avg, blender::ed::sculpt_paint::pose::PoseGrowFactorData::pos_count, position, blender::SubdivCCG::positions, blender::SubdivCCGCoord::to_index(), blender::x, and y.
Referenced by grow_factors_grids().
|
static |
Definition at line 352 of file sculpt_pose.cc.
References add_fake_neighbors(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::ed::sculpt_paint::calc_vert_neighbors(), blender::ed::sculpt_paint::check_vertex_pivot_symmetry(), grow_factors_mesh(), blender::Span< T >::index_range(), blender::Span< T >::is_empty(), max, blender::ed::sculpt_paint::pose::GrowFactorLocalData::neighbor_data, blender::ed::sculpt_paint::pose::GrowFactorLocalData::neighbor_data_with_fake, blender::ed::sculpt_paint::pose::GrowFactorLocalData::neighbor_offsets, node, blender::ed::sculpt_paint::hide::node_visible_verts(), blender::ed::sculpt_paint::pose::PoseGrowFactorData::pos_avg, blender::ed::sculpt_paint::pose::PoseGrowFactorData::pos_count, and position.
Referenced by grow_factors_mesh().
|
static |
Definition at line 498 of file sculpt_pose.cc.
References blender::bke::pbvh::all_leaf_nodes(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::bke::pbvh::BMesh, blender::Object::data, blender::Editor, blender::bke::Face, blender::SculptFakeNeighbors::fake_neighbor_index, blender::SculptSession::fake_neighbors, FLT_MAX, blender::bke::pbvh::Grids, grow_pose_factor(), blender::index_mask::IndexMask::index_range(), blender::ed::sculpt_paint::pose::PoseGrowFactorData::join(), blender::bke::AttributeAccessor::lookup(), blender::bke::pbvh::Mesh, blender::ed::sculpt_paint::mesh_symmetry_xyz_get(), blender::threading::parallel_reduce(), blender::bke::object::pbvh_get(), blender::bke::Point, PRF_scope, blender::SculptSession::subdiv_ccg, blender::bke::pbvh::vert_positions_eval(), and blender::ed::sculpt_paint::vertex_count_get().
Referenced by calc_pose_data(), grow_pose_factor(), and ik_chain_init_topology().
|
static |
Definition at line 1927 of file sculpt_pose.cc.
References blender::BRUSH_POSE_ORIGIN_FACE_SETS, blender::BRUSH_POSE_ORIGIN_FACE_SETS_FK, blender::BRUSH_POSE_ORIGIN_TOPOLOGY, blender::BRUSH_USE_CONNECTED_ONLY, blender::ed::sculpt_paint::fake_neighbors_ensure(), blender::ed::sculpt_paint::fake_neighbors_free(), ik_chain_init(), ik_chain_init_face_sets(), ik_chain_init_face_sets_fk(), and ik_chain_init_topology().
Referenced by ik_chain_init(), pose_brush_init(), and preview_ik_chain_init().
|
static |
Definition at line 1541 of file sculpt_pose.cc.
References BLI_assert_unreachable, blender::bke::pbvh::BMesh, blender::Editor, blender::bke::pbvh::Grids, ik_chain_init_face_sets(), ik_chain_init_face_sets_bmesh(), ik_chain_init_face_sets_grids(), ik_chain_init_face_sets_mesh(), blender::bke::pbvh::Mesh, blender::bke::object::pbvh_get(), and PRF_scope.
Referenced by ik_chain_init(), and ik_chain_init_face_sets().
|
static |
Definition at line 1383 of file sculpt_pose.cc.
References blender::SculptSession::active_vert(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::SculptSession::bm, BM_elem_index_get, blender::BM_mesh_elem_count(), blender::BM_VERT, brush_num_effective_segments(), blender::CD_PROP_INT32, blender::ed::sculpt_paint::check_vertex_pivot_symmetry(), blender::BMVert::co, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::CustomData_get_offset_named(), blender::SculptFakeNeighbors::fake_neighbor_index, blender::SculptSession::fake_neighbors, blender::ed::sculpt_paint::find_symm_verts_bmesh(), float, ik_chain_init_face_sets_bmesh(), ik_chain_new(), ik_chain_origin_heads_init(), blender::ed::sculpt_paint::mesh_symmetry_xyz_get(), blender::BMesh::pdata, blender::ed::sculpt_paint::face_set::vert_face_set_max_get(), blender::ed::sculpt_paint::face_set::vert_has_face_set(), blender::ed::sculpt_paint::face_set::vert_has_unique_face_set(), vert_inside_brush_radius(), and blender::ed::sculpt_paint::vert_neighbors_get_bmesh().
Referenced by ik_chain_init_face_sets(), and ik_chain_init_face_sets_bmesh().
|
static |
Definition at line 1908 of file sculpt_pose.cc.
References BLI_assert_unreachable, blender::bke::pbvh::BMesh, blender::Editor, blender::bke::pbvh::Grids, ik_chain_init_face_sets_fk(), ik_chain_init_face_sets_fk_bmesh(), ik_chain_init_face_sets_fk_grids(), ik_chain_init_face_sets_fk_mesh(), blender::bke::pbvh::Mesh, blender::bke::object::pbvh_get(), and PRF_scope.
Referenced by ik_chain_init(), and ik_chain_init_face_sets_fk().
|
static |
Definition at line 1822 of file sculpt_pose.cc.
References blender::ed::sculpt_paint::face_set::active_face_set_get(), blender::SculptSession::active_vert(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::ed::sculpt_paint::flood_fill::FillDataBMesh::add_initial(), blender::bm, blender::SculptSession::bm, BM_elem_index_get, blender::BM_mesh_elem_count(), blender::BM_VERT, calc_average_face_set_center(), blender::CD_PROP_INT32, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::CustomData_get_offset_named(), blender::ed::sculpt_paint::flood_fill::FillDataBMesh::execute(), blender::SculptFakeNeighbors::fake_neighbor_index, blender::SculptSession::fake_neighbors, blender::ed::sculpt_paint::find_symm_verts_bmesh(), ik_chain_init_face_sets_fk_bmesh(), ik_chain_new(), ik_chain_origin_heads_init(), blender::BMesh::pdata, blender::ed::sculpt_paint::face_set::vert_face_set_max_get(), blender::ed::sculpt_paint::face_set::vert_has_face_set(), blender::ed::sculpt_paint::face_set::vert_has_unique_face_set(), and blender::ed::sculpt_paint::vert_random_access_ensure().
Referenced by ik_chain_init_face_sets_fk(), and ik_chain_init_face_sets_fk_bmesh().
|
static |
Definition at line 1719 of file sculpt_pose.cc.
References blender::ed::sculpt_paint::face_set::active_face_set_get(), blender::SculptSession::active_vert_index(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::ed::sculpt_paint::flood_fill::FillDataGrids::add_initial(), blender::BKE_subdiv_ccg_key_top_level(), calc_average_face_set_center(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::data, blender::ed::sculpt_paint::flood_fill::FillDataGrids::execute(), blender::bke::Face, blender::SculptFakeNeighbors::fake_neighbor_index, blender::SculptSession::fake_neighbors, blender::ed::sculpt_paint::find_symm_verts_grids(), blender::SubdivCCGCoord::from_index(), blender::CCGKey::grid_area, blender::SubdivCCGCoord::grid_index, blender::SubdivCCG::grids_num, ik_chain_init_face_sets_fk_grids(), ik_chain_new(), ik_chain_origin_heads_init(), blender::bke::AttributeAccessor::lookup_or_default(), blender::SculptSession::subdiv_ccg, blender::SubdivCCGCoord::to_index(), blender::ed::sculpt_paint::face_set::vert_has_face_set(), and blender::ed::sculpt_paint::face_set::vert_has_unique_face_set().
Referenced by ik_chain_init_face_sets_fk(), and ik_chain_init_face_sets_fk_grids().
|
static |
Definition at line 1641 of file sculpt_pose.cc.
References blender::ed::sculpt_paint::face_set::active_face_set_get(), blender::SculptSession::active_vert(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::ed::sculpt_paint::flood_fill::FillDataMesh::add_initial(), calc_average_face_set_center(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::data, blender::ed::sculpt_paint::flood_fill::FillDataMesh::execute(), blender::bke::Face, blender::SculptFakeNeighbors::fake_neighbor_index, blender::SculptSession::fake_neighbors, blender::ed::sculpt_paint::find_symm_verts_mesh(), ik_chain_init_face_sets_fk_mesh(), ik_chain_new(), ik_chain_origin_heads_init(), blender::bke::AttributeAccessor::lookup_or_default(), blender::ed::sculpt_paint::face_set::vert_face_set_max_get(), blender::ed::sculpt_paint::face_set::vert_has_face_set(), and blender::ed::sculpt_paint::face_set::vert_has_unique_face_set().
Referenced by ik_chain_init_face_sets_fk(), and ik_chain_init_face_sets_fk_mesh().
|
static |
Definition at line 1204 of file sculpt_pose.cc.
References blender::SculptSession::active_vert_index(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::BKE_subdiv_ccg_key_top_level(), blender::BKE_subdiv_ccg_neighbor_coords_get(), brush_num_effective_segments(), blender::ed::sculpt_paint::check_vertex_pivot_symmetry(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::SubdivCCGNeighbors::coords, blender::data, blender::bke::Face, blender::SculptFakeNeighbors::fake_neighbor_index, blender::SculptSession::fake_neighbors, blender::ed::sculpt_paint::find_symm_verts_grids(), float, blender::CCGKey::grid_area, blender::SubdivCCGCoord::grid_index, blender::SubdivCCG::grids_num, ik_chain_init_face_sets_grids(), ik_chain_new(), ik_chain_origin_heads_init(), blender::bke::AttributeAccessor::lookup_or_default(), blender::ed::sculpt_paint::mesh_symmetry_xyz_get(), blender::SculptSession::subdiv_ccg, blender::SubdivCCGCoord::to_index(), blender::ed::sculpt_paint::face_set::vert_face_set_get(), blender::ed::sculpt_paint::face_set::vert_has_face_set(), blender::ed::sculpt_paint::face_set::vert_has_unique_face_set(), and vert_inside_brush_radius().
Referenced by ik_chain_init_face_sets(), and ik_chain_init_face_sets_grids().
|
static |
Definition at line 1031 of file sculpt_pose.cc.
References blender::SculptSession::active_vert(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), brush_num_effective_segments(), blender::ed::sculpt_paint::check_vertex_pivot_symmetry(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::data, blender::bke::Face, blender::SculptFakeNeighbors::fake_neighbor_index, blender::SculptSession::fake_neighbors, blender::ed::sculpt_paint::find_symm_verts_mesh(), float, ik_chain_init_face_sets_mesh(), ik_chain_new(), ik_chain_origin_heads_init(), blender::bke::AttributeAccessor::lookup(), blender::bke::AttributeAccessor::lookup_or_default(), blender::ed::sculpt_paint::mesh_symmetry_xyz_get(), blender::bke::Point, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::Span< T >::size(), blender::ed::sculpt_paint::face_set::vert_face_set_max_get(), blender::ed::sculpt_paint::face_set::vert_has_face_set(), blender::ed::sculpt_paint::face_set::vert_has_unique_face_set(), vert_inside_brush_radius(), blender::ed::sculpt_paint::vert_neighbors_get_mesh(), and blender::bke::pbvh::vert_positions_eval().
Referenced by ik_chain_init_face_sets(), and ik_chain_init_face_sets_mesh().
|
static |
Definition at line 915 of file sculpt_pose.cc.
References blender::BKE_subdiv_ccg_key_top_level(), BM_elem_index_get, blender::bke::pbvh::BMesh, brush_num_effective_segments(), calc_pose_data(), blender::data, blender::bke::pbvh::Grids, grow_pose_factor(), ik_chain_init_topology(), ik_chain_new(), ik_chain_origin_heads_init(), blender::bke::AttributeAccessor::lookup(), blender::bke::pbvh::Mesh, blender::ed::sculpt_paint::nearest_vert_calc_bmesh(), blender::ed::sculpt_paint::nearest_vert_calc_grids(), blender::ed::sculpt_paint::nearest_vert_calc_mesh(), blender::bke::object::pbvh_get(), blender::bke::Point, blender::SculptSession::subdiv_ccg, blender::bke::pbvh::vert_positions_eval(), and blender::ed::sculpt_paint::vertex_count_get().
Referenced by ik_chain_init(), and ik_chain_init_topology().
|
static |
Definition at line 868 of file sculpt_pose.cc.
References ik_chain_new().
Referenced by ik_chain_init_face_sets_bmesh(), ik_chain_init_face_sets_fk_bmesh(), ik_chain_init_face_sets_fk_grids(), ik_chain_init_face_sets_fk_mesh(), ik_chain_init_face_sets_grids(), ik_chain_init_face_sets_mesh(), ik_chain_init_topology(), and ik_chain_new().
|
static |
Definition at line 879 of file sculpt_pose.cc.
References blender::math::distance(), ik_chain_origin_heads_init(), and blender::ed::sculpt_paint::pose::IKChain::segments.
Referenced by ik_chain_init_face_sets_bmesh(), ik_chain_init_face_sets_fk_bmesh(), ik_chain_init_face_sets_fk_grids(), ik_chain_init_face_sets_fk_mesh(), ik_chain_init_face_sets_grids(), ik_chain_init_face_sets_mesh(), ik_chain_init_topology(), and ik_chain_origin_heads_init().
|
static |
Definition at line 1960 of file sculpt_pose.cc.
References blender::ed::sculpt_paint::smooth::blur_geometry_data_array(), blender::SculptSession::cache, ik_chain_init(), blender::ed::sculpt_paint::StrokeCache::location, pose_brush_init(), blender::ed::sculpt_paint::StrokeCache::pose_ik_chain, and blender::ed::sculpt_paint::StrokeCache::radius.
Referenced by do_pose_brush(), and pose_brush_init().
| std::unique_ptr< SculptPoseIKChainPreview > blender::ed::sculpt_paint::pose::preview_ik_chain_init | ( | const Depsgraph & | depsgraph, |
| Object & | ob, | ||
| SculptSession & | ss, | ||
| const Brush & | brush, | ||
| const float3 & | initial_location, | ||
| const float | radius ) |
Definition at line 1981 of file sculpt_pose.cc.
References ik_chain_init(), and preview_ik_chain_init().
Referenced by preview_ik_chain_init(), and blender::ed::sculpt_paint::screen_space_overlays_draw().
|
static |
Definition at line 2006 of file sculpt_pose.cc.
References blender::BKE_curvemapping_init(), blender::ed::sculpt_paint::StrokeCache::bstrength, blender::SculptSession::cache, blender::ed::sculpt_paint::StrokeCache::grab_delta, blender::ed::sculpt_paint::StrokeCache::pose_ik_chain, sculpt_pose_do_translate_deform(), and solve_translate_chain().
Referenced by calc_scale_translate_deform(), and sculpt_pose_do_translate_deform().
|
static |
Definition at line 45 of file sculpt_pose.cc.
References blender::MutableSpan< T >::index_range(), blender::MutableSpan< T >::last(), blender::math::normalize(), rot, blender::rotation_between_vecs_to_quat(), blender::ed::sculpt_paint::pose::IKChain::segments, and solve_ik_chain().
Referenced by calc_rotate_deform(), calc_scale_deform(), and solve_ik_chain().
|
static |
Definition at line 84 of file sculpt_pose.cc.
References blender::axis_angle_normalized_to_quat(), blender::BKE_brush_curve_strength(), blender::MutableSpan< T >::index_range(), blender::math::normalize(), rot, blender::rotation_between_quats_to_quat(), blender::ed::sculpt_paint::pose::IKChain::segments, blender::MutableSpan< T >::size(), and solve_roll_chain().
Referenced by calc_twist_deform(), and solve_roll_chain().
|
static |
Definition at line 117 of file sculpt_pose.cc.
References blender::copy_v3_v3(), scale(), blender::ed::sculpt_paint::pose::IKChain::segments, and solve_scale_chain().
Referenced by calc_scale_deform(), calc_squash_stretch_deform(), and solve_scale_chain().
|
static |
Definition at line 105 of file sculpt_pose.cc.
References blender::add_v3_v3v3(), blender::ed::sculpt_paint::pose::IKChain::segments, solve_translate_chain(), and blender::unit_qt().
Referenced by sculpt_pose_do_translate_deform(), and solve_translate_chain().
|
static |
Definition at line 646 of file sculpt_pose.cc.
References blender::math::distance(), blender::ed::sculpt_paint::is_symmetry_iteration_valid(), blender::ed::sculpt_paint::symmetry_flip(), vert_inside_brush_radius(), and vertex.
Referenced by calc_pose_origin_and_factor_bmesh(), calc_pose_origin_and_factor_grids(), calc_pose_origin_and_factor_mesh(), ik_chain_init_face_sets_bmesh(), ik_chain_init_face_sets_grids(), ik_chain_init_face_sets_mesh(), and vert_inside_brush_radius().