|
Blender V5.0
|
Functions | |
| int | vert_id_get (const SculptSession &ss, const int vert) |
| void | invalidate (SculptSession &ss) |
| static SculptTopologyIslandCache | vert_disjoint_set_to_islands (const AtomicDisjointSet &vert_sets, const int verts_num) |
| static SculptTopologyIslandCache | calc_topology_islands_mesh (const Mesh &mesh) |
| static SculptTopologyIslandCache | calc_topology_islands_grids (const Object &object) |
| static SculptTopologyIslandCache | calc_topology_islands_bmesh (const Object &object) |
| static SculptTopologyIslandCache | calculate_cache (const Object &object) |
| void | ensure_cache (Object &object) |
|
static |
Definition at line 6275 of file sculpt.cc.
References blender::bke::pbvh::all_leaf_nodes(), BKE_pbvh_bmesh_node_faces(), bm, SculptSession::bm, BM_elem_flag_test, BM_ELEM_HIDDEN, BM_elem_index_get, calc_topology_islands_bmesh(), blender::index_mask::IndexMask::foreach_index(), i, blender::AtomicDisjointSet::join(), blender::bke::pbvh::Tree::nodes(), blender::bke::object::pbvh_get(), vert_disjoint_set_to_islands(), and blender::ed::sculpt_paint::vert_random_access_ensure().
Referenced by calc_topology_islands_bmesh(), and calculate_cache().
|
static |
Definition at line 6250 of file sculpt.cc.
References BKE_subdiv_ccg_key_top_level(), calc_topology_islands_grids(), SubdivCCG::grids_num, blender::threading::parallel_for(), SubdivCCG::positions, and SculptSession::subdiv_ccg.
Referenced by calc_topology_islands_grids(), and calculate_cache().
|
static |
Definition at line 6225 of file sculpt.cc.
References calc_topology_islands_mesh(), blender::IndexRange::drop_front(), blender::bke::Face, faces, blender::Span< T >::first(), blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_bools_inverse(), i, blender::Span< T >::index_range(), blender::Span< T >::is_empty(), blender::AtomicDisjointSet::join(), blender::bke::AttributeAccessor::lookup(), blender::Span< T >::slice(), and vert_disjoint_set_to_islands().
Referenced by calc_topology_islands_mesh(), and calculate_cache().
|
static |
Definition at line 6303 of file sculpt.cc.
References BLI_assert_unreachable, blender::bke::pbvh::BMesh, calc_topology_islands_bmesh(), calc_topology_islands_grids(), calc_topology_islands_mesh(), calculate_cache(), data, blender::bke::pbvh::Grids, blender::bke::pbvh::Mesh, and blender::bke::object::pbvh_get().
Referenced by calculate_cache(), and ensure_cache().
| void blender::ed::sculpt_paint::islands::ensure_cache | ( | Object & | object | ) |
Definition at line 6317 of file sculpt.cc.
References calculate_cache(), ensure_cache(), and SculptSession::topology_island_cache.
Referenced by blender::ed::sculpt_paint::auto_mask::cache_init(), blender::ed::sculpt_paint::expand::check_topology_islands(), ensure_cache(), blender::ed::sculpt_paint::expand::ensure_sculptsession_data(), SCULPT_fake_neighbors_ensure(), and blender::ed::sculpt_paint::mask::sculpt_mask_init_exec().
| void blender::ed::sculpt_paint::islands::invalidate | ( | SculptSession & | ss | ) |
Mark vertex island keys as invalid. Call when adding or hiding geometry.
Definition at line 6199 of file sculpt.cc.
References SculptSession::topology_island_cache.
Referenced by blender::ed::sculpt_paint::face_set::change_visibility_exec(), blender::ed::sculpt_paint::trim::gesture_begin(), blender::ed::sculpt_paint::hide::hide_show_all_exec(), blender::ed::sculpt_paint::hide::hide_show_end(), blender::ed::sculpt_paint::hide::hide_show_masked_exec(), blender::ed::sculpt_paint::hide::sync_all_from_faces(), blender::ed::sculpt_paint::hide::visibility_filter_exec(), and blender::ed::sculpt_paint::hide::visibility_invert_exec().
|
static |
Definition at line 6204 of file sculpt.cc.
References blender::AtomicDisjointSet::calc_reduced_ids(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::threading::parallel_for(), blender::Array< T, InlineBufferCapacity, Allocator >::size(), and vert_disjoint_set_to_islands().
Referenced by calc_topology_islands_bmesh(), calc_topology_islands_mesh(), and vert_disjoint_set_to_islands().
| int blender::ed::sculpt_paint::islands::vert_id_get | ( | const SculptSession & | ss, |
| int | vert ) |
Get vertex island key.
Definition at line 6184 of file sculpt.cc.
References BLI_assert, Array< T, InlineBufferCapacity, Allocator >::is_empty(), SculptSession::topology_island_cache, vert_id_get(), and SculptTopologyIslandCache::vert_island_ids.
Referenced by blender::ed::sculpt_paint::auto_mask::cache_init(), blender::ed::sculpt_paint::auto_mask::calc_face_factors(), blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::fake_neighbor_search(), blender::ed::sculpt_paint::fake_neighbor_search_bmesh(), blender::ed::sculpt_paint::fake_neighbor_search_grids(), blender::ed::sculpt_paint::fake_neighbor_search_mesh(), blender::ed::sculpt_paint::expand::find_active_connected_components_from_vert(), blender::ed::sculpt_paint::expand::is_vert_in_active_component(), blender::ed::sculpt_paint::mask::sculpt_mask_init_exec(), and vert_id_get().