|
Blender V4.5
|
Classes | |
| struct | FaceSetOperation |
Functions | |
| int | active_face_set_get (const Object &object) |
| int | vert_face_set_get (const GroupedSpan< int > vert_to_face_map, const Span< int > face_sets, const int vert) |
| int | vert_face_set_get (const SubdivCCG &subdiv_ccg, const Span< int > face_sets, const int grid) |
| int | vert_face_set_get (const int, const BMVert &) |
| bool | vert_has_face_set (const GroupedSpan< int > vert_to_face_map, const Span< int > face_sets, const int vert, const int face_set) |
| bool | vert_has_face_set (const SubdivCCG &subdiv_ccg, const Span< int > face_sets, const int grid, const int face_set) |
| bool | vert_has_face_set (const int face_set_offset, const BMVert &vert, const int face_set) |
| bool | vert_has_unique_face_set (const GroupedSpan< int > vert_to_face_map, const Span< int > face_sets, int vert) |
| static bool | sculpt_check_unique_face_set_for_edge_in_base_mesh (const GroupedSpan< int > vert_to_face_map, const Span< int > face_sets, const Span< int > corner_verts, const OffsetIndices< int > faces, int v1, int v2) |
| bool | vert_has_unique_face_set (const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const Span< int > face_sets, const SubdivCCG &subdiv_ccg, SubdivCCGCoord coord) |
| bool | vert_has_unique_face_set (const int, const BMVert &) |
Public API | |
| int | find_next_available_id (Object &object) |
| void | initialize_none_to_id (Mesh *mesh, int new_id) |
| int | active_update_and_get (bContext *C, Object &ob, const float mval_fl[2]) |
| bool | create_face_sets_mesh (Object &object) |
| bke::SpanAttributeWriter< int > | ensure_face_sets_mesh (Mesh &mesh) |
| int | ensure_face_sets_bmesh (Object &object) |
| Array< int > | duplicate_face_sets (const Mesh &mesh) |
| void | filter_verts_with_unique_face_sets_mesh (const GroupedSpan< int > vert_to_face_map, const Span< int > face_sets, const bool unique, const Span< int > verts, const MutableSpan< float > factors) |
| void | filter_verts_with_unique_face_sets_grids (const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const Span< int > face_sets, const SubdivCCG &subdiv_ccg, const bool unique, const Span< int > grids, const MutableSpan< float > factors) |
| void | filter_verts_with_unique_face_sets_bmesh (int face_set_offset, const bool unique, const Set< BMVert *, 0 > &verts, const MutableSpan< float > factors) |
Gesture Operators | |
Operators that modify face sets based on a selected area. | |
| static void | gesture_begin (bContext &C, wmOperator &op, gesture::GestureData &gesture_data) |
| static void | gesture_apply_mesh (gesture::GestureData &gesture_data, const IndexMask &node_mask) |
| static void | gesture_apply_bmesh (gesture::GestureData &gesture_data, const IndexMask &node_mask) |
| static void | gesture_apply_for_symmetry_pass (bContext &, gesture::GestureData &gesture_data) |
| static void | gesture_end (bContext &, gesture::GestureData &gesture_data) |
| static void | init_operation (gesture::GestureData &gesture_data, wmOperator &) |
| static wmOperatorStatus | gesture_box_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static wmOperatorStatus | gesture_box_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | gesture_lasso_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static wmOperatorStatus | gesture_lasso_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | gesture_line_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static wmOperatorStatus | gesture_line_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | gesture_polyline_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static wmOperatorStatus | gesture_polyline_exec (bContext *C, wmOperator *op) |
| void | SCULPT_OT_face_set_polyline_gesture (wmOperatorType *ot) |
| void | SCULPT_OT_face_set_box_gesture (wmOperatorType *ot) |
| void | SCULPT_OT_face_set_lasso_gesture (wmOperatorType *ot) |
| void | SCULPT_OT_face_set_line_gesture (wmOperatorType *ot) |
Global Mesh Operators | |
Operators that work on the mesh as a whole. | |
| enum class | CreateMode { Masked = 0 , Visible = 1 , All = 2 , Selection = 3 } |
| enum class | InitMode { LooseParts = 0 , Materials = 1 , Normals = 2 , UVSeams = 3 , Creases = 4 , SharpEdges = 5 , BevelWeight = 6 , FaceSetBoundaries = 8 } |
| enum class | VisibilityMode { Toggle = 0 , ShowActive = 1 , HideActive = 2 } |
| enum class | EditMode { Grow = 0 , Shrink = 1 , DeleteGeometry = 2 , FairPositions = 3 , FairTangency = 4 } |
| using | FaceSetsFloodFillFn = FunctionRef<bool(int from_face, int edge, int to_face)> |
| static void | face_sets_update (const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask, const FunctionRef< void(Span< int >, MutableSpan< int >)> calc_face_sets) |
| static void | clear_face_sets (const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask) |
| static wmOperatorStatus | create_op_exec (bContext *C, wmOperator *op) |
| void | SCULPT_OT_face_sets_create (wmOperatorType *ot) |
| static void | init_flood_fill (Object &ob, const FaceSetsFloodFillFn &test_fn) |
| Set< int > | gather_hidden_face_sets (const Span< bool > hide_poly, const Span< int > face_sets) |
| static wmOperatorStatus | init_op_exec (bContext *C, wmOperator *op) |
| void | SCULPT_OT_face_sets_init (wmOperatorType *ot) |
| static void | face_hide_update (const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask, const FunctionRef< void(Span< int >, MutableSpan< bool >)> calc_hide) |
| static void | show_all (Depsgraph &depsgraph, Object &object, const IndexMask &node_mask) |
| static wmOperatorStatus | change_visibility_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | change_visibility_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| void | SCULPT_OT_face_set_change_visibility (wmOperatorType *ot) |
| static wmOperatorStatus | randomize_colors_exec (bContext *C, wmOperator *) |
| void | SCULPT_OT_face_sets_randomize_colors (wmOperatorType *ot) |
| static void | edit_grow_shrink (const Depsgraph &depsgraph, const Scene &scene, Object &object, const EditMode mode, const int active_face_set_id, const bool modify_hidden, wmOperator *op) |
| static bool | check_single_face_set (const Object &object, const bool check_visible_only) |
| static void | delete_geometry (Object &ob, const int active_face_set_id, const bool modify_hidden) |
| static void | edit_fairing (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const int active_face_set_id, const eMeshFairingDepth fair_order, const float strength) |
| static bool | edit_is_operation_valid (const Object &object, const EditMode mode, const bool modify_hidden) |
| static void | edit_modify_geometry (bContext *C, Object &ob, const int active_face_set, const bool modify_hidden, wmOperator *op) |
| static void | edit_modify_coordinates (bContext *C, Object &ob, const int active_face_set, const EditMode mode, wmOperator *op) |
| static bool | edit_op_init (bContext *C, wmOperator *op) |
| static wmOperatorStatus | edit_op_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | edit_op_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| void | SCULPT_OT_face_sets_edit (wmOperatorType *ot) |
| using blender::ed::sculpt_paint::face_set::FaceSetsFloodFillFn = FunctionRef<bool(int from_face, int edge, int to_face)> |
Definition at line 611 of file sculpt_face_set.cc.
|
strong |
| Enumerator | |
|---|---|
| Masked | |
| Visible | |
| All | |
| Selection | |
Definition at line 349 of file sculpt_face_set.cc.
|
strong |
| Enumerator | |
|---|---|
| Grow | |
| Shrink | |
| DeleteGeometry | |
| FairPositions | |
| FairTangency | |
Definition at line 1198 of file sculpt_face_set.cc.
|
strong |
| Enumerator | |
|---|---|
| LooseParts | |
| Materials | |
| Normals | |
| UVSeams | |
| Creases | |
| SharpEdges | |
| BevelWeight | |
| FaceSetBoundaries | |
Definition at line 600 of file sculpt_face_set.cc.
| Enumerator | |
|---|---|
| Toggle | |
| ShowActive | |
| HideActive | |
Definition at line 893 of file sculpt_face_set.cc.
| int blender::ed::sculpt_paint::face_set::active_face_set_get | ( | const Object & | object | ) |
Definition at line 197 of file sculpt.cc.
References SculptSession::active_face_index, SculptSession::active_grid_index, BKE_subdiv_ccg_grid_to_face_index(), blender::bke::pbvh::BMesh, blender::bke::Face, blender::bke::pbvh::Grids, blender::bke::AttributeAccessor::lookup(), blender::bke::pbvh::Mesh, blender::bke::object::pbvh_get(), SCULPT_FACE_SET_NONE, and SculptSession::subdiv_ccg.
Referenced by active_update_and_get(), blender::ed::sculpt_paint::auto_mask::cache_settings_update(), change_visibility_exec(), blender::ed::sculpt_paint::brushes::do_draw_face_sets_brush(), edit_op_invoke(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_fk_bmesh(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_fk_grids(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_fk_mesh(), blender::ed::sculpt_paint::auto_mask::init_face_sets_masking(), blender::ed::sculpt_paint::cloth::sculpt_cloth_filter_invoke(), and blender::ed::sculpt_paint::expand::set_initial_components_for_mouse().
| int blender::ed::sculpt_paint::face_set::active_update_and_get | ( | bContext * | C, |
| Object & | ob, | ||
| const float | mval_fl[2] ) |
Definition at line 139 of file sculpt_face_set.cc.
References active_face_set_get(), active_update_and_get(), C, blender::ed::sculpt_paint::cursor_geometry_info_update(), Object::sculpt, and SCULPT_FACE_SET_NONE.
Referenced by active_update_and_get(), and face_set_extract_invoke().
|
static |
Definition at line 985 of file sculpt_face_set.cc.
References active_face_set_get(), SculptSession::active_vert(), SculptSession::active_vert_position(), blender::bke::pbvh::all_leaf_nodes(), UnifiedPaintSettings::average_stroke_accum, UnifiedPaintSettings::average_stroke_counter, BKE_object_get_original_mesh(), BKE_sculpt_update_object_for_edit(), blender::bke::pbvh::BMesh, C, change_visibility_exec(), blender::Span< T >::contains(), copy_v3_v3(), CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_scene(), CTX_data_tool_settings(), depsgraph, ELEM, blender::bke::Face, face_hide_update(), faces, HideActive, i, blender::ed::sculpt_paint::islands::invalidate(), UnifiedPaintSettings::last_stroke_valid, blender::bke::AttributeAccessor::lookup(), mul_m4_v3(), OPERATOR_CANCELLED, OPERATOR_FINISHED, blender::bke::object::pbvh_get(), ptr, wmOperator::ptr, blender::ed::sculpt_paint::undo::push_begin(), blender::ed::sculpt_paint::undo::push_end(), RNA_enum_get(), show_all(), ShowActive, blender::ed::sculpt_paint::hide::tag_update_visibility(), Toggle, blender::bke::pbvh::Tree::type(), ToolSettings::unified_paint_settings, and blender::bke::pbvh::Tree::update_visibility().
Referenced by change_visibility_exec(), change_visibility_invoke(), and SCULPT_OT_face_set_change_visibility().
|
static |
Definition at line 1092 of file sculpt_face_set.cc.
References BKE_base_is_visible(), C, change_visibility_exec(), change_visibility_invoke(), CTX_data_active_base(), CTX_data_active_object(), CTX_wm_view3d(), blender::ed::sculpt_paint::cursor_geometry_info_update(), wmEvent::mval, OPERATOR_CANCELLED, and blender::ed::sculpt_paint::vert_random_access_ensure().
Referenced by change_visibility_invoke(), and SCULPT_OT_face_set_change_visibility().
|
static |
Definition at line 1269 of file sculpt_face_set.cc.
References check_single_face_set(), blender::bke::Face, i, blender::Span< T >::is_empty(), blender::bke::AttributeAccessor::lookup(), and SCULPT_FACE_SET_NONE.
Referenced by check_single_face_set(), and edit_is_operation_valid().
|
static |
Definition at line 356 of file sculpt_face_set.cc.
References clear_face_sets(), blender::bke::AttributeAccessor::contains(), depsgraph, blender::bke::Face, faces, blender::ed::sculpt_paint::undo::FaceSet, blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_bools(), blender::bke::pbvh::Grids, i, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::AttributeAccessor::lookup(), blender::bke::pbvh::Mesh, blender::bke::pbvh::node_face_indices_calc_grids(), blender::bke::pbvh::Tree::nodes(), blender::bke::pbvh::Tree::nodes_num(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_node(), blender::bke::MutableAttributeAccessor::remove(), SculptSession::subdiv_ccg, blender::bke::pbvh::Tree::tag_face_sets_changed(), and blender::bke::pbvh::Tree::type().
Referenced by clear_face_sets(), and create_op_exec().
| bool blender::ed::sculpt_paint::face_set::create_face_sets_mesh | ( | Object & | object | ) |
Creates the sculpt face set attribute on the mesh if it doesn't exist.
Definition at line 153 of file sculpt_face_set.cc.
References blender::bke::MutableAttributeAccessor::add(), blender::bke::AttributeAccessor::contains(), create_face_sets_mesh(), blender::bke::Face, and blender::VArray< T >::ForSingle().
Referenced by create_face_sets_mesh(), blender::ed::sculpt_paint::trim::gesture_begin(), and blender::ed::sculpt_paint::expand::original_state_store().
|
static |
Definition at line 404 of file sculpt_face_set.cc.
References All, blender::bke::pbvh::all_leaf_nodes(), blender::array_utils::AllFalse, blender::array_utils::AllTrue, blender::Span< T >::begin(), BKE_base_is_visible(), BKE_sculpt_update_object_for_edit(), blender::bke::pbvh::BMesh, blender::array_utils::booleans_mix_calc(), C, clear_face_sets(), create_op_exec(), CTX_data_active_base(), CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_scene(), CTX_wm_view3d(), depsgraph, blender::Span< T >::end(), blender::bke::Face, blender::bke::ccg::face_range(), face_sets_update(), faces, blender::MutableSpan< T >::fill(), find_next_available_id(), SubdivCCG::grid_area, blender::bke::pbvh::Grids, i, indices, blender::Span< T >::is_empty(), blender::bke::AttributeAccessor::lookup(), blender::bke::AttributeAccessor::lookup_or_default(), Masked, SubdivCCG::masks, blender::bke::pbvh::Mesh, blender::array_utils::Mixed, blender::array_utils::None, OPERATOR_CANCELLED, OPERATOR_FINISHED, blender::bke::object::pbvh_get(), blender::bke::Point, wmOperator::ptr, blender::ed::sculpt_paint::undo::push_begin(), blender::ed::sculpt_paint::undo::push_end(), RNA_enum_get(), SCULPT_tag_update_overlays(), Selection, blender::Span< T >::slice(), SculptSession::subdiv_ccg, blender::bke::pbvh::Tree::type(), and Visible.
Referenced by create_op_exec(), and SCULPT_OT_face_sets_create().
|
static |
Definition at line 1309 of file sculpt_face_set.cc.
References bm, BM_EDGE, BM_elem_flag_set, BM_elem_index_get, BM_ELEM_TAG, BM_FACE, BM_FACES_OF_MESH, BM_ITER_MESH, BM_mesh_bm_from_me(), BM_mesh_bm_to_me(), BM_mesh_create(), BM_mesh_delete_hflag_context(), BM_mesh_elem_hflag_disable_all(), BM_mesh_elem_table_ensure(), BM_mesh_elem_table_init(), BM_mesh_free(), BM_VERT, BMALLOC_TEMPLATE_FROM_ME, BMeshFromMeshParams::calc_face_normal, BMeshToMeshParams::calc_object_remap, BMeshFromMeshParams::calc_vert_normal, Object::data, DEL_FACES, delete_geometry(), blender::bke::Face, blender::Span< T >::is_empty(), blender::bke::AttributeAccessor::lookup(), and BMeshCreateParams::use_toolflags.
Referenced by delete_geometry(), and edit_modify_geometry().
Definition at line 201 of file sculpt_face_set.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::array_utils::copy(), duplicate_face_sets(), blender::bke::Face, blender::bke::AttributeAccessor::lookup_or_default(), and blender::VArrayCommon< T >::size().
Referenced by duplicate_face_sets(), edit_grow_shrink(), init_op_exec(), and blender::ed::sculpt_paint::expand::original_state_store().
|
static |
Definition at line 1349 of file sculpt_face_set.cc.
References blender::bke::pbvh::all_leaf_nodes(), BKE_mesh_prefair_and_fair_verts(), SculptVertexInfo::boundary, blender::ed::sculpt_paint::clip_and_lock_translations(), blender::Array< T, InlineBufferCapacity, Allocator >::data(), Object::data, blender::ed::sculpt_paint::PositionDeformData::deform(), depsgraph, edit_fairing(), blender::ed::sculpt_paint::boundary::ensure_boundary_info(), blender::ed::sculpt_paint::PositionDeformData::eval, blender::bke::Face, blender::index_mask::IndexMask::foreach_index(), i, blender::Span< T >::index_range(), blender::bke::AttributeAccessor::lookup(), blender::bke::pbvh::Tree::nodes(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::scale_translations(), Object::sculpt, blender::Span< T >::size(), vert_has_face_set(), vert_has_unique_face_set(), blender::ed::sculpt_paint::boundary::vert_is_boundary(), SculptSession::vertex_info, and verts.
Referenced by edit_fairing(), and edit_modify_coordinates().
|
static |
Definition at line 1206 of file sculpt_face_set.cc.
References blender::bke::pbvh::all_leaf_nodes(), BLI_assert, blender::bke::AttributeAccessor::contains(), depsgraph, duplicate_face_sets(), edit_grow_shrink(), blender::bke::Face, face_sets_update(), faces, Grow, i, indices, blender::Span< T >::is_empty(), blender::bke::AttributeAccessor::lookup(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_begin(), blender::ed::sculpt_paint::undo::push_end(), and blender::Span< T >::slice().
Referenced by edit_grow_shrink(), and edit_op_exec().
|
static |
Definition at line 1409 of file sculpt_face_set.cc.
References blender::bke::pbvh::BMesh, check_single_face_set(), blender::bke::AttributeAccessor::contains(), DeleteGeometry, edit_is_operation_valid(), ELEM, FairPositions, FairTangency, blender::bke::pbvh::Grids, Grow, blender::bke::pbvh::Mesh, blender::bke::object::pbvh_get(), Shrink, and blender::bke::pbvh::Tree::type().
Referenced by edit_is_operation_valid(), and edit_op_init().
|
static |
Definition at line 1472 of file sculpt_face_set.cc.
References blender::bke::pbvh::all_leaf_nodes(), BLI_assert_unreachable, C, CTX_data_depsgraph_pointer(), CTX_data_scene(), CTX_data_tool_settings(), depsgraph, edit_fairing(), edit_modify_coordinates(), FairPositions, FairTangency, blender::ed::sculpt_paint::flush_update_done(), blender::ed::sculpt_paint::flush_update_step(), MESH_FAIRING_DEPTH_POSITION, MESH_FAIRING_DEPTH_TANGENCY, blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::Position, blender::ed::sculpt_paint::Position, wmOperator::ptr, blender::ed::sculpt_paint::undo::push_begin(), blender::ed::sculpt_paint::undo::push_end(), blender::ed::sculpt_paint::undo::push_nodes(), RNA_float_get(), ToolSettings::sculpt, blender::bke::pbvh::Tree::tag_positions_changed(), and blender::bke::pbvh::Tree::update_bounds().
Referenced by edit_modify_coordinates(), and edit_op_exec().
|
static |
Definition at line 1458 of file sculpt_face_set.cc.
References BKE_mesh_batch_cache_dirty_tag(), BKE_MESH_BATCH_DIRTY_ALL, BKE_sculptsession_free_pbvh(), C, CTX_data_scene(), Object::data, DEG_id_tag_update(), delete_geometry(), edit_modify_geometry(), blender::ed::sculpt_paint::undo::geometry_begin(), blender::ed::sculpt_paint::undo::geometry_end(), Object::id, ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, and WM_event_add_notifier().
Referenced by edit_modify_geometry(), and edit_op_exec().
|
static |
Definition at line 1521 of file sculpt_face_set.cc.
References C, CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_scene(), DeleteGeometry, depsgraph, edit_grow_shrink(), edit_modify_coordinates(), edit_modify_geometry(), edit_op_exec(), edit_op_init(), FairPositions, FairTangency, Grow, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), RNA_int_get(), SCULPT_tag_update_overlays(), and Shrink.
Referenced by edit_op_exec(), edit_op_invoke(), and SCULPT_OT_face_sets_edit().
|
static |
Definition at line 1505 of file sculpt_face_set.cc.
References BKE_sculpt_update_object_for_edit(), C, CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), depsgraph, edit_is_operation_valid(), edit_op_init(), wmOperator::ptr, RNA_boolean_get(), and RNA_enum_get().
Referenced by edit_op_exec(), and edit_op_init().
|
static |
Definition at line 1554 of file sculpt_face_set.cc.
References active_face_set_get(), BKE_base_is_visible(), BKE_sculpt_update_object_for_edit(), C, CTX_data_active_base(), CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_wm_view3d(), blender::ed::sculpt_paint::cursor_geometry_info_update(), depsgraph, edit_op_exec(), edit_op_invoke(), wmEvent::mval, OPERATOR_CANCELLED, wmOperator::ptr, and RNA_int_set().
Referenced by edit_op_invoke(), and SCULPT_OT_face_sets_edit().
| int blender::ed::sculpt_paint::face_set::ensure_face_sets_bmesh | ( | Object & | object | ) |
Definition at line 179 of file sculpt_face_set.cc.
References bm, SculptSession::bm, BM_data_layer_add_named(), BM_ELEM_CD_SET_INT, BM_FACES_OF_MESH, BM_ITER_MESH, CD_PROP_INT32, CustomData_get_offset_named(), CustomData_has_layer_named(), and ensure_face_sets_bmesh().
Referenced by ensure_face_sets_bmesh(), and gesture_apply_bmesh().
| bke::SpanAttributeWriter< int > blender::ed::sculpt_paint::face_set::ensure_face_sets_mesh | ( | Mesh & | mesh | ) |
Ensures that the sculpt face set attribute exists on the mesh.
Definition at line 167 of file sculpt_face_set.cc.
References blender::bke::MutableAttributeAccessor::add(), blender::bke::AttributeAccessor::contains(), ensure_face_sets_mesh(), blender::bke::Face, blender::VArray< T >::ForSingle(), and blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span().
Referenced by ensure_face_sets_mesh(), blender::ed::sculpt_paint::expand::face_sets_restore(), blender::ed::sculpt_paint::expand::face_sets_update(), face_sets_update(), gesture_apply_mesh(), init_flood_fill(), init_op_exec(), blender::ed::sculpt_paint::expand::restore_face_set_data(), blender::ed::sculpt_paint::undo::restore_face_set_from_undo_step(), and blender::ed::sculpt_paint::undo::restore_face_sets().
|
static |
Definition at line 899 of file sculpt_face_set.cc.
References blender::MutableSpan< T >::as_span(), depsgraph, blender::bke::Face, face_hide_update(), faces, blender::bke::SpanAttributeWriter< T >::finish(), blender::index_mask::IndexMask::foreach_index(), IndexMask::from_bools(), blender::ed::sculpt_paint::gather_data_mesh(), blender::bke::pbvh::Grids, blender::ed::sculpt_paint::undo::HideFace, i, 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::bke::pbvh::Mesh, blender::index_mask::IndexMask::min_array_size(), blender::bke::pbvh::node_face_indices_calc_grids(), blender::bke::pbvh::Tree::nodes(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_node(), blender::ed::sculpt_paint::scatter_data_mesh(), blender::bke::SpanAttributeWriter< T >::span, SculptSession::subdiv_ccg, blender::ed::sculpt_paint::hide::sync_all_from_faces(), blender::bke::pbvh::Tree::tag_visibility_changed(), and blender::bke::pbvh::Tree::type().
Referenced by change_visibility_exec(), and face_hide_update().
|
static |
Definition at line 285 of file sculpt_face_set.cc.
References blender::MutableSpan< T >::as_span(), data, depsgraph, ensure_face_sets_mesh(), face_sets_update(), faces, blender::ed::sculpt_paint::undo::FaceSet, blender::bke::SpanAttributeWriter< T >::finish(), blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_bools(), blender::ed::sculpt_paint::gather_data_mesh(), blender::bke::pbvh::Grids, i, blender::array_utils::indexed_data_equal(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Mesh, blender::bke::pbvh::node_face_indices_calc_grids(), blender::bke::pbvh::Tree::nodes(), blender::bke::pbvh::Tree::nodes_num(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_node(), blender::ed::sculpt_paint::scatter_data_mesh(), blender::bke::SpanAttributeWriter< T >::span, SculptSession::subdiv_ccg, blender::bke::pbvh::Tree::tag_face_sets_changed(), and blender::bke::pbvh::Tree::type().
Referenced by create_op_exec(), edit_grow_shrink(), and face_sets_update().
| void blender::ed::sculpt_paint::face_set::filter_verts_with_unique_face_sets_bmesh | ( | int | face_set_offset, |
| const bool | unique, | ||
| const Set< BMVert *, 0 > & | verts, | ||
| const MutableSpan< float > | factors ) |
Definition at line 262 of file sculpt_face_set.cc.
References BLI_assert, filter_verts_with_unique_face_sets_bmesh(), i, blender::MutableSpan< T >::size(), vert_has_unique_face_set(), and verts.
Referenced by blender::ed::sculpt_paint::filter::calc_relax_face_sets_filter(), and filter_verts_with_unique_face_sets_bmesh().
| void blender::ed::sculpt_paint::face_set::filter_verts_with_unique_face_sets_grids | ( | const OffsetIndices< int > | faces, |
| const Span< int > | corner_verts, | ||
| const GroupedSpan< int > | vert_to_face_map, | ||
| const Span< int > | face_sets, | ||
| const SubdivCCG & | subdiv_ccg, | ||
| const bool | unique, | ||
| const Span< int > | grids, | ||
| const MutableSpan< float > | factors ) |
Definition at line 226 of file sculpt_face_set.cc.
References BKE_subdiv_ccg_key_top_level(), BLI_assert, CCG_grid_xy_to_index(), faces, filter_verts_with_unique_face_sets_grids(), CCGKey::grid_area, SubdivCCGCoord::grid_index, CCGKey::grid_size, i, blender::Span< T >::index_range(), blender::MutableSpan< T >::size(), blender::Span< T >::size(), vert_has_unique_face_set(), SubdivCCGCoord::x, x, SubdivCCGCoord::y, and y.
Referenced by blender::ed::sculpt_paint::filter::calc_relax_face_sets_filter(), and filter_verts_with_unique_face_sets_grids().
| void blender::ed::sculpt_paint::face_set::filter_verts_with_unique_face_sets_mesh | ( | const GroupedSpan< int > | vert_to_face_map, |
| const Span< int > | face_sets, | ||
| const bool | unique, | ||
| const Span< int > | verts, | ||
| const MutableSpan< float > | factors ) |
Definition at line 211 of file sculpt_face_set.cc.
References BLI_assert, filter_verts_with_unique_face_sets_mesh(), i, blender::MutableSpan< T >::size(), vert_has_unique_face_set(), and verts.
Referenced by blender::ed::sculpt_paint::filter::calc_relax_face_sets_filter(), and filter_verts_with_unique_face_sets_mesh().
| int blender::ed::sculpt_paint::face_set::find_next_available_id | ( | Object & | object | ) |
Definition at line 76 of file sculpt_face_set.cc.
References b, bm, SculptSession::bm, BM_FACES_OF_MESH, BM_ITER_MESH, blender::bke::pbvh::BMesh, CD_PROP_INT32, CustomData_get_offset_named(), BMHeader::data, blender::bke::Face, blender::bke::pbvh::Grids, BMFace::head, blender::Span< T >::index_range(), blender::bke::AttributeAccessor::lookup(), max, blender::bke::pbvh::Mesh, blender::threading::parallel_reduce(), blender::bke::object::pbvh_get(), and POINTER_OFFSET.
Referenced by create_op_exec(), blender::ed::sculpt_paint::brushes::do_draw_face_sets_brush(), blender::ed::sculpt_paint::trim::gesture_end(), init_operation(), blender::ed::sculpt_paint::init_sculpt_mode_session(), paint_mask_slice_exec(), and blender::ed::sculpt_paint::expand::set_initial_components_for_mouse().
| Set< int > blender::ed::sculpt_paint::face_set::gather_hidden_face_sets | ( | const Span< bool > | hide_poly, |
| const Span< int > | face_sets ) |
Definition at line 685 of file sculpt_face_set.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), gather_hidden_face_sets(), i, blender::Span< T >::index_range(), and blender::Span< T >::is_empty().
Referenced by gather_hidden_face_sets(), and init_flood_fill().
|
static |
Definition at line 1738 of file sculpt_face_set.cc.
References BKE_pbvh_bmesh_node_faces(), BM_ELEM_CD_SET_INT, BM_elem_flag_test, BM_ELEM_HIDDEN, BM_face_calc_center_median(), depsgraph, ViewContext::depsgraph, ensure_face_sets_bmesh(), blender::ed::sculpt_paint::undo::FaceSet, blender::index_mask::IndexMask::foreach_index(), IndexMask::from_bools(), gesture_apply_bmesh(), i, blender::ed::sculpt_paint::gesture::is_affected(), blender::index_mask::IndexMask::is_empty(), blender::index_mask::IndexMask::min_array_size(), blender::ed::sculpt_paint::face_set::FaceSetOperation::new_face_set_id, blender::bke::pbvh::Tree::nodes(), ViewContext::obact, blender::ed::sculpt_paint::gesture::GestureData::operation, blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_node(), blender::bke::pbvh::Tree::tag_face_sets_changed(), and blender::ed::sculpt_paint::gesture::GestureData::vc.
Referenced by gesture_apply_bmesh(), and gesture_apply_for_symmetry_pass().
|
static |
Definition at line 1779 of file sculpt_face_set.cc.
References blender::bke::pbvh::BMesh, gesture_apply_bmesh(), gesture_apply_for_symmetry_pass(), gesture_apply_mesh(), blender::bke::pbvh::Grids, blender::bke::pbvh::Mesh, blender::ed::sculpt_paint::gesture::GestureData::node_mask, ViewContext::obact, blender::bke::object::pbvh_get(), and blender::ed::sculpt_paint::gesture::GestureData::vc.
Referenced by gesture_apply_for_symmetry_pass(), and init_operation().
|
static |
Definition at line 1658 of file sculpt_face_set.cc.
References depsgraph, ViewContext::depsgraph, ensure_face_sets_mesh(), blender::bke::Face, blender::bke::mesh::face_center_calc(), blender::bke::mesh::face_normal_calc(), faces, blender::ed::sculpt_paint::undo::FaceSet, blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_bools(), gesture_apply_mesh(), blender::bke::pbvh::Grids, i, blender::ed::sculpt_paint::gesture::is_affected(), blender::Span< T >::is_empty(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::AttributeAccessor::lookup(), blender::bke::pbvh::Mesh, blender::ed::sculpt_paint::face_set::FaceSetOperation::new_face_set_id, blender::bke::pbvh::node_face_indices_calc_grids(), blender::bke::pbvh::Tree::nodes(), blender::bke::pbvh::Tree::nodes_num(), ViewContext::obact, blender::ed::sculpt_paint::gesture::GestureData::operation, blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_node(), blender::Span< T >::slice(), blender::ed::sculpt_paint::gesture::GestureData::ss, SculptSession::subdiv_ccg, blender::bke::pbvh::Tree::tag_face_sets_changed(), blender::bke::pbvh::Tree::type(), blender::ed::sculpt_paint::gesture::GestureData::vc, and blender::bke::pbvh::vert_positions_eval().
Referenced by gesture_apply_for_symmetry_pass(), and gesture_apply_mesh().
|
static |
Definition at line 1650 of file sculpt_face_set.cc.
References BKE_sculpt_update_object_for_edit(), C, CTX_data_depsgraph_pointer(), CTX_data_scene(), depsgraph, gesture_begin(), ViewContext::obact, blender::ed::sculpt_paint::undo::push_begin(), and blender::ed::sculpt_paint::gesture::GestureData::vc.
Referenced by gesture_begin(), and init_operation().
|
static |
Definition at line 1823 of file sculpt_face_set.cc.
References blender::ed::sculpt_paint::gesture::apply(), C, gesture_box_exec(), blender::ed::sculpt_paint::gesture::init_from_box(), init_operation(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by gesture_box_exec(), and SCULPT_OT_face_set_box_gesture().
|
static |
Definition at line 1812 of file sculpt_face_set.cc.
References BKE_base_is_visible(), C, CTX_data_active_base(), CTX_wm_view3d(), gesture_box_invoke(), OPERATOR_CANCELLED, and WM_gesture_box_invoke().
Referenced by gesture_box_invoke(), and SCULPT_OT_face_set_box_gesture().
|
static |
Definition at line 1792 of file sculpt_face_set.cc.
References gesture_end(), ViewContext::obact, blender::ed::sculpt_paint::undo::push_end(), and blender::ed::sculpt_paint::gesture::GestureData::vc.
Referenced by gesture_end(), and init_operation().
|
static |
Definition at line 1845 of file sculpt_face_set.cc.
References blender::ed::sculpt_paint::gesture::apply(), C, gesture_lasso_exec(), blender::ed::sculpt_paint::gesture::init_from_lasso(), init_operation(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by gesture_lasso_exec(), and SCULPT_OT_face_set_lasso_gesture().
|
static |
Definition at line 1834 of file sculpt_face_set.cc.
References BKE_base_is_visible(), C, CTX_data_active_base(), CTX_wm_view3d(), gesture_lasso_invoke(), OPERATOR_CANCELLED, and WM_gesture_lasso_invoke().
Referenced by gesture_lasso_invoke(), and SCULPT_OT_face_set_lasso_gesture().
|
static |
Definition at line 1867 of file sculpt_face_set.cc.
References blender::ed::sculpt_paint::gesture::apply(), C, gesture_line_exec(), blender::ed::sculpt_paint::gesture::init_from_line(), init_operation(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by gesture_line_exec(), and SCULPT_OT_face_set_line_gesture().
|
static |
Definition at line 1856 of file sculpt_face_set.cc.
References BKE_base_is_visible(), C, CTX_data_active_base(), CTX_wm_view3d(), gesture_line_invoke(), OPERATOR_CANCELLED, and WM_gesture_straightline_active_side_invoke().
Referenced by gesture_line_invoke(), and SCULPT_OT_face_set_line_gesture().
|
static |
Definition at line 1889 of file sculpt_face_set.cc.
References blender::ed::sculpt_paint::gesture::apply(), C, gesture_polyline_exec(), blender::ed::sculpt_paint::gesture::init_from_polyline(), init_operation(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by gesture_polyline_exec(), and SCULPT_OT_face_set_polyline_gesture().
|
static |
Definition at line 1878 of file sculpt_face_set.cc.
References BKE_base_is_visible(), C, CTX_data_active_base(), CTX_wm_view3d(), gesture_polyline_invoke(), OPERATOR_CANCELLED, and WM_gesture_polyline_invoke().
Referenced by gesture_polyline_invoke(), and SCULPT_OT_face_set_polyline_gesture().
|
static |
Definition at line 613 of file sculpt_face_set.cc.
References blender::bke::mesh::build_edge_to_face_map(), Object::data, SculptSession::edge_to_face_indices, SculptSession::edge_to_face_map, SculptSession::edge_to_face_offsets, ensure_face_sets_mesh(), blender::bke::Face, faces, blender::bke::SpanAttributeWriter< T >::finish(), gather_hidden_face_sets(), i, init_flood_fill(), blender::Span< T >::is_empty(), blender::bke::AttributeAccessor::lookup(), Object::sculpt, blender::Span< T >::size(), blender::Span< T >::slice(), and blender::bke::SpanAttributeWriter< T >::span.
Referenced by init_flood_fill(), and init_op_exec().
|
static |
Definition at line 701 of file sculpt_face_set.cc.
References blender::bke::pbvh::all_leaf_nodes(), BevelWeight, BKE_base_is_visible(), BKE_sculpt_update_object_for_edit(), blender::bke::pbvh::BMesh, C, Creases, CTX_data_active_base(), CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_scene(), CTX_wm_view3d(), Object::data, depsgraph, blender::math::dot(), duplicate_face_sets(), blender::bke::Edge, ensure_face_sets_mesh(), blender::bke::Face, blender::ed::sculpt_paint::undo::FaceSet, FaceSetBoundaries, blender::bke::SpanAttributeWriter< T >::finish(), i, init_flood_fill(), init_op_exec(), blender::index_mask::IndexMask::is_empty(), blender::bke::AttributeAccessor::lookup(), blender::bke::AttributeAccessor::lookup_or_default(), LooseParts, Materials, Normals, OPERATOR_CANCELLED, OPERATOR_FINISHED, blender::bke::object::pbvh_get(), wmOperator::ptr, blender::ed::sculpt_paint::undo::push_begin(), blender::ed::sculpt_paint::undo::push_end(), blender::ed::sculpt_paint::undo::push_nodes(), RNA_enum_get(), RNA_float_get(), SCULPT_tag_update_overlays(), SharpEdges, blender::bke::SpanAttributeWriter< T >::span, blender::bke::pbvh::Tree::tag_face_sets_changed(), blender::bke::pbvh::Tree::type(), and UVSeams.
Referenced by init_op_exec(), and SCULPT_OT_face_sets_init().
|
static |
Definition at line 1797 of file sculpt_face_set.cc.
References blender::ed::sculpt_paint::gesture::Operation::apply_for_symmetry_pass, blender::ed::sculpt_paint::gesture::Operation::begin, blender::ed::sculpt_paint::gesture::Operation::end, find_next_available_id(), gesture_apply_for_symmetry_pass(), gesture_begin(), gesture_end(), init_operation(), MEM_callocN(), blender::ed::sculpt_paint::face_set::FaceSetOperation::new_face_set_id, ViewContext::obact, blender::ed::sculpt_paint::face_set::FaceSetOperation::op, blender::ed::sculpt_paint::gesture::GestureData::operation, and blender::ed::sculpt_paint::gesture::GestureData::vc.
Referenced by gesture_box_exec(), gesture_lasso_exec(), gesture_line_exec(), gesture_polyline_exec(), and init_operation().
| void blender::ed::sculpt_paint::face_set::initialize_none_to_id | ( | Mesh * | mesh, |
| int | new_id ) |
Definition at line 122 of file sculpt_face_set.cc.
References blender::bke::SpanAttributeWriter< T >::finish(), i, initialize_none_to_id(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), SCULPT_FACE_SET_NONE, and blender::bke::SpanAttributeWriter< T >::span.
Referenced by blender::ed::sculpt_paint::trim::gesture_end(), blender::ed::sculpt_paint::init_sculpt_mode_session(), initialize_none_to_id(), and paint_mask_slice_exec().
|
static |
Definition at line 1145 of file sculpt_face_set.cc.
References blender::bke::pbvh::all_leaf_nodes(), BKE_base_is_visible(), BLI_hash_int_01(), blender::bke::pbvh::BMesh, C, clamp_i(), blender::bke::AttributeAccessor::contains(), CTX_data_active_base(), CTX_data_active_object(), CTX_wm_view3d(), Object::data, blender::bke::Face, blender::bke::AttributeAccessor::lookup(), max_ii(), OPERATOR_CANCELLED, OPERATOR_FINISHED, blender::bke::object::pbvh_get(), randomize_colors_exec(), SCULPT_tag_update_overlays(), blender::bke::pbvh::Tree::tag_face_sets_changed(), and blender::bke::pbvh::Tree::type().
Referenced by randomize_colors_exec(), and SCULPT_OT_face_sets_randomize_colors().
|
static |
Checks if the face sets of the adjacent faces to the edge between v1 and v2 in the base mesh are equal.
Definition at line 319 of file sculpt.cc.
References faces, i, blender::Span< T >::size(), and v2.
Referenced by vert_has_unique_face_set().
| void blender::ed::sculpt_paint::face_set::SCULPT_OT_face_set_box_gesture | ( | wmOperatorType * | ot | ) |
Definition at line 1918 of file sculpt_face_set.cc.
References blender::ed::sculpt_paint::gesture::Box, gesture_box_exec(), gesture_box_invoke(), blender::ed::sculpt_paint::gesture::operator_properties(), OPTYPE_REGISTER, ot, SCULPT_mode_poll_view3d(), SCULPT_OT_face_set_box_gesture(), WM_gesture_box_modal(), and WM_operator_properties_border().
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt(), and SCULPT_OT_face_set_box_gesture().
| void blender::ed::sculpt_paint::face_set::SCULPT_OT_face_set_change_visibility | ( | wmOperatorType * | ot | ) |
Definition at line 1112 of file sculpt_face_set.cc.
References change_visibility_exec(), change_visibility_invoke(), HideActive, OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_enum(), SCULPT_mode_poll(), SCULPT_OT_face_set_change_visibility(), ShowActive, and Toggle.
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt(), and SCULPT_OT_face_set_change_visibility().
| void blender::ed::sculpt_paint::face_set::SCULPT_OT_face_set_lasso_gesture | ( | wmOperatorType * | ot | ) |
Definition at line 1936 of file sculpt_face_set.cc.
References gesture_lasso_exec(), gesture_lasso_invoke(), blender::ed::sculpt_paint::gesture::Lasso, blender::ed::sculpt_paint::gesture::operator_properties(), OPTYPE_DEPENDS_ON_CURSOR, ot, SCULPT_mode_poll_view3d(), SCULPT_OT_face_set_lasso_gesture(), WM_gesture_lasso_modal(), and WM_operator_properties_gesture_lasso().
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt(), and SCULPT_OT_face_set_lasso_gesture().
| void blender::ed::sculpt_paint::face_set::SCULPT_OT_face_set_line_gesture | ( | wmOperatorType * | ot | ) |
Definition at line 1954 of file sculpt_face_set.cc.
References gesture_line_exec(), gesture_line_invoke(), blender::ed::sculpt_paint::gesture::Line, blender::ed::sculpt_paint::gesture::operator_properties(), OPTYPE_REGISTER, ot, SCULPT_mode_poll_view3d(), SCULPT_OT_face_set_line_gesture(), WM_CURSOR_EDIT, WM_gesture_straightline_oneshot_modal(), and WM_operator_properties_gesture_straightline().
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt(), and SCULPT_OT_face_set_line_gesture().
| void blender::ed::sculpt_paint::face_set::SCULPT_OT_face_set_polyline_gesture | ( | wmOperatorType * | ot | ) |
Definition at line 1900 of file sculpt_face_set.cc.
References gesture_polyline_exec(), gesture_polyline_invoke(), blender::ed::sculpt_paint::gesture::Lasso, blender::ed::sculpt_paint::gesture::operator_properties(), OPTYPE_DEPENDS_ON_CURSOR, ot, SCULPT_mode_poll_view3d(), SCULPT_OT_face_set_polyline_gesture(), WM_gesture_polyline_modal(), and WM_operator_properties_gesture_polyline().
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt(), and SCULPT_OT_face_set_polyline_gesture().
| void blender::ed::sculpt_paint::face_set::SCULPT_OT_face_sets_create | ( | wmOperatorType * | ot | ) |
Definition at line 563 of file sculpt_face_set.cc.
References All, create_op_exec(), Masked, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_enum(), SCULPT_mode_poll(), SCULPT_OT_face_sets_create(), Selection, and Visible.
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt(), and SCULPT_OT_face_sets_create().
| void blender::ed::sculpt_paint::face_set::SCULPT_OT_face_sets_edit | ( | wmOperatorType * | ot | ) |
Definition at line 1580 of file sculpt_face_set.cc.
References BLT_I18NCONTEXT_AMOUNT, DeleteGeometry, edit_op_exec(), edit_op_invoke(), FairPositions, FairTangency, Grow, OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_REGISTER, OPTYPE_UNDO, ot, PROP_HIDDEN, RNA_def_boolean(), RNA_def_enum(), RNA_def_float(), RNA_def_int(), RNA_def_property_flag(), RNA_def_property_translation_context(), SCULPT_mode_poll(), SCULPT_OT_face_sets_edit(), and Shrink.
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt(), and SCULPT_OT_face_sets_edit().
| void blender::ed::sculpt_paint::face_set::SCULPT_OT_face_sets_init | ( | wmOperatorType * | ot | ) |
Definition at line 826 of file sculpt_face_set.cc.
References BevelWeight, Creases, FaceSetBoundaries, init_op_exec(), LooseParts, Materials, Normals, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_enum(), RNA_def_float(), SCULPT_mode_poll(), SCULPT_OT_face_sets_init(), SharpEdges, and UVSeams.
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt(), and SCULPT_OT_face_sets_init().
| void blender::ed::sculpt_paint::face_set::SCULPT_OT_face_sets_randomize_colors | ( | wmOperatorType * | ot | ) |
Definition at line 1186 of file sculpt_face_set.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, randomize_colors_exec(), SCULPT_mode_poll(), and SCULPT_OT_face_sets_randomize_colors().
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt(), and SCULPT_OT_face_sets_randomize_colors().
|
static |
Definition at line 970 of file sculpt_face_set.cc.
References BLI_assert_unreachable, blender::bke::pbvh::BMesh, depsgraph, blender::bke::pbvh::Grids, blender::ed::sculpt_paint::hide::grids_show_all(), blender::bke::pbvh::Mesh, blender::ed::sculpt_paint::hide::mesh_show_all(), blender::bke::object::pbvh_get(), and show_all().
Referenced by change_visibility_exec(), and show_all().
| int blender::ed::sculpt_paint::face_set::vert_face_set_get | ( | const GroupedSpan< int > | vert_to_face_map, |
| const Span< int > | face_sets, | ||
| const int | vert ) |
Definition at line 231 of file sculpt.cc.
References SCULPT_FACE_SET_NONE.
Referenced by blender::ed::sculpt_paint::auto_mask::calc_face_factors(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::expand::enabled_state_to_bitmap(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_bmesh(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_fk_bmesh(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_fk_mesh(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_grids(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_mesh(), and blender::ed::sculpt_paint::mask::sculpt_mask_init_exec().
| int blender::ed::sculpt_paint::face_set::vert_face_set_get | ( | const int | , |
| const BMVert & | ) |
Definition at line 248 of file sculpt.cc.
References SCULPT_FACE_SET_NONE.
| int blender::ed::sculpt_paint::face_set::vert_face_set_get | ( | const SubdivCCG & | subdiv_ccg, |
| const Span< int > | face_sets, | ||
| const int | grid ) |
Definition at line 242 of file sculpt.cc.
References BKE_subdiv_ccg_grid_to_face_index().
| bool blender::ed::sculpt_paint::face_set::vert_has_face_set | ( | const GroupedSpan< int > | vert_to_face_map, |
| const Span< int > | face_sets, | ||
| const int | vert, | ||
| const int | face_set ) |
Definition at line 253 of file sculpt.cc.
References faces, blender::Span< T >::is_empty(), and SCULPT_FACE_SET_NONE.
Referenced by blender::ed::sculpt_paint::cloth::apply_filter_forces_bmesh(), blender::ed::sculpt_paint::cloth::apply_filter_forces_grids(), blender::ed::sculpt_paint::cloth::apply_filter_forces_mesh(), blender::ed::sculpt_paint::pose::calc_average_face_set_center(), blender::ed::sculpt_paint::auto_mask::calc_face_factors(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), edit_fairing(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_bmesh(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_fk_bmesh(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_fk_grids(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_fk_mesh(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_grids(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_mesh(), and blender::ed::sculpt_paint::expand::init_from_face_set_boundary().
| bool blender::ed::sculpt_paint::face_set::vert_has_face_set | ( | const int | face_set_offset, |
| const BMVert & | vert, | ||
| const int | face_set ) |
Definition at line 278 of file sculpt.cc.
References BM_ELEM_CD_GET_INT, BM_FACES_OF_VERT, BM_ITER_ELEM, and SCULPT_FACE_SET_NONE.
| bool blender::ed::sculpt_paint::face_set::vert_has_face_set | ( | const SubdivCCG & | subdiv_ccg, |
| const Span< int > | face_sets, | ||
| const int | grid, | ||
| const int | face_set ) |
Definition at line 266 of file sculpt.cc.
References BKE_subdiv_ccg_grid_to_face_index(), blender::Span< T >::is_empty(), and SCULPT_FACE_SET_NONE.
| bool blender::ed::sculpt_paint::face_set::vert_has_unique_face_set | ( | const GroupedSpan< int > | vert_to_face_map, |
| const Span< int > | face_sets, | ||
| int | vert ) |
Definition at line 293 of file sculpt.cc.
References blender::Span< T >::is_empty().
Referenced by blender::ed::sculpt_paint::auto_mask::calc_face_factors(), blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), blender::ed::sculpt_paint::smooth::calc_relaxed_translations_bmesh(), blender::ed::sculpt_paint::smooth::calc_relaxed_translations_faces(), blender::ed::sculpt_paint::smooth::calc_relaxed_translations_grids(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), edit_fairing(), filter_verts_with_unique_face_sets_bmesh(), filter_verts_with_unique_face_sets_grids(), filter_verts_with_unique_face_sets_mesh(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_bmesh(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_fk_bmesh(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_fk_grids(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_fk_mesh(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_grids(), blender::ed::sculpt_paint::pose::ik_chain_init_face_sets_mesh(), blender::ed::sculpt_paint::auto_mask::init_boundary_masking_bmesh(), blender::ed::sculpt_paint::auto_mask::init_boundary_masking_grids(), blender::ed::sculpt_paint::auto_mask::init_boundary_masking_mesh(), blender::ed::sculpt_paint::expand::init_from_face_set_boundary(), and vert_has_unique_face_set().
| bool blender::ed::sculpt_paint::face_set::vert_has_unique_face_set | ( | const int | , |
| const BMVert & | ) |
| bool blender::ed::sculpt_paint::face_set::vert_has_unique_face_set | ( | const OffsetIndices< int > | faces, |
| const Span< int > | corner_verts, | ||
| const GroupedSpan< int > | vert_to_face_map, | ||
| const Span< int > | face_sets, | ||
| const SubdivCCG & | subdiv_ccg, | ||
| SubdivCCGCoord | coord ) |
Definition at line 352 of file sculpt.cc.
References BKE_subdiv_ccg_coarse_mesh_adjacency_info_get(), BLI_assert_unreachable, faces, blender::Span< T >::is_empty(), sculpt_check_unique_face_set_for_edge_in_base_mesh(), SUBDIV_CCG_ADJACENT_EDGE, SUBDIV_CCG_ADJACENT_NONE, SUBDIV_CCG_ADJACENT_VERTEX, v2, and vert_has_unique_face_set().