|
Blender V5.3
|
Classes | |
| struct | DualBuffer |
| struct | DualBitBuffer |
| struct | HideShowOperation |
Internal Visibility Utilities | |
Functions that assist with applying changes to the different bke::pbvh::Tree types. | |
| enum class | VisAction { Hide = 0 , Show = 1 } |
| static bool | action_to_hide (const VisAction action) |
| static void | calc_face_hide (const Span< int > node_faces, const OffsetIndices< int > faces, const Span< int > corner_verts, const Span< bool > hide_vert, MutableSpan< bool > hide_face) |
| static void | flush_face_changes_node (Mesh &mesh, bke::pbvh::Tree &pbvh, const IndexMask &node_mask, const Span< bool > hide_vert) |
| static void | flush_face_changes (Mesh &mesh, const Span< bool > hide_vert) |
| static void | flush_edge_changes (Mesh &mesh, const Span< bool > hide_vert) |
| static void | vert_hide_update (const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask, const FunctionRef< void(Span< int >, MutableSpan< bool >)> calc_hide) |
| static void | grid_hide_update (Depsgraph &depsgraph, Object &object, const IndexMask &node_mask, const FunctionRef< void(const int, MutableBoundedBitSpan)> calc_hide) |
| static void | partialvis_update_bmesh_verts (const Set< BMVert *, 0 > &verts, const VisAction action, const FunctionRef< bool(BMVert *v)> should_update, bool *any_changed, bool *any_visible) |
| static void | partialvis_update_bmesh_faces (const Set< BMFace *, 0 > &faces) |
| static void | partialvis_update_bmesh_nodes (const Depsgraph &depsgraph, Object &ob, const IndexMask &node_mask, const VisAction action, const FunctionRef< bool(BMVert *v)> vert_test_fn) |
Global Visibility Operators | |
Operators that act upon the entirety of a given object's mesh. | |
| static constexpr float | VERTEX_ITERATION_THRESHOLD = 50000.0f |
| static void | partialvis_all_update_mesh (const Depsgraph &depsgraph, Object &object, const VisAction action, const IndexMask &node_mask) |
| static void | partialvis_all_update_grids (Depsgraph &depsgraph, Object &object, const VisAction action, const IndexMask &node_mask) |
| static void | partialvis_all_update_bmesh (const Depsgraph &depsgraph, Object &ob, const VisAction action, const IndexMask &node_mask) |
| static wmOperatorStatus | hide_show_all_exec (bContext *C, wmOperator *op) |
| static void | partialvis_masked_update_mesh (const Depsgraph &depsgraph, Object &object, const VisAction action, const IndexMask &node_mask) |
| static void | partialvis_masked_update_grids (Depsgraph &depsgraph, Object &object, const VisAction action, const IndexMask &node_mask) |
| static void | partialvis_masked_update_bmesh (const Depsgraph &depsgraph, Object &ob, const VisAction action, const IndexMask &node_mask) |
| static wmOperatorStatus | hide_show_masked_exec (bContext *C, wmOperator *op) |
| static void | hide_show_operator_properties (wmOperatorType *ot) |
| void | PAINT_OT_hide_show_masked (wmOperatorType *ot) |
| void | PAINT_OT_hide_show_all (wmOperatorType *ot) |
| static void | invert_visibility_mesh (const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask) |
| static void | invert_visibility_grids (Depsgraph &depsgraph, Object &object, const IndexMask &node_mask) |
| static void | invert_visibility_bmesh (const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask) |
| static wmOperatorStatus | visibility_invert_exec (bContext *C, wmOperator *op) |
| void | PAINT_OT_visibility_invert (wmOperatorType *ot) |
| template<bool value> | |
| static void | affect_visibility_mesh (const IndexRange face, const Span< int > corner_verts, const Span< bool > read_buffer, MutableSpan< bool > write_buffer) |
| static void | propagate_vertex_visibility (Mesh &mesh, DualBuffer &buffers, const VArraySpan< bool > &hide_poly, const VisAction action, const int iterations) |
| static void | update_undo_state (const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask, const Span< bool > old_hide_vert, const Span< bool > new_hide_vert) |
| static void | update_node_visibility_from_face_changes (bke::pbvh::Tree &pbvh, const IndexMask &node_mask, const Span< bool > orig_hide_poly, const Span< bool > new_hide_poly, const Span< bool > hide_vert) |
| static void | grow_shrink_visibility_mesh (const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask, const VisAction action, const int iterations) |
| static void | grow_shrink_visibility_grid (Depsgraph &depsgraph, Object &object, const IndexMask &node_mask, const VisAction action, const int iterations) |
| static Array< bool > | duplicate_visibility_bmesh (const Object &object) |
| static void | grow_shrink_visibility_bmesh (const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask, const VisAction action, const int iterations) |
| static wmOperatorStatus | visibility_filter_exec (bContext *C, wmOperator *op) |
| void | PAINT_OT_visibility_filter (wmOperatorType *ot) |
|
strong |
| Enumerator | |
|---|---|
| Hide | |
| Show | |
Definition at line 190 of file paint_hide.cc.
|
static |
Definition at line 195 of file paint_hide.cc.
References action_to_hide(), and Hide.
Referenced by action_to_hide(), grow_shrink_visibility_bmesh(), grow_shrink_visibility_grid(), partialvis_gesture_update_grids(), partialvis_gesture_update_mesh(), partialvis_masked_update_grids(), and partialvis_masked_update_mesh().
|
static |
Definition at line 854 of file paint_hide.cc.
References affect_visibility_mesh(), blender::bke::mesh::face_corner_next(), and blender::bke::mesh::face_corner_prev().
Referenced by affect_visibility_mesh().
|
static |
Definition at line 201 of file paint_hide.cc.
References blender::Span< T >::begin(), calc_face_hide(), blender::Span< T >::end(), blender::Span< T >::index_range(), blender::Span< T >::slice(), and blender::v.
Referenced by calc_face_hide(), and flush_face_changes_node().
|
static |
Definition at line 1108 of file paint_hide.cc.
References blender::bm, blender::SculptSession::bm, BM_elem_flag_test_bool, blender::BM_ELEM_HIDDEN, blender::BM_vert_at_index(), duplicate_visibility_bmesh(), blender::result, blender::BMesh::totvert, and blender::ed::sculpt_paint::vert_random_access_ensure().
Referenced by duplicate_visibility_bmesh(), and grow_shrink_visibility_bmesh().
|
static |
Definition at line 278 of file paint_hide.cc.
References blender::bke::Edge, blender::bke::SpanAttributeWriter< T >::finish(), flush_edge_changes(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::mesh_edge_hide_from_vert(), and blender::bke::SpanAttributeWriter< T >::span.
Referenced by flush_edge_changes(), grow_shrink_visibility_mesh(), and vert_hide_update().
|
static |
Definition at line 266 of file paint_hide.cc.
References blender::bke::Face, blender::bke::SpanAttributeWriter< T >::finish(), flush_face_changes(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::bke::mesh_face_hide_from_vert(), and blender::bke::SpanAttributeWriter< T >::span.
Referenced by flush_face_changes(), and propagate_vertex_visibility().
|
static |
Definition at line 215 of file paint_hide.cc.
References calc_face_hide(), blender::bke::Face, blender::bke::SpanAttributeWriter< T >::finish(), flush_face_changes_node(), blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_bools(), blender::ed::sculpt_paint::gather_data_mesh(), blender::exec_mode::grain_size(), blender::array_utils::indexed_data_equal(), blender::index_mask::IndexMask::is_empty(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::index_mask::IndexMask::min_array_size(), blender::bke::pbvh::node_update_visibility_mesh(), blender::ed::sculpt_paint::scatter_data_mesh(), blender::Span< T >::size(), and blender::bke::SpanAttributeWriter< T >::span.
Referenced by flush_face_changes_node(), and vert_hide_update().
|
static |
Definition at line 331 of file paint_hide.cc.
References blender::IndexRange::begin(), blender::BKE_pbvh_sync_visibility_from_verts(), blender::BKE_subdiv_ccg_grid_hidden_ensure(), blender::IndexRange::end(), blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_bools(), blender::exec_mode::grain_size(), grid_hide_update(), blender::bits::BitGroupVector< InlineBufferCapacity, Allocator >::group_size(), blender::ed::sculpt_paint::undo::HideVert, blender::Span< T >::index_range(), blender::index_mask::IndexMask::is_empty(), blender::index_mask::IndexMask::min_array_size(), blender::MULTIRES_HIDDEN_MODIFIED, blender::multires_mark_as_modified(), blender::bke::pbvh::node_update_visibility_grids(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_node(), and blender::Span< T >::size().
Referenced by grid_hide_update(), partialvis_all_update_grids(), partialvis_gesture_update_grids(), and partialvis_masked_update_grids().
| void blender::ed::sculpt_paint::hide::grids_show_all | ( | Depsgraph & | depsgraph, |
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 151 of file paint_hide.cc.
References blender::Span< T >::begin(), blender::BKE_pbvh_sync_visibility_from_verts(), blender::BKE_subdiv_ccg_grid_hidden_free(), blender::Span< T >::end(), blender::IndexMask::from_predicate(), blender::exec_mode::grain_size(), grids_show_all(), blender::ed::sculpt_paint::undo::HideVert, blender::bits::BitGroupVector< InlineBufferCapacity, Allocator >::is_empty(), blender::index_mask::IndexMask::is_empty(), blender::MULTIRES_HIDDEN_MODIFIED, blender::multires_mark_as_modified(), blender::bke::object::pbvh_get(), and blender::ed::sculpt_paint::undo::push_nodes().
Referenced by grids_show_all(), partialvis_all_update_grids(), and blender::ed::sculpt_paint::face_set::show_all().
|
static |
Definition at line 1120 of file paint_hide.cc.
References action_to_hide(), BM_elem_index_get, duplicate_visibility_bmesh(), grow_shrink_visibility_bmesh(), partialvis_update_bmesh_nodes(), UNUSED_VARS, and blender::ed::sculpt_paint::vert_neighbors_get_bmesh().
Referenced by grow_shrink_visibility_bmesh(), and visibility_filter_exec().
|
static |
Definition at line 1033 of file paint_hide.cc.
References action_to_hide(), blender::ed::sculpt_paint::hide::DualBitBuffer::back, blender::BKE_pbvh_sync_visibility_from_verts(), blender::BKE_subdiv_ccg_grid_hidden_ensure(), blender::BKE_subdiv_ccg_key_top_level(), blender::BKE_subdiv_ccg_neighbor_coords_get(), blender::CCG_grid_xy_to_index(), blender::SubdivCCGNeighbors::coords, blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_bools(), blender::ed::sculpt_paint::hide::DualBitBuffer::front, blender::exec_mode::grain_size(), blender::SubdivCCGCoord::grid_index, blender::CCGKey::grid_size, grow_shrink_visibility_grid(), blender::ed::sculpt_paint::undo::HideVert, blender::MULTIRES_HIDDEN_MODIFIED, blender::multires_mark_as_modified(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_nodes(), blender::ed::sculpt_paint::hide::DualBitBuffer::read_buffer(), blender::SculptSession::subdiv_ccg, blender::ed::sculpt_paint::hide::DualBitBuffer::write_buffer(), blender::SubdivCCGCoord::x, blender::x, blender::SubdivCCGCoord::y, and y.
Referenced by grow_shrink_visibility_grid(), and visibility_filter_exec().
|
static |
Definition at line 977 of file paint_hide.cc.
References blender::ed::sculpt_paint::hide::DualBuffer::back, blender::bke::AttributeAccessor::contains(), blender::array_utils::copy(), blender::data, blender::bke::Face, blender::bke::SpanAttributeWriter< T >::finish(), flush_edge_changes(), grow_shrink_visibility_mesh(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::bke::AttributeAccessor::lookup_or_default(), blender::bke::object::pbvh_get(), blender::bke::Point, propagate_vertex_visibility(), blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::bke::SpanAttributeWriter< T >::span, update_node_visibility_from_face_changes(), and update_undo_state().
Referenced by grow_shrink_visibility_mesh(), and visibility_filter_exec().
|
static |
Definition at line 521 of file paint_hide.cc.
References blender::bke::pbvh::all_leaf_nodes(), blender::bke::pbvh::BMesh, C, blender::CTX_data_active_object(), blender::CTX_data_ensure_evaluated_depsgraph(), blender::CTX_data_scene(), blender::bke::pbvh::Grids, Hide, hide_show_all_exec(), blender::ed::sculpt_paint::islands::invalidate(), blender::bke::pbvh::Mesh, blender::OPERATOR_FINISHED, partialvis_all_update_bmesh(), partialvis_all_update_grids(), partialvis_all_update_mesh(), blender::bke::object::pbvh_ensure(), blender::wmOperator::ptr, blender::ed::sculpt_paint::undo::push_begin_ex(), blender::ed::sculpt_paint::undo::push_end(), blender::RNA_enum_get(), blender::Object::runtime, blender::bke::ObjectRuntime::sculpt_session, Show, and tag_update_visibility().
Referenced by hide_show_all_exec(), and PAINT_OT_hide_show_all().
|
static |
Definition at line 1350 of file paint_hide.cc.
References blender::bke::pbvh::BMesh, C, blender::CTX_data_depsgraph_pointer(), blender::bke::pbvh::Grids, hide_show_apply_for_symmetry_pass(), blender::bke::pbvh::Mesh, blender::ViewContext::obact, partialvis_gesture_update_bmesh(), partialvis_gesture_update_grids(), partialvis_gesture_update_mesh(), blender::bke::object::pbvh_get(), and blender::ed::sculpt_paint::gesture::GestureData::vc.
Referenced by hide_show_apply_for_symmetry_pass(), and hide_show_init_properties().
|
static |
Definition at line 1340 of file paint_hide.cc.
References C, blender::CTX_data_active_object(), blender::CTX_data_ensure_evaluated_depsgraph(), blender::CTX_data_scene(), hide_show_begin(), blender::bke::object::pbvh_ensure(), and blender::ed::sculpt_paint::undo::push_begin().
Referenced by hide_show_begin(), and hide_show_init_properties().
|
static |
Definition at line 1366 of file paint_hide.cc.
References C, hide_show_end(), blender::ed::sculpt_paint::islands::invalidate(), blender::ViewContext::obact, blender::ed::sculpt_paint::undo::push_end(), blender::Object::runtime, blender::bke::ObjectRuntime::sculpt_session, tag_update_visibility(), and blender::ed::sculpt_paint::gesture::GestureData::vc.
Referenced by hide_show_end(), and hide_show_init_properties().
|
static |
Definition at line 1390 of file paint_hide.cc.
References blender::ed::sculpt_paint::gesture::apply(), C, hide_show_gesture_box_exec(), hide_show_init_properties(), blender::ed::sculpt_paint::gesture::init_from_box(), blender::OPERATOR_CANCELLED, and blender::OPERATOR_FINISHED.
Referenced by hide_show_gesture_box_exec(), and PAINT_OT_hide_show().
|
static |
Definition at line 1401 of file paint_hide.cc.
References blender::ed::sculpt_paint::gesture::apply(), C, hide_show_gesture_lasso_exec(), hide_show_init_properties(), blender::ed::sculpt_paint::gesture::init_from_lasso(), blender::OPERATOR_CANCELLED, and blender::OPERATOR_FINISHED.
Referenced by hide_show_gesture_lasso_exec(), and PAINT_OT_hide_show_lasso_gesture().
|
static |
Definition at line 1412 of file paint_hide.cc.
References blender::ed::sculpt_paint::gesture::apply(), C, hide_show_gesture_line_exec(), hide_show_init_properties(), blender::ed::sculpt_paint::gesture::init_from_line(), blender::OPERATOR_CANCELLED, and blender::OPERATOR_FINISHED.
Referenced by hide_show_gesture_line_exec(), and PAINT_OT_hide_show_line_gesture().
|
static |
Definition at line 1423 of file paint_hide.cc.
References blender::ed::sculpt_paint::gesture::apply(), C, hide_show_gesture_polyline_exec(), hide_show_init_properties(), blender::ed::sculpt_paint::gesture::init_from_polyline(), blender::OPERATOR_CANCELLED, and blender::OPERATOR_FINISHED.
Referenced by hide_show_gesture_polyline_exec(), and PAINT_OT_hide_show_polyline_gesture().
|
static |
Definition at line 1373 of file paint_hide.cc.
References blender::ed::sculpt_paint::hide::HideShowOperation::action, blender::ed::sculpt_paint::gesture::Operation::apply_for_symmetry_pass, blender::ed::sculpt_paint::gesture::Operation::begin, blender::ed::sculpt_paint::gesture::Operation::end, hide_show_apply_for_symmetry_pass(), hide_show_begin(), hide_show_end(), hide_show_init_properties(), blender::MEM_new_zeroed(), blender::ed::sculpt_paint::hide::HideShowOperation::op, blender::ed::sculpt_paint::gesture::GestureData::operation, blender::wmOperator::ptr, blender::RNA_enum_get(), and blender::ed::sculpt_paint::gesture::GestureData::selection_type.
Referenced by hide_show_gesture_box_exec(), hide_show_gesture_lasso_exec(), hide_show_gesture_line_exec(), hide_show_gesture_polyline_exec(), and hide_show_init_properties().
|
static |
Definition at line 638 of file paint_hide.cc.
References blender::bke::pbvh::all_leaf_nodes(), blender::bke::pbvh::BMesh, C, blender::CTX_data_active_object(), blender::CTX_data_ensure_evaluated_depsgraph(), blender::CTX_data_scene(), blender::bke::pbvh::Grids, Hide, hide_show_masked_exec(), blender::ed::sculpt_paint::islands::invalidate(), blender::bke::pbvh::Mesh, blender::OPERATOR_FINISHED, partialvis_masked_update_bmesh(), partialvis_masked_update_grids(), partialvis_masked_update_mesh(), blender::bke::object::pbvh_ensure(), blender::wmOperator::ptr, blender::ed::sculpt_paint::undo::push_begin_ex(), blender::ed::sculpt_paint::undo::push_end(), blender::RNA_enum_get(), blender::Object::runtime, blender::bke::ObjectRuntime::sculpt_session, Show, and tag_update_visibility().
Referenced by hide_show_masked_exec(), and PAINT_OT_hide_show_masked().
|
static |
Definition at line 1434 of file paint_hide.cc.
References hide_show_operator_gesture_properties(), blender::RNA_def_enum(), and blender::wmOperatorType::srna.
Referenced by hide_show_operator_gesture_properties(), PAINT_OT_hide_show(), PAINT_OT_hide_show_lasso_gesture(), PAINT_OT_hide_show_line_gesture(), and PAINT_OT_hide_show_polyline_gesture().
|
static |
Definition at line 682 of file paint_hide.cc.
References Hide, hide_show_operator_properties(), blender::RNA_def_enum(), Show, and blender::wmOperatorType::srna.
Referenced by hide_show_operator_properties(), PAINT_OT_hide_show(), PAINT_OT_hide_show_all(), PAINT_OT_hide_show_lasso_gesture(), PAINT_OT_hide_show_line_gesture(), PAINT_OT_hide_show_masked(), and PAINT_OT_hide_show_polyline_gesture().
|
static |
Definition at line 781 of file paint_hide.cc.
References blender::BKE_pbvh_bmesh_node_faces(), blender::BKE_pbvh_bmesh_node_unique_verts(), blender::BKE_pbvh_node_fully_hidden_set(), BM_elem_flag_test_bool, BM_elem_flag_toggle, blender::BM_ELEM_HIDDEN, blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::ed::sculpt_paint::undo::HideVert, invert_visibility_bmesh(), partialvis_update_bmesh_faces(), blender::bke::object::pbvh_get(), and blender::ed::sculpt_paint::undo::push_nodes().
Referenced by invert_visibility_bmesh(), and visibility_invert_exec().
|
static |
Definition at line 756 of file paint_hide.cc.
References blender::BKE_pbvh_sync_visibility_from_verts(), blender::BKE_subdiv_ccg_grid_hidden_ensure(), blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::ed::sculpt_paint::undo::HideVert, blender::bits::invert(), invert_visibility_grids(), blender::MULTIRES_HIDDEN_MODIFIED, blender::multires_mark_as_modified(), blender::bke::pbvh::node_update_visibility_grids(), blender::bke::object::pbvh_get(), and blender::ed::sculpt_paint::undo::push_nodes().
Referenced by invert_visibility_grids(), and visibility_invert_exec().
|
static |
Definition at line 728 of file paint_hide.cc.
References blender::data, blender::bke::Face, blender::bke::SpanAttributeWriter< T >::finish(), blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::ed::sculpt_paint::undo::HideFace, invert_visibility_mesh(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::bke::mesh_hide_face_flush(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_nodes(), and blender::bke::SpanAttributeWriter< T >::span.
Referenced by invert_visibility_mesh(), and visibility_invert_exec().
| void blender::ed::sculpt_paint::hide::mesh_show_all | ( | const Depsgraph & | depsgraph, |
| Object & | object, | ||
| const IndexMask & | node_mask ) |
Definition at line 123 of file paint_hide.cc.
References blender::Span< T >::begin(), blender::data, blender::Span< T >::end(), blender::IndexMask::from_predicate(), blender::exec_mode::grain_size(), blender::ed::sculpt_paint::undo::HideVert, blender::blender::Span< T >::is_empty(), blender::bke::AttributeAccessor::lookup(), blender::bke::mesh_hide_vert_flush(), mesh_show_all(), blender::bke::object::pbvh_get(), blender::bke::Point, blender::ed::sculpt_paint::undo::push_nodes(), and blender::bke::MutableAttributeAccessor::remove().
Referenced by mesh_show_all(), partialvis_all_update_mesh(), partialvis_masked_update_mesh(), and blender::ed::sculpt_paint::face_set::show_all().
| Span< int > blender::ed::sculpt_paint::hide::node_visible_all_verts | ( | const bke::pbvh::MeshNode & | node, |
| const Span< bool > | hide_vert, | ||
| Vector< int > & | indices, | ||
| int & | visible_unique_verts_num ) |
Definition at line 59 of file sculpt_hide.cc.
References blender::BKE_pbvh_node_fully_hidden_get(), blender::Span< T >::index_range(), blender::Span< T >::is_empty(), node, node_visible_all_verts(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), and blender::Span< T >::size().
Referenced by node_visible_all_verts(), and blender::ed::sculpt_paint::mask::update_mask_mesh().
| Span< int > blender::ed::sculpt_paint::hide::node_visible_shared_verts | ( | const bke::pbvh::MeshNode & | node, |
| const Span< bool > | hide_vert, | ||
| Vector< int > & | indices ) |
Definition at line 39 of file sculpt_hide.cc.
References blender::Span< T >::begin(), blender::Vector< T, InlineBufferCapacity, Allocator >::begin(), blender::BKE_pbvh_node_fully_hidden_get(), blender::Span< T >::end(), blender::Span< T >::is_empty(), node, node_visible_shared_verts(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), and blender::Span< T >::size().
Referenced by node_visible_shared_verts(), and blender::ed::sculpt_paint::mask::update_mask_mesh().
| Span< int > blender::ed::sculpt_paint::hide::node_visible_verts | ( | const bke::pbvh::MeshNode & | node, |
| const Span< bool > | hide_vert, | ||
| Vector< int, bke::pbvh::MESH_LEAF_LIMIT > & | indices ) |
Definition at line 20 of file sculpt_hide.cc.
References blender::Span< T >::begin(), blender::Vector< T, InlineBufferCapacity, Allocator >::begin(), blender::BKE_pbvh_node_fully_hidden_get(), blender::Span< T >::end(), blender::Span< T >::is_empty(), node, node_visible_verts(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), and blender::Span< T >::size().
Referenced by blender::ed::sculpt_paint::smooth::blur_geometry_data_array(), blender::ed::sculpt_paint::mask::decrease_contrast_mask_mesh(), blender::ed::sculpt_paint::cloth::ensure_nodes_constraints(), blender::ed::sculpt_paint::mask::fill_mask_mesh(), blender::ed::sculpt_paint::pose::grow_factors_mesh(), blender::ed::sculpt_paint::mask::increase_contrast_mask_mesh(), node_visible_verts(), and blender::ed::sculpt_paint::mask::write_mask_mesh().
| void blender::ed::sculpt_paint::hide::PAINT_OT_hide_show | ( | wmOperatorType * | ot | ) |
Definition at line 1458 of file paint_hide.cc.
References blender::ed::sculpt_paint::gesture::Box, blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, hide_show_gesture_box_exec(), hide_show_operator_gesture_properties(), hide_show_operator_properties(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::wmOperatorType::modal, blender::wmOperatorType::name, blender::ed::sculpt_paint::gesture::operator_properties(), blender::OPTYPE_REGISTER, PAINT_OT_hide_show(), blender::wmOperatorType::poll, blender::ed::sculpt_paint::sculpt_mode_poll_view3d(), blender::WM_gesture_box_invoke(), blender::WM_gesture_box_modal(), and blender::WM_operator_properties_border().
Referenced by blender::ED_operatortypes_paint(), and PAINT_OT_hide_show().
| void blender::ed::sculpt_paint::hide::PAINT_OT_hide_show_all | ( | wmOperatorType * | ot | ) |
Definition at line 713 of file paint_hide.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, hide_show_all_exec(), hide_show_operator_properties(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, PAINT_OT_hide_show_all(), blender::wmOperatorType::poll, and blender::ed::sculpt_paint::sculpt_mode_poll_view3d().
Referenced by blender::ED_operatortypes_paint(), and PAINT_OT_hide_show_all().
| void blender::ed::sculpt_paint::hide::PAINT_OT_hide_show_lasso_gesture | ( | wmOperatorType * | ot | ) |
Definition at line 1478 of file paint_hide.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, hide_show_gesture_lasso_exec(), hide_show_operator_gesture_properties(), hide_show_operator_properties(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::ed::sculpt_paint::gesture::Lasso, blender::wmOperatorType::modal, blender::wmOperatorType::name, blender::ed::sculpt_paint::gesture::operator_properties(), blender::OPTYPE_DEPENDS_ON_CURSOR, blender::OPTYPE_REGISTER, PAINT_OT_hide_show_lasso_gesture(), blender::wmOperatorType::poll, blender::ed::sculpt_paint::sculpt_mode_poll_view3d(), blender::WM_gesture_lasso_invoke(), blender::WM_gesture_lasso_modal(), and blender::WM_operator_properties_gesture_lasso().
Referenced by blender::ED_operatortypes_paint(), and PAINT_OT_hide_show_lasso_gesture().
| void blender::ed::sculpt_paint::hide::PAINT_OT_hide_show_line_gesture | ( | wmOperatorType * | ot | ) |
Definition at line 1498 of file paint_hide.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, hide_show_gesture_line_exec(), hide_show_operator_gesture_properties(), hide_show_operator_properties(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::ed::sculpt_paint::gesture::Line, blender::wmOperatorType::modal, blender::wmOperatorType::name, blender::ed::sculpt_paint::gesture::operator_properties(), blender::OPTYPE_REGISTER, PAINT_OT_hide_show_line_gesture(), blender::wmOperatorType::poll, blender::ed::sculpt_paint::sculpt_mode_poll_view3d(), blender::WM_CURSOR_EDIT, blender::WM_gesture_straightline_active_side_invoke(), blender::WM_gesture_straightline_oneshot_modal(), and blender::WM_operator_properties_gesture_straightline().
Referenced by blender::ED_operatortypes_paint(), and PAINT_OT_hide_show_line_gesture().
| void blender::ed::sculpt_paint::hide::PAINT_OT_hide_show_masked | ( | wmOperatorType * | ot | ) |
Definition at line 698 of file paint_hide.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, hide_show_masked_exec(), hide_show_operator_properties(), blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, PAINT_OT_hide_show_masked(), blender::wmOperatorType::poll, and blender::ed::sculpt_paint::sculpt_mode_poll_view3d().
Referenced by blender::ED_operatortypes_paint(), and PAINT_OT_hide_show_masked().
| void blender::ed::sculpt_paint::hide::PAINT_OT_hide_show_polyline_gesture | ( | wmOperatorType * | ot | ) |
Definition at line 1518 of file paint_hide.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, hide_show_gesture_polyline_exec(), hide_show_operator_gesture_properties(), hide_show_operator_properties(), blender::wmOperatorType::idname, blender::wmOperatorType::invoke, blender::ed::sculpt_paint::gesture::Lasso, blender::wmOperatorType::modal, blender::wmOperatorType::name, blender::ed::sculpt_paint::gesture::operator_properties(), blender::OPTYPE_DEPENDS_ON_CURSOR, blender::OPTYPE_REGISTER, PAINT_OT_hide_show_polyline_gesture(), blender::wmOperatorType::poll, blender::ed::sculpt_paint::sculpt_mode_poll_view3d(), blender::WM_gesture_polyline_invoke(), blender::WM_gesture_polyline_modal(), and blender::WM_operator_properties_gesture_polyline().
Referenced by blender::ED_operatortypes_paint(), and PAINT_OT_hide_show_polyline_gesture().
| void blender::ed::sculpt_paint::hide::PAINT_OT_visibility_filter | ( | wmOperatorType * | ot | ) |
Definition at line 1184 of file paint_hide.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, Hide, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, PAINT_OT_visibility_filter(), blender::wmOperatorType::poll, blender::RNA_def_boolean(), blender::RNA_def_enum(), blender::RNA_def_int(), blender::ed::sculpt_paint::sculpt_mode_poll_view3d(), Show, blender::wmOperatorType::srna, and visibility_filter_exec().
Referenced by blender::ED_operatortypes_paint(), and PAINT_OT_visibility_filter().
| void blender::ed::sculpt_paint::hide::PAINT_OT_visibility_invert | ( | wmOperatorType * | ot | ) |
Definition at line 836 of file paint_hide.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, PAINT_OT_visibility_invert(), blender::wmOperatorType::poll, blender::ed::sculpt_paint::sculpt_mode_poll_view3d(), and visibility_invert_exec().
Referenced by blender::ED_operatortypes_paint(), and PAINT_OT_visibility_invert().
|
static |
Definition at line 512 of file paint_hide.cc.
References partialvis_all_update_bmesh(), and partialvis_update_bmesh_nodes().
Referenced by hide_show_all_exec(), and partialvis_all_update_bmesh().
|
static |
Definition at line 494 of file paint_hide.cc.
References grid_hide_update(), grids_show_all(), Hide, partialvis_all_update_grids(), and Show.
Referenced by hide_show_all_exec(), and partialvis_all_update_grids().
|
static |
Definition at line 469 of file paint_hide.cc.
References blender::bke::AttributeAccessor::contains(), blender::data, Hide, mesh_show_all(), partialvis_all_update_mesh(), Show, and vert_hide_update().
Referenced by hide_show_all_exec(), and partialvis_all_update_mesh().
|
static |
Definition at line 1313 of file paint_hide.cc.
References blender::ed::sculpt_paint::hide::HideShowOperation::action, blender::BMVert::co, blender::ViewContext::depsgraph, blender::ED_view3d_clipping_local(), blender::ED_view3d_clipping_test(), blender::ed::sculpt_paint::gesture::is_affected(), blender::BMVert::no, blender::ed::sculpt_paint::gesture::GestureData::node_mask, blender::ViewContext::obact, blender::ed::sculpt_paint::gesture::GestureData::operation, partialvis_gesture_update_bmesh(), partialvis_update_bmesh_nodes(), blender::ViewContext::rv3d, RV3D_CLIPPING_ENABLED, blender::v, blender::ViewContext::v3d, and blender::ed::sculpt_paint::gesture::GestureData::vc.
Referenced by hide_show_apply_for_symmetry_pass(), and partialvis_gesture_update_bmesh().
|
static |
Definition at line 1278 of file paint_hide.cc.
References blender::ed::sculpt_paint::hide::HideShowOperation::action, action_to_hide(), blender::BKE_subdiv_ccg_key_top_level(), blender::ED_view3d_clipping_local(), blender::ED_view3d_clipping_test(), grid_hide_update(), blender::bke::ccg::grid_range(), blender::Span< T >::index_range(), blender::ed::sculpt_paint::gesture::is_affected(), blender::ed::sculpt_paint::gesture::GestureData::node_mask, blender::SubdivCCG::normals, blender::ViewContext::obact, blender::ed::sculpt_paint::gesture::GestureData::operation, partialvis_gesture_update_grids(), blender::SubdivCCG::positions, blender::ViewContext::rv3d, RV3D_CLIPPING_ENABLED, blender::Span< T >::slice(), blender::ViewContext::v3d, and blender::ed::sculpt_paint::gesture::GestureData::vc.
Referenced by hide_show_apply_for_symmetry_pass(), and partialvis_gesture_update_grids().
|
static |
Definition at line 1241 of file paint_hide.cc.
References blender::ed::sculpt_paint::hide::HideShowOperation::action, action_to_hide(), blender::bke::AttributeAccessor::contains(), blender::ViewContext::depsgraph, blender::ED_view3d_clipping_local(), blender::ED_view3d_clipping_test(), blender::Span< T >::index_range(), blender::ed::sculpt_paint::gesture::is_affected(), blender::ed::sculpt_paint::gesture::GestureData::node_mask, blender::ViewContext::obact, blender::ed::sculpt_paint::gesture::GestureData::operation, partialvis_gesture_update_mesh(), blender::ViewContext::rv3d, RV3D_CLIPPING_ENABLED, Show, blender::ViewContext::v3d, blender::ed::sculpt_paint::gesture::GestureData::vc, vert_hide_update(), blender::bke::pbvh::vert_normals_eval(), and blender::bke::pbvh::vert_positions_eval().
Referenced by hide_show_apply_for_symmetry_pass(), and partialvis_gesture_update_mesh().
|
static |
Definition at line 623 of file paint_hide.cc.
References blender::bm, blender::SculptSession::bm, BM_ELEM_CD_GET_FLOAT, blender::CD_PROP_FLOAT, blender::CustomData_get_offset_named(), partialvis_masked_update_bmesh(), partialvis_update_bmesh_nodes(), blender::Object::runtime, blender::bke::ObjectRuntime::sculpt_session, blender::v, and blender::BMesh::vdata.
Referenced by hide_show_masked_exec(), and partialvis_masked_update_bmesh().
|
static |
Definition at line 594 of file paint_hide.cc.
References action_to_hide(), blender::BKE_subdiv_ccg_key_top_level(), grid_hide_update(), blender::bke::ccg::grid_range(), blender::Span< T >::index_range(), blender::Span< T >::is_empty(), blender::SubdivCCG::masks, partialvis_masked_update_grids(), and blender::Span< T >::slice().
Referenced by hide_show_masked_exec(), and partialvis_masked_update_grids().
|
static |
Definition at line 565 of file paint_hide.cc.
References action_to_hide(), blender::bke::AttributeAccessor::contains(), blender::data, blender::Span< T >::index_range(), blender::bke::AttributeAccessor::lookup(), mesh_show_all(), partialvis_masked_update_mesh(), blender::bke::Point, Show, and vert_hide_update().
Referenced by hide_show_masked_exec(), and partialvis_masked_update_mesh().
|
static |
Definition at line 411 of file paint_hide.cc.
References blender::BKE_paint_is_bmesh_face_hidden(), BM_elem_flag_disable, BM_elem_flag_enable, blender::BM_ELEM_HIDDEN, and partialvis_update_bmesh_faces().
Referenced by invert_visibility_bmesh(), partialvis_update_bmesh_faces(), and partialvis_update_bmesh_nodes().
|
static |
Definition at line 423 of file paint_hide.cc.
References blender::BKE_pbvh_bmesh_node_faces(), blender::BKE_pbvh_bmesh_node_other_verts(), blender::BKE_pbvh_bmesh_node_unique_verts(), blender::BKE_pbvh_node_fully_hidden_set(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::undo::HideVert, partialvis_update_bmesh_faces(), partialvis_update_bmesh_nodes(), partialvis_update_bmesh_verts(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_node(), and blender::v.
Referenced by grow_shrink_visibility_bmesh(), partialvis_all_update_bmesh(), partialvis_gesture_update_bmesh(), partialvis_masked_update_bmesh(), and partialvis_update_bmesh_nodes().
|
static |
Definition at line 388 of file paint_hide.cc.
References BM_elem_flag_disable, BM_elem_flag_enable, BM_elem_flag_test, blender::BM_ELEM_HIDDEN, Hide, partialvis_update_bmesh_verts(), and blender::v.
Referenced by partialvis_update_bmesh_nodes(), and partialvis_update_bmesh_verts().
|
static |
Definition at line 890 of file paint_hide.cc.
References flush_face_changes(), blender::offset_indices::OffsetIndices< T >::index_range(), blender::IndexRange::IndexRange(), blender::threading::parallel_for(), propagate_vertex_visibility(), blender::ed::sculpt_paint::hide::DualBuffer::read_buffer(), and blender::ed::sculpt_paint::hide::DualBuffer::write_buffer().
Referenced by grow_shrink_visibility_mesh(), and propagate_vertex_visibility().
| void blender::ed::sculpt_paint::hide::sync_all_from_faces | ( | Object & | object | ) |
Definition at line 56 of file paint_hide.cc.
References blender::BKE_sculpt_sync_face_visibility_to_grids(), blender::bm, blender::SculptSession::bm, BM_elem_flag_disable, BM_elem_flag_enable, BM_elem_flag_test, blender::BM_ELEM_HIDDEN, blender::BM_FACES_OF_MESH, BM_ITER_MESH, blender::bke::pbvh::BMesh, blender::data, blender::BMLoop::e, blender::bke::pbvh::Grids, blender::ed::sculpt_paint::islands::invalidate(), blender::l, blender::BMFace::l_first, blender::bke::pbvh::Mesh, blender::bke::mesh_hide_face_flush(), blender::BMLoop::next, blender::bke::object::pbvh_get(), blender::SculptSession::subdiv_ccg, sync_all_from_faces(), and blender::BMLoop::v.
Referenced by blender::ed::sculpt_paint::face_set::face_hide_update(), blender::ed::sculpt_paint::undo::restore_list(), and sync_all_from_faces().
| void blender::ed::sculpt_paint::hide::tag_update_visibility | ( | const bContext & | C | ) |
Definition at line 108 of file paint_hide.cc.
References blender::BKE_sculptsession_use_pbvh_draw(), C, blender::CTX_data_active_object(), blender::CTX_wm_region(), blender::CTX_wm_region_view3d(), blender::DEG_id_tag_update(), blender::ED_region_tag_redraw(), blender::Object::id, blender::ID_RECALC_GEOMETRY, blender::ID_RECALC_SHADING, NC_OBJECT, ND_DRAW, tag_update_visibility(), and blender::WM_event_add_notifier().
Referenced by blender::ed::sculpt_paint::face_set::change_visibility_exec(), hide_show_all_exec(), hide_show_end(), hide_show_masked_exec(), tag_update_visibility(), visibility_filter_exec(), and visibility_invert_exec().
|
static |
Definition at line 942 of file paint_hide.cc.
References blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_bools(), blender::exec_mode::grain_size(), blender::index_mask::IndexMask::min_array_size(), blender::bke::pbvh::node_update_visibility_mesh(), and update_node_visibility_from_face_changes().
Referenced by grow_shrink_visibility_mesh(), and update_node_visibility_from_face_changes().
|
static |
Definition at line 921 of file paint_hide.cc.
References blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::ed::sculpt_paint::undo::HideVert, blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_node(), and update_undo_state().
Referenced by grow_shrink_visibility_mesh(), and update_undo_state().
| bool blender::ed::sculpt_paint::hide::vert_all_faces_visible_get | ( | BMVert * | vert | ) |
Definition at line 112 of file sculpt_hide.cc.
References BM_DISK_EDGE_NEXT, BM_elem_flag_test, blender::BM_ELEM_HIDDEN, blender::BMLoop::f, blender::BMEdge::l, blender::BMLoop::radial_next, and vert_all_faces_visible_get().
| bool blender::ed::sculpt_paint::hide::vert_all_faces_visible_get | ( | const Span< bool > | hide_poly, |
| const GroupedSpan< int > | vert_to_face_map, | ||
| const int | vert ) |
Definition at line 88 of file sculpt_hide.cc.
References blender::Span< T >::is_empty(), and vert_all_faces_visible_get().
Referenced by vert_all_faces_visible_get(), vert_all_faces_visible_get(), vert_all_faces_visible_get(), and blender::ed::sculpt_paint::boundary::vert_is_boundary().
| bool blender::ed::sculpt_paint::hide::vert_all_faces_visible_get | ( | const Span< bool > | hide_poly, |
| const SubdivCCG & | subdiv_ccg, | ||
| const SubdivCCGCoord | vert ) |
Definition at line 104 of file sculpt_hide.cc.
References blender::BKE_subdiv_ccg_grid_to_face_index(), and vert_all_faces_visible_get().
|
static |
Definition at line 288 of file paint_hide.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::data, blender::bke::SpanAttributeWriter< T >::finish(), flush_edge_changes(), flush_face_changes_node(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::gather_data_mesh(), blender::exec_mode::grain_size(), blender::ed::sculpt_paint::undo::HideVert, blender::array_utils::indexed_data_equal(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::bke::object::pbvh_get(), blender::bke::Point, blender::ed::sculpt_paint::undo::push_node(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::ed::sculpt_paint::scatter_data_mesh(), blender::Span< T >::size(), blender::bke::SpanAttributeWriter< T >::span, and vert_hide_update().
Referenced by partialvis_all_update_mesh(), partialvis_gesture_update_mesh(), partialvis_masked_update_mesh(), and vert_hide_update().
|
static |
Definition at line 1141 of file paint_hide.cc.
References blender::bke::pbvh::all_leaf_nodes(), blender::bke::pbvh::BMesh, C, blender::CTX_data_active_object(), blender::CTX_data_ensure_evaluated_depsgraph(), blender::CTX_data_scene(), blender::bke::pbvh::Grids, grow_shrink_visibility_bmesh(), grow_shrink_visibility_grid(), grow_shrink_visibility_mesh(), blender::ed::sculpt_paint::islands::invalidate(), blender::bke::pbvh::Mesh, blender::OPERATOR_FINISHED, blender::bke::object::pbvh_ensure(), blender::wmOperator::ptr, blender::ed::sculpt_paint::undo::push_begin(), blender::ed::sculpt_paint::undo::push_end(), blender::RNA_boolean_get(), blender::RNA_enum_get(), blender::RNA_int_get(), tag_update_visibility(), blender::ed::sculpt_paint::vertex_count_get(), VERTEX_ITERATION_THRESHOLD, and visibility_filter_exec().
Referenced by PAINT_OT_visibility_filter(), and visibility_filter_exec().
|
static |
Definition at line 805 of file paint_hide.cc.
References blender::bke::pbvh::all_leaf_nodes(), blender::bke::pbvh::BMesh, C, blender::CTX_data_active_object(), blender::CTX_data_ensure_evaluated_depsgraph(), blender::CTX_data_scene(), blender::bke::pbvh::Grids, blender::ed::sculpt_paint::islands::invalidate(), invert_visibility_bmesh(), invert_visibility_grids(), invert_visibility_mesh(), blender::bke::pbvh::Mesh, blender::OPERATOR_FINISHED, blender::bke::object::pbvh_ensure(), blender::ed::sculpt_paint::undo::push_begin(), blender::ed::sculpt_paint::undo::push_end(), tag_update_visibility(), and visibility_invert_exec().
Referenced by PAINT_OT_visibility_invert(), and visibility_invert_exec().
|
staticconstexpr |
Definition at line 849 of file paint_hide.cc.
Referenced by visibility_filter_exec().