|
Blender V4.3
|
Classes | |
| struct | FaceSetOperation |
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 int | 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 int | 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 int | change_visibility_exec (bContext *C, wmOperator *op) |
| static int | change_visibility_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| void | SCULPT_OT_face_set_change_visibility (wmOperatorType *ot) |
| static int | 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 int | edit_op_exec (bContext *C, wmOperator *op) |
| static int | 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 609 of file sculpt_face_set.cc.
|
strong |
| Enumerator | |
|---|---|
| Masked | |
| Visible | |
| All | |
| Selection | |
Definition at line 347 of file sculpt_face_set.cc.
|
strong |
| Enumerator | |
|---|---|
| Grow | |
| Shrink | |
| DeleteGeometry | |
| FairPositions | |
| FairTangency | |
Definition at line 1196 of file sculpt_face_set.cc.
|
strong |
| Enumerator | |
|---|---|
| LooseParts | |
| Materials | |
| Normals | |
| UVSeams | |
| Creases | |
| SharpEdges | |
| BevelWeight | |
| FaceSetBoundaries | |
Definition at line 598 of file sculpt_face_set.cc.
|
strong |
| Enumerator | |
|---|---|
| Toggle | |
| ShowActive | |
| HideActive | |
Definition at line 891 of file sculpt_face_set.cc.
Definition at line 198 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::pbvh::Mesh, blender::bke::object::pbvh_get(), SCULPT_FACE_SET_NONE, and SculptSession::subdiv_ccg.
Referenced by active_update_and_get(), change_visibility_exec(), blender::ed::sculpt_paint::do_brush_action(), edit_op_invoke(), blender::ed::sculpt_paint::auto_mask::init_face_sets_masking(), and blender::ed::sculpt_paint::cloth::sculpt_cloth_filter_invoke().
| int blender::ed::sculpt_paint::face_set::active_update_and_get | ( | bContext * | C, |
| Object & | ob, | ||
| const float | mval_fl[2] ) |
Definition at line 137 of file sculpt_face_set.cc.
References active_face_set_get(), active_update_and_get(), Object::sculpt, SCULPT_cursor_geometry_info_update(), and SCULPT_FACE_SET_NONE.
Referenced by active_update_and_get().
|
static |
Definition at line 983 of file sculpt_face_set.cc.
References active_face_set_get(), SculptSession::active_vert(), SculptSession::active_vert_position(), UnifiedPaintSettings::average_stroke_accum, UnifiedPaintSettings::average_stroke_counter, BKE_object_get_original_mesh(), BKE_sculpt_update_object_for_edit(), 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, face_hide_update(), blender::MutableSpan< T >::fill(), blender::MutableSpan< T >::index_range(), UnifiedPaintSettings::last_stroke_valid, mul_m4_v3(), OPERATOR_CANCELLED, OPERATOR_FINISHED, ptr, wmOperator::ptr, RNA_enum_get(), show_all(), blender::bke::pbvh::Tree::type(), and ToolSettings::unified_paint_settings.
Referenced by change_visibility_exec(), change_visibility_invoke(), and SCULPT_OT_face_set_change_visibility().
|
static |
Definition at line 1090 of file sculpt_face_set.cc.
References BKE_base_is_visible(), change_visibility_exec(), change_visibility_invoke(), CTX_data_active_base(), CTX_data_active_object(), CTX_wm_view3d(), float, wmEvent::mval, OPERATOR_CANCELLED, SCULPT_cursor_geometry_info_update(), and SCULPT_vertex_random_access_ensure().
Referenced by change_visibility_invoke(), and SCULPT_OT_face_set_change_visibility().
|
static |
Definition at line 1267 of file sculpt_face_set.cc.
References check_single_face_set(), blender::Span< T >::is_empty(), and SCULPT_FACE_SET_NONE.
Referenced by check_single_face_set(), and edit_is_operation_valid().
|
static |
Definition at line 354 of file sculpt_face_set.cc.
References clear_face_sets(), depsgraph, blender::index_mask::IndexMask::foreach_index(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Tree::nodes(), blender::bke::pbvh::Tree::nodes_num(), 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 151 of file sculpt_face_set.cc.
References blender::bke::MutableAttributeAccessor::add(), and create_face_sets_mesh().
Referenced by create_face_sets_mesh(), and blender::ed::sculpt_paint::trim::gesture_begin().
|
static |
Definition at line 402 of file sculpt_face_set.cc.
References blender::Span< T >::begin(), BKE_base_is_visible(), BKE_sculpt_update_object_for_edit(), 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(), face_sets_update(), blender::MutableSpan< T >::fill(), find_next_available_id(), SubdivCCG::grid_area, blender::Span< T >::is_empty(), SubdivCCG::masks, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), SCULPT_tag_update_overlays(), blender::Span< T >::slice(), SculptSession::subdiv_ccg, and blender::bke::pbvh::Tree::type().
Referenced by create_op_exec(), and SCULPT_OT_face_sets_create().
|
static |
Definition at line 1307 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, BMeshToMeshParams::calc_object_remap, BMeshFromMeshParams::calc_vert_normal, Object::data, DEL_FACES, delete_geometry(), blender::Span< T >::is_empty(), and BMeshCreateParams::use_toolflags.
Referenced by delete_geometry(), and edit_modify_geometry().
Definition at line 199 of file sculpt_face_set.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), and duplicate_face_sets().
Referenced by duplicate_face_sets(), edit_grow_shrink(), and init_op_exec().
|
static |
Definition at line 1347 of file sculpt_face_set.cc.
References 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::PositionDeformData::eval, blender::index_mask::IndexMask::foreach_index(), blender::bke::pbvh::Tree::nodes(), blender::ed::sculpt_paint::scale_translations(), Object::sculpt, blender::ed::sculpt_paint::LocalData::translations, vert_has_face_set(), vert_has_unique_face_set(), SculptSession::vertex_info, and verts.
Referenced by edit_fairing(), and edit_modify_coordinates().
|
static |
Definition at line 1204 of file sculpt_face_set.cc.
References BLI_assert, depsgraph, duplicate_face_sets(), edit_grow_shrink(), face_sets_update(), blender::Span< T >::is_empty(), and blender::Span< T >::slice().
Referenced by edit_grow_shrink(), and edit_op_exec().
|
static |
Definition at line 1407 of file sculpt_face_set.cc.
References check_single_face_set(), edit_is_operation_valid(), ELEM, and blender::bke::pbvh::Tree::type().
Referenced by edit_is_operation_valid(), and edit_op_init().
|
static |
Definition at line 1470 of file sculpt_face_set.cc.
References BLI_assert_unreachable, CTX_data_depsgraph_pointer(), CTX_data_scene(), CTX_data_tool_settings(), depsgraph, edit_fairing(), edit_modify_coordinates(), blender::ed::sculpt_paint::flush_update_done(), blender::ed::sculpt_paint::flush_update_step(), MESH_FAIRING_DEPTH_POSITION, MESH_FAIRING_DEPTH_TANGENCY, wmOperator::ptr, RNA_float_get(), ToolSettings::sculpt, and blender::bke::pbvh::Tree::tag_positions_changed().
Referenced by edit_modify_coordinates(), and edit_op_exec().
|
static |
Definition at line 1456 of file sculpt_face_set.cc.
References BKE_mesh_batch_cache_dirty_tag(), BKE_MESH_BATCH_DIRTY_ALL, BKE_sculptsession_free_pbvh(), CTX_data_scene(), Object::data, DEG_id_tag_update(), delete_geometry(), edit_modify_geometry(), 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 1520 of file sculpt_face_set.cc.
References CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_data_scene(), depsgraph, edit_grow_shrink(), edit_modify_coordinates(), edit_modify_geometry(), edit_op_exec(), edit_op_init(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), RNA_int_get(), and SCULPT_tag_update_overlays().
Referenced by edit_op_exec(), edit_op_invoke(), and SCULPT_OT_face_sets_edit().
|
static |
Definition at line 1504 of file sculpt_face_set.cc.
References BKE_sculpt_update_object_for_edit(), 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 1553 of file sculpt_face_set.cc.
References active_face_set_get(), BKE_base_is_visible(), BKE_sculpt_update_object_for_edit(), CTX_data_active_base(), CTX_data_active_object(), CTX_data_depsgraph_pointer(), CTX_wm_view3d(), depsgraph, edit_op_exec(), edit_op_invoke(), float, wmEvent::mval, OPERATOR_CANCELLED, wmOperator::ptr, RNA_int_set(), and SCULPT_cursor_geometry_info_update().
Referenced by edit_op_invoke(), and SCULPT_OT_face_sets_edit().
Definition at line 177 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(), ensure_face_sets_bmesh(), and BMesh::pdata.
Referenced by ensure_face_sets_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 165 of file sculpt_face_set.cc.
References blender::bke::MutableAttributeAccessor::add(), and ensure_face_sets_mesh().
Referenced by ensure_face_sets_mesh(), face_sets_update(), init_flood_fill(), init_op_exec(), and blender::ed::sculpt_paint::undo::restore_face_set_from_undo_step().
|
static |
Definition at line 897 of file sculpt_face_set.cc.
References blender::MutableSpan< T >::as_span(), depsgraph, face_hide_update(), blender::bke::SpanAttributeWriter< T >::finish(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::gather_data_mesh(), blender::index_mask::IndexMask::is_empty(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::index_mask::IndexMask::min_array_size(), blender::bke::pbvh::Tree::nodes(), blender::ed::sculpt_paint::scatter_data_mesh(), blender::bke::SpanAttributeWriter< T >::span, SculptSession::subdiv_ccg, 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 283 of file sculpt_face_set.cc.
References blender::MutableSpan< T >::as_span(), depsgraph, ensure_face_sets_mesh(), face_sets_update(), blender::bke::SpanAttributeWriter< T >::finish(), blender::index_mask::IndexMask::foreach_index(), blender::ed::sculpt_paint::gather_data_mesh(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::pbvh::Tree::nodes(), blender::bke::pbvh::Tree::nodes_num(), 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 260 of file sculpt_face_set.cc.
References BLI_assert, filter_verts_with_unique_face_sets_bmesh(), blender::MutableSpan< T >::size(), 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 224 of file sculpt_face_set.cc.
References BKE_subdiv_ccg_key_top_level(), BLI_assert, CCG_grid_xy_to_index(), filter_verts_with_unique_face_sets_grids(), CCGKey::grid_area, SubdivCCGCoord::grid_index, CCGKey::grid_size, blender::Span< T >::index_range(), blender::MutableSpan< T >::size(), blender::Span< T >::size(), x, 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 209 of file sculpt_face_set.cc.
References BLI_assert, filter_verts_with_unique_face_sets_mesh(), blender::MutableSpan< T >::size(), and verts.
Referenced by blender::ed::sculpt_paint::filter::calc_relax_face_sets_filter(), and filter_verts_with_unique_face_sets_mesh().
Definition at line 75 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::pbvh::Mesh, blender::threading::parallel_reduce(), blender::bke::object::pbvh_get(), BMesh::pdata, and POINTER_OFFSET.
Referenced by create_op_exec(), blender::ed::sculpt_paint::do_brush_action(), blender::ed::sculpt_paint::trim::gesture_end(), and blender::ed::sculpt_paint::init_sculpt_mode_session().
| 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 683 of file sculpt_face_set.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), gather_hidden_face_sets(), 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 1736 of file sculpt_face_set.cc.
References BKE_pbvh_bmesh_node_faces(), bm, SculptSession::bm, BM_ELEM_CD_SET_INT, BM_elem_flag_test, BM_ELEM_HIDDEN, BM_face_calc_center_median(), CD_PROP_INT32, CustomData_get_offset_named(), depsgraph, ViewContext::depsgraph, blender::index_mask::IndexMask::foreach_index(), gesture_apply_bmesh(), 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, BMesh::pdata, blender::ed::sculpt_paint::gesture::GestureData::ss, 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 gesture_apply_bmesh(), gesture_apply_for_symmetry_pass(), gesture_apply_mesh(), blender::ed::sculpt_paint::gesture::GestureData::node_mask, ViewContext::obact, and blender::ed::sculpt_paint::gesture::GestureData::vc.
Referenced by gesture_apply_for_symmetry_pass(), and init_operation().
|
static |
Definition at line 1656 of file sculpt_face_set.cc.
References depsgraph, ViewContext::depsgraph, blender::index_mask::IndexMask::foreach_index(), gesture_apply_mesh(), blender::Span< T >::is_empty(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::ed::sculpt_paint::face_set::FaceSetOperation::new_face_set_id, blender::bke::pbvh::Tree::nodes(), blender::bke::pbvh::Tree::nodes_num(), ViewContext::obact, blender::ed::sculpt_paint::gesture::GestureData::operation, 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(), and blender::ed::sculpt_paint::gesture::GestureData::vc.
Referenced by gesture_apply_for_symmetry_pass(), and gesture_apply_mesh().
|
static |
Definition at line 1648 of file sculpt_face_set.cc.
References BKE_sculpt_update_object_for_edit(), CTX_data_depsgraph_pointer(), CTX_data_scene(), depsgraph, gesture_begin(), ViewContext::obact, 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 gesture_box_exec(), 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(), 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, 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 gesture_lasso_exec(), 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(), 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 gesture_line_exec(), 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(), 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 gesture_polyline_exec(), 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(), 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 611 of file sculpt_face_set.cc.
References Object::data, SculptSession::edge_to_face_indices, SculptSession::edge_to_face_map, SculptSession::edge_to_face_offsets, ensure_face_sets_mesh(), blender::bke::SpanAttributeWriter< T >::finish(), gather_hidden_face_sets(), init_flood_fill(), blender::Span< T >::is_empty(), 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 699 of file sculpt_face_set.cc.
References BKE_base_is_visible(), BKE_sculpt_update_object_for_edit(), 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(), ensure_face_sets_mesh(), blender::bke::SpanAttributeWriter< T >::finish(), init_flood_fill(), init_op_exec(), blender::index_mask::IndexMask::is_empty(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), SCULPT_tag_update_overlays(), blender::bke::SpanAttributeWriter< T >::span, blender::bke::pbvh::Tree::tag_face_sets_changed(), and blender::bke::pbvh::Tree::type().
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, gesture_apply_for_symmetry_pass(), gesture_begin(), gesture_end(), init_operation(), 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().
Definition at line 120 of file sculpt_face_set.cc.
References blender::bke::SpanAttributeWriter< T >::finish(), initialize_none_to_id(), 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(), and initialize_none_to_id().
|
static |
Definition at line 1143 of file sculpt_face_set.cc.
References BKE_base_is_visible(), BLI_hash_int_01(), clamp_i(), CTX_data_active_base(), CTX_data_active_object(), CTX_wm_view3d(), Object::data, max_ii(), OPERATOR_CANCELLED, OPERATOR_FINISHED, 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 320 of file sculpt.cc.
References 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 wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gesture_box_exec(), gesture_box_invoke(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, ot, wmOperatorType::poll, 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 1110 of file sculpt_face_set.cc.
References change_visibility_exec(), change_visibility_invoke(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, int, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), SCULPT_mode_poll(), SCULPT_OT_face_set_change_visibility(), and wmOperatorType::srna.
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 wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gesture_lasso_exec(), gesture_lasso_invoke(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_DEPENDS_ON_CURSOR, ot, wmOperatorType::poll, 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 wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gesture_line_exec(), gesture_line_invoke(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, ot, wmOperatorType::poll, 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 wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, gesture_polyline_exec(), gesture_polyline_invoke(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_DEPENDS_ON_CURSOR, ot, wmOperatorType::poll, 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 561 of file sculpt_face_set.cc.
References create_op_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, int, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), SCULPT_mode_poll(), SCULPT_OT_face_sets_create(), and wmOperatorType::srna.
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 1579 of file sculpt_face_set.cc.
References wmOperatorType::description, edit_op_exec(), edit_op_invoke(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, int, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_DEPENDS_ON_CURSOR, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_HIDDEN, RNA_def_boolean(), RNA_def_enum(), RNA_def_float(), RNA_def_int(), RNA_def_property_flag(), SCULPT_mode_poll(), SCULPT_OT_face_sets_edit(), and wmOperatorType::srna.
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 824 of file sculpt_face_set.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, init_op_exec(), int, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), RNA_def_float(), SCULPT_mode_poll(), SCULPT_OT_face_sets_init(), and wmOperatorType::srna.
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 1184 of file sculpt_face_set.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, 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 968 of file sculpt_face_set.cc.
References BLI_assert_unreachable, depsgraph, 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 232 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(), and blender::ed::sculpt_paint::mask::sculpt_mask_init_exec().
Definition at line 249 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 243 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 254 of file sculpt.cc.
References 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::auto_mask::calc_face_factors(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), and edit_fairing().
| 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 279 of file sculpt.cc.
References BM_ELEM_CD_GET_INT, BM_FACES_OF_VERT, and BM_ITER_ELEM.
| 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 267 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 294 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(), and vert_has_unique_face_set().
| 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 353 of file sculpt.cc.
References BKE_subdiv_ccg_coarse_mesh_adjacency_info_get(), BLI_assert_unreachable, 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().