|
Blender V5.3
|
Classes | |
| struct | FilterLocalData |
| struct | LocalData |
| struct | MaskOperation |
Enumerations | |
| enum class | FilterType { Smooth = 0 , Sharpen = 1 , Grow = 2 , Shrink = 3 , ContrastIncrease = 5 , ContrastDecrease = 6 } |
| enum class | InitMode { Random , FaceSet , Island } |
Functions | |
| void | write_mask_mesh (const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask, FunctionRef< void(MutableSpan< float >, Span< int >)> write_fn) |
| static BLI_NOINLINE void | copy_old_hidden_mask_mesh (const Span< int > verts, const Span< bool > hide_vert, const Span< float > mask, const MutableSpan< float > new_mask) |
| static BLI_NOINLINE void | multiply_add (const Span< float > src, const float factor, const float offset, const MutableSpan< float > dst) |
| static BLI_NOINLINE void | mask_increase_contrast (const Span< float > src, const MutableSpan< float > dst) |
| static BLI_NOINLINE void | mask_decrease_contrast (const Span< float > src, const MutableSpan< float > dst) |
| static BLI_NOINLINE void | sharpen_masks (const Span< float > old_masks, const MutableSpan< float > new_mask) |
| static void | apply_new_mask_mesh (const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask, const OffsetIndices< int > node_verts, const Span< float > new_mask, MutableSpan< float > mask) |
| static void | smooth_mask_mesh (const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face, const Span< bool > hide_poly, const Span< bool > hide_vert, const Span< float > mask, const bke::pbvh::MeshNode &node, FilterLocalData &tls, MutableSpan< float > new_mask) |
| static void | sharpen_mask_mesh (const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face, const Span< bool > hide_poly, const Span< bool > hide_vert, const Span< float > mask, const bke::pbvh::MeshNode &node, FilterLocalData &tls, MutableSpan< float > new_mask) |
| static void | grow_mask_mesh (const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face, const Span< bool > hide_poly, const Span< bool > hide_vert, const Span< float > mask, const bke::pbvh::MeshNode &node, FilterLocalData &tls, MutableSpan< float > new_mask) |
| static void | shrink_mask_mesh (const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face, const Span< bool > hide_poly, const Span< bool > hide_vert, const Span< float > mask, const bke::pbvh::MeshNode &node, FilterLocalData &tls, MutableSpan< float > new_mask) |
| static bool | increase_contrast_mask_mesh (const Depsgraph &depsgraph, const Object &object, const Span< bool > hide_vert, bke::pbvh::MeshNode &node, MutableSpan< float > mask) |
| static bool | decrease_contrast_mask_mesh (const Depsgraph &depsgraph, const Object &object, const Span< bool > hide_vert, bke::pbvh::MeshNode &node, MutableSpan< float > mask) |
| static BLI_NOINLINE void | copy_old_hidden_mask_grids (const SubdivCCG &subdiv_ccg, const Span< int > grids, const MutableSpan< float > new_mask) |
| static void | apply_new_mask_grids (const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask, const OffsetIndices< int > node_verts, const Span< float > new_mask) |
| static void | smooth_mask_grids (const SubdivCCG &subdiv_ccg, const bke::pbvh::GridsNode &node, FilterLocalData &tls, MutableSpan< float > new_mask) |
| static void | sharpen_mask_grids (const SubdivCCG &subdiv_ccg, const bke::pbvh::GridsNode &node, FilterLocalData &tls, MutableSpan< float > new_mask) |
| static void | grow_mask_grids (const SubdivCCG &subdiv_ccg, const bke::pbvh::GridsNode &node, MutableSpan< float > new_mask) |
| static void | shrink_mask_grids (const SubdivCCG &subdiv_ccg, const bke::pbvh::GridsNode &node, MutableSpan< float > new_mask) |
| static bool | increase_contrast_mask_grids (const Depsgraph &depsgraph, const Object &object, bke::pbvh::GridsNode &node, FilterLocalData &tls) |
| static bool | decrease_contrast_mask_grids (const Depsgraph &depsgraph, const Object &object, bke::pbvh::GridsNode &node, FilterLocalData &tls) |
| static BLI_NOINLINE void | copy_old_hidden_mask_bmesh (const int mask_offset, const Set< BMVert *, 0 > &verts, const MutableSpan< float > new_mask) |
| static void | apply_new_mask_bmesh (const Depsgraph &depsgraph, Object &object, const int mask_offset, const IndexMask &node_mask, const OffsetIndices< int > node_verts, const Span< float > new_mask) |
| static void | smooth_mask_bmesh (const BMesh &bm, const int mask_offset, bke::pbvh::BMeshNode &node, FilterLocalData &tls, MutableSpan< float > new_mask) |
| static void | sharpen_mask_bmesh (const BMesh &bm, const int mask_offset, bke::pbvh::BMeshNode &node, FilterLocalData &tls, MutableSpan< float > new_mask) |
| static void | grow_mask_bmesh (const int mask_offset, bke::pbvh::BMeshNode &node, MutableSpan< float > new_mask) |
| static void | shrink_mask_bmesh (const int mask_offset, bke::pbvh::BMeshNode &node, MutableSpan< float > new_mask) |
| static bool | increase_contrast_mask_bmesh (const Depsgraph &depsgraph, Object &object, const int mask_offset, bke::pbvh::BMeshNode &node, FilterLocalData &tls) |
| static bool | decrease_contrast_mask_bmesh (const Depsgraph &depsgraph, Object &object, const int mask_offset, bke::pbvh::BMeshNode &node, FilterLocalData &tls) |
| static wmOperatorStatus | sculpt_mask_filter_exec (bContext *C, wmOperator *op) |
| void | SCULPT_OT_mask_filter (wmOperatorType *ot) |
| void | SCULPT_OT_mask_init (wmOperatorType *ot) |
| static void | init_mask_grids (Main &bmain, Scene &scene, Depsgraph &depsgraph, Object &object, const IndexMask &node_mask, FunctionRef< void(const BitGroupVector<> &, int, MutableSpan< float >)> write_fn) |
| static wmOperatorStatus | sculpt_mask_init_exec (bContext *C, wmOperator *op) |
Public API | |
| Array< float > | duplicate_mask (const Object &object) |
| void | mix_new_masks (const Span< float > new_masks, const float factor, const MutableSpan< float > masks) |
| void | mix_new_masks (const Span< float > new_masks, const Span< float > factors, const MutableSpan< float > masks) |
| void | clamp_mask (const MutableSpan< float > masks) |
| void | invert_mask (const MutableSpan< float > masks) |
| void | gather_mask_bmesh (const BMesh &bm, const Set< BMVert *, 0 > &verts, const MutableSpan< float > r_mask) |
| void | gather_mask_grids (const SubdivCCG &subdiv_ccg, const Span< int > grids, const MutableSpan< float > r_mask) |
| void | scatter_mask_grids (const Span< float > mask, SubdivCCG &subdiv_ccg, const Span< int > grids) |
| void | scatter_mask_bmesh (const Span< float > mask, const BMesh &bm, const Set< BMVert *, 0 > &verts) |
| static float | average_masks (const int mask_offset, const Span< const BMVert * > verts) |
| void | average_neighbor_mask_bmesh (const int mask_offset, const Set< BMVert *, 0 > &verts, const MutableSpan< float > new_masks) |
| void | update_mask_mesh (const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask, FunctionRef< void(MutableSpan< float >, Span< int >)> update_fn) |
| bool | mask_equals_array_grids (const Span< float > masks, const CCGKey &key, const Span< int > grids, const Span< float > values) |
| bool | mask_equals_array_bmesh (const int mask_offset, const Set< BMVert *, 0 > &verts, const Span< float > values) |
Gesture-based Mask Operators | |
Operators that act upon a user-selected area. | |
| static void | gesture_begin (bContext &C, wmOperator &op, gesture::GestureData &gesture_data) |
| static float | mask_gesture_get_new_value (const float elem, FloodFillMode mode, float value) |
| static void | gesture_apply_for_symmetry_pass (bContext &, gesture::GestureData &gesture_data) |
| static void | gesture_end (bContext &C, gesture::GestureData &gesture_data) |
| static void | init_operation (bContext &C, gesture::GestureData &gesture_data, wmOperator &op) |
| static void | gesture_operator_properties (wmOperatorType *ot) |
| static wmOperatorStatus | gesture_box_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | gesture_lasso_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | gesture_line_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | gesture_polyline_exec (bContext *C, wmOperator *op) |
| void | PAINT_OT_mask_lasso_gesture (wmOperatorType *ot) |
| void | PAINT_OT_mask_box_gesture (wmOperatorType *ot) |
| void | PAINT_OT_mask_line_gesture (wmOperatorType *ot) |
| void | PAINT_OT_mask_polyline_gesture (wmOperatorType *ot) |
Mask By Color | |
| static float | color_delta_get (const float3 &color_a, const float3 &color_b, const float threshold, const bool invert) |
| static float | final_mask_get (const float current_mask, const float new_mask, const bool invert, const bool preserve_mask) |
| static void | mask_by_color_contiguous_mesh (const Depsgraph &depsgraph, Object &object, const int vert, const float threshold, const bool invert, const bool preserve_mask) |
| static void | mask_by_color_full_mesh (const Depsgraph &depsgraph, Object &object, const int vert, const float threshold, const bool invert, const bool preserve_mask) |
| static wmOperatorStatus | mask_by_color (bContext *C, wmOperator *op, const float2 region_location) |
| static wmOperatorStatus | mask_by_color_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | mask_by_color_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | SCULPT_OT_mask_by_color (wmOperatorType *ot) |
Global Mask Operators | |
Operators that act upon the entirety of a given object's mesh. | |
| enum class | FloodFillMode { Value = SEL_OP_SUB , InverseValue = SEL_OP_ADD , InverseMeshValue = SEL_OP_XOR } |
| static const EnumPropertyItem | mode_items [] |
| static Span< int > | get_hidden_verts (const bke::pbvh::MeshNode &node, const Span< bool > hide_vert, Vector< int > &indices) |
| static bool | try_remove_mask_mesh (const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask) |
| static void | fill_mask_mesh (const Depsgraph &depsgraph, Object &object, const float value, const IndexMask &node_mask) |
| static void | fill_mask_grids (Main &bmain, const Scene &scene, Depsgraph &depsgraph, Object &object, const float value, const IndexMask &node_mask) |
| static void | fill_mask_bmesh (const Depsgraph &depsgraph, Object &object, const float value, const IndexMask &node_mask) |
| static void | fill_mask (Main &bmain, const Scene &scene, Depsgraph &depsgraph, Object &object, const float value) |
| static void | invert_mask_grids (Main &bmain, const Scene &scene, Depsgraph &depsgraph, Object &object, const IndexMask &node_mask) |
| static void | invert_mask_bmesh (const Depsgraph &depsgraph, Object &object, const IndexMask &node_mask) |
| static void | invert_mask (Main &bmain, const Scene &scene, Depsgraph &depsgraph, Object &object) |
| static wmOperatorStatus | mask_flood_fill_exec (bContext *C, wmOperator *op) |
| void | PAINT_OT_mask_flood_fill (wmOperatorType *ot) |
Mask from Cavity | |
| enum class | ApplyMaskMode : int8_t { Mix , Multiply , Divide , Add , Subtract } |
| enum class | MaskSettingsSource : int8_t { Operator , Scene , Brush } |
| enum class | MaskBoundaryMode : int8_t { Mesh , FaceSets } |
| static EnumPropertyItem | mix_modes [] |
| static EnumPropertyItem | settings_sources [] |
| static void | calc_new_masks (const ApplyMaskMode mode, const Span< float > node_mask, const MutableSpan< float > new_mask) |
| static void | apply_mask_mesh (const Depsgraph &depsgraph, const Object &object, const Span< bool > hide_vert, const auto_mask::Cache &automasking, const ApplyMaskMode mode, const float factor, const bke::pbvh::MeshNode &node, LocalData &tls, const MutableSpan< float > mask) |
| static void | apply_mask_grids (const Depsgraph &depsgraph, Object &object, const auto_mask::Cache &automasking, const ApplyMaskMode mode, const float factor, const bke::pbvh::GridsNode &node, LocalData &tls) |
| static void | apply_mask_bmesh (const Depsgraph &depsgraph, Object &object, const auto_mask::Cache &automasking, const ApplyMaskMode mode, const float factor, bke::pbvh::BMeshNode &node, LocalData &tls) |
| static void | apply_mask_from_settings (const Depsgraph &depsgraph, Object &object, bke::pbvh::Tree &pbvh, const IndexMask &node_mask, const auto_mask::Cache &automasking, const ApplyMaskMode mode, const float factor) |
| static wmOperatorStatus | mask_from_cavity_exec (bContext *C, wmOperator *op) |
| static void | mask_from_cavity_ui (bContext *C, wmOperator *op) |
| static void | SCULPT_OT_mask_from_cavity (wmOperatorType *ot) |
| static wmOperatorStatus | mask_from_boundary_exec (bContext *C, wmOperator *op) |
| static void | mask_from_boundary_ui (bContext *C, wmOperator *op) |
| static void | SCULPT_OT_mask_from_boundary (wmOperatorType *ot) |
|
strong |
| Enumerator | |
|---|---|
| Mix | |
| Multiply | |
| Divide | |
| Add | |
| Subtract | |
Definition at line 776 of file mesh/sculpt_ops.cc.
|
strong |
| Enumerator | |
|---|---|
| Smooth | |
| Sharpen | |
| Grow | |
| Shrink | |
| ContrastIncrease | |
| ContrastDecrease | |
Definition at line 40 of file sculpt_filter_mask.cc.
|
strong |
| Enumerator | |
|---|---|
| Value | |
| InverseValue | |
| InverseMeshValue | |
Definition at line 317 of file paint_mask.cc.
|
strong |
| Enumerator | |
|---|---|
| Random | |
| FaceSet | |
| Island | |
Definition at line 43 of file sculpt_mask_init.cc.
|
strong |
| Enumerator | |
|---|---|
| Mesh | |
| FaceSets | |
Definition at line 1227 of file mesh/sculpt_ops.cc.
|
strong |
| Enumerator | |
|---|---|
| Operator | |
| Scene | |
| Brush | |
Definition at line 793 of file mesh/sculpt_ops.cc.
|
static |
Definition at line 913 of file mesh/sculpt_ops.cc.
References apply_mask_bmesh(), blender::MutableSpan< T >::as_span(), blender::BKE_pbvh_bmesh_node_unique_verts(), blender::SculptSession::bm, calc_new_masks(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::mask::LocalData::factors, blender::MutableSpan< T >::fill(), blender::ed::sculpt_paint::fill_factor_from_hide(), gather_mask_bmesh(), invert_mask(), blender::ed::sculpt_paint::mask::LocalData::mask, mix_new_masks(), blender::ed::sculpt_paint::mask::LocalData::new_mask, node, lexit::Vector< T >::resize(), blender::ed::sculpt_paint::scale_factors(), scatter_mask_bmesh(), and blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size().
Referenced by apply_mask_bmesh(), and apply_mask_from_settings().
|
static |
Definition at line 946 of file mesh/sculpt_ops.cc.
References apply_mask_bmesh(), apply_mask_from_settings(), apply_mask_grids(), apply_mask_mesh(), blender::BKE_subdiv_ccg_key_top_level(), blender::bke::pbvh::BMesh, blender::CD_PROP_FLOAT, blender::CustomData_get_offset_named(), blender::data, blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::bke::pbvh::Grids, blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::SubdivCCG::masks, blender::bke::pbvh::Mesh, blender::bke::pbvh::node_update_mask_bmesh(), blender::bke::pbvh::node_update_mask_grids(), blender::bke::pbvh::node_update_mask_mesh(), and blender::bke::Point.
Referenced by apply_mask_from_settings(), mask_from_boundary_exec(), and mask_from_cavity_exec().
|
static |
Definition at line 876 of file mesh/sculpt_ops.cc.
References apply_mask_grids(), blender::MutableSpan< T >::as_span(), blender::BKE_subdiv_ccg_key_top_level(), blender::ed::sculpt_paint::auto_mask::calc_grids_factors(), calc_new_masks(), blender::ed::sculpt_paint::mask::LocalData::factors, blender::MutableSpan< T >::fill(), blender::ed::sculpt_paint::fill_factor_from_hide(), gather_mask_grids(), blender::CCGKey::grid_area, invert_mask(), blender::ed::sculpt_paint::mask::LocalData::mask, mix_new_masks(), blender::ed::sculpt_paint::mask::LocalData::new_mask, node, lexit::Vector< T >::resize(), blender::ed::sculpt_paint::scale_factors(), scatter_mask_grids(), blender::Span< T >::size(), and blender::SculptSession::subdiv_ccg.
Referenced by apply_mask_from_settings(), and apply_mask_grids().
|
static |
Definition at line 842 of file mesh/sculpt_ops.cc.
References apply_mask_mesh(), blender::MutableSpan< T >::as_span(), calc_new_masks(), blender::ed::sculpt_paint::auto_mask::calc_vert_factors(), blender::ed::sculpt_paint::mask::LocalData::factors, blender::MutableSpan< T >::fill(), blender::ed::sculpt_paint::fill_factor_from_hide(), blender::ed::sculpt_paint::gather_data_mesh(), invert_mask(), blender::ed::sculpt_paint::mask::LocalData::mask, mix_new_masks(), blender::ed::sculpt_paint::mask::LocalData::new_mask, node, lexit::Vector< T >::resize(), blender::ed::sculpt_paint::scale_factors(), blender::ed::sculpt_paint::scatter_data_mesh(), and blender::Span< T >::size().
Referenced by apply_mask_from_settings(), and apply_mask_mesh().
|
static |
Definition at line 568 of file sculpt_filter_mask.cc.
References apply_new_mask_bmesh(), blender::BKE_pbvh_bmesh_node_unique_verts(), blender::bm, blender::SculptSession::bm, blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_bools(), blender::exec_mode::grain_size(), blender::ed::sculpt_paint::undo::Mask, mask_equals_array_bmesh(), blender::index_mask::IndexMask::min_array_size(), blender::bke::pbvh::node_update_mask_bmesh(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_node(), scatter_mask_bmesh(), and blender::Span< T >::slice().
Referenced by apply_new_mask_bmesh(), and sculpt_mask_filter_exec().
|
static |
Definition at line 347 of file sculpt_filter_mask.cc.
References apply_new_mask_grids(), blender::BKE_subdiv_ccg_average_grids(), blender::BKE_subdiv_ccg_key_top_level(), blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_bools(), blender::exec_mode::grain_size(), blender::ed::sculpt_paint::undo::Mask, mask_equals_array_grids(), blender::index_mask::IndexMask::min_array_size(), blender::bke::pbvh::node_update_mask_grids(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_node(), blender::ed::sculpt_paint::scatter_data_grids(), blender::Span< T >::slice(), and blender::SculptSession::subdiv_ccg.
Referenced by apply_new_mask_grids(), and sculpt_mask_filter_exec().
|
static |
Definition at line 128 of file sculpt_filter_mask.cc.
References apply_new_mask_mesh(), blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_bools(), blender::exec_mode::grain_size(), blender::array_utils::indexed_data_equal(), blender::ed::sculpt_paint::undo::Mask, blender::index_mask::IndexMask::min_array_size(), blender::bke::pbvh::node_update_mask_mesh(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_node(), blender::ed::sculpt_paint::scatter_data_mesh(), and blender::Span< T >::slice().
Referenced by apply_new_mask_mesh(), and sculpt_mask_filter_exec().
|
static |
Definition at line 176 of file paint_mask.cc.
References average_masks(), BM_ELEM_CD_GET_FLOAT, float, and blender::Span< T >::size().
Referenced by average_masks(), and average_neighbor_mask_bmesh().
| void blender::ed::sculpt_paint::mask::average_neighbor_mask_bmesh | ( | const int | mask_offset, |
| const Set< BMVert *, 0 > & | verts, | ||
| const MutableSpan< float > | new_masks ) |
Definition at line 185 of file paint_mask.cc.
References average_masks(), average_neighbor_mask_bmesh(), and blender::ed::sculpt_paint::vert_neighbors_get_bmesh().
Referenced by average_neighbor_mask_bmesh(), sharpen_mask_bmesh(), and smooth_mask_bmesh().
|
static |
Definition at line 811 of file mesh/sculpt_ops.cc.
References Add, calc_new_masks(), clamp_mask(), Divide, blender::Span< T >::index_range(), Mix, Multiply, and Subtract.
Referenced by apply_mask_bmesh(), apply_mask_grids(), apply_mask_mesh(), and calc_new_masks().
| void blender::ed::sculpt_paint::mask::clamp_mask | ( | const MutableSpan< float > | masks | ) |
Definition at line 117 of file paint_mask.cc.
References clamp_mask().
Referenced by blender::ed::sculpt_paint::expand::calc_new_mask_mesh(), calc_new_masks(), clamp_mask(), mask_decrease_contrast(), mask_increase_contrast(), sharpen_masks(), smooth_mask_bmesh(), smooth_mask_grids(), and smooth_mask_mesh().
|
static |
Definition at line 541 of file mesh/sculpt_ops.cc.
References color_delta_get(), blender::math::distance(), invert(), len(), and MASK_BY_COLOR_SLOPE.
Referenced by color_delta_get(), mask_by_color_contiguous_mesh(), and mask_by_color_full_mesh().
|
static |
Definition at line 555 of file sculpt_filter_mask.cc.
References BLI_NOINLINE, BM_ELEM_CD_GET_FLOAT, BM_elem_flag_test, blender::BM_ELEM_HIDDEN, and copy_old_hidden_mask_bmesh().
Referenced by copy_old_hidden_mask_bmesh(), decrease_contrast_mask_bmesh(), grow_mask_bmesh(), increase_contrast_mask_bmesh(), sharpen_mask_bmesh(), shrink_mask_bmesh(), and smooth_mask_bmesh().
|
static |
Definition at line 329 of file sculpt_filter_mask.cc.
References blender::BKE_subdiv_ccg_key_top_level(), BLI_NOINLINE, copy_old_hidden_mask_grids(), blender::bits::foreach_1_index(), blender::SubdivCCG::grid_hidden, blender::bke::ccg::grid_range(), blender::Span< T >::index_range(), blender::bits::BitGroupVector< InlineBufferCapacity, Allocator >::is_empty(), blender::SubdivCCG::masks, blender::MutableSpan< T >::slice(), and blender::Span< T >::slice().
Referenced by copy_old_hidden_mask_grids(), decrease_contrast_mask_grids(), grow_mask_grids(), increase_contrast_mask_grids(), sharpen_mask_grids(), shrink_mask_grids(), and smooth_mask_grids().
|
static |
Definition at line 49 of file sculpt_filter_mask.cc.
References blender::BLI_assert(), BLI_NOINLINE, copy_old_hidden_mask_mesh(), blender::Span< T >::index_range(), blender::Span< T >::is_empty(), blender::MutableSpan< T >::size(), and blender::Span< T >::size().
Referenced by copy_old_hidden_mask_mesh(), decrease_contrast_mask_mesh(), grow_mask_mesh(), increase_contrast_mask_mesh(), sharpen_mask_mesh(), shrink_mask_mesh(), and smooth_mask_mesh().
|
static |
Definition at line 707 of file sculpt_filter_mask.cc.
References blender::MutableSpan< T >::as_span(), blender::BKE_pbvh_bmesh_node_unique_verts(), blender::bm, blender::SculptSession::bm, copy_old_hidden_mask_bmesh(), decrease_contrast_mask_bmesh(), gather_mask_bmesh(), blender::ed::sculpt_paint::undo::Mask, mask_decrease_contrast(), blender::ed::sculpt_paint::mask::FilterLocalData::new_mask, node, blender::ed::sculpt_paint::mask::FilterLocalData::node_mask, blender::bke::pbvh::node_update_mask_bmesh(), blender::ed::sculpt_paint::undo::push_node(), lexit::Vector< T >::resize(), scatter_mask_bmesh(), and blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size().
Referenced by decrease_contrast_mask_bmesh(), and sculpt_mask_filter_exec().
|
static |
Definition at line 523 of file sculpt_filter_mask.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::MutableSpan< T >::as_span(), blender::BKE_subdiv_ccg_key_top_level(), copy_old_hidden_mask_grids(), decrease_contrast_mask_grids(), blender::ed::sculpt_paint::gather_data_grids(), blender::CCGKey::grid_area, blender::ed::sculpt_paint::undo::Mask, mask_decrease_contrast(), blender::SubdivCCG::masks, blender::ed::sculpt_paint::mask::FilterLocalData::new_mask, node, blender::ed::sculpt_paint::mask::FilterLocalData::node_mask, blender::bke::pbvh::node_update_mask_grids(), blender::ed::sculpt_paint::undo::push_node(), lexit::Vector< T >::resize(), blender::ed::sculpt_paint::scatter_data_grids(), blender::Span< T >::size(), and blender::SculptSession::subdiv_ccg.
Referenced by decrease_contrast_mask_grids(), and sculpt_mask_filter_exec().
|
static |
Definition at line 303 of file sculpt_filter_mask.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), copy_old_hidden_mask_mesh(), decrease_contrast_mask_mesh(), blender::ed::sculpt_paint::gather_data_mesh(), blender::ed::sculpt_paint::undo::Mask, mask_decrease_contrast(), node, blender::bke::pbvh::node_update_mask_mesh(), blender::ed::sculpt_paint::hide::node_visible_verts(), blender::ed::sculpt_paint::undo::push_node(), blender::ed::sculpt_paint::scatter_data_mesh(), and blender::Span< T >::size().
Referenced by decrease_contrast_mask_mesh(), and sculpt_mask_filter_exec().
Definition at line 56 of file paint_mask.cc.
References BLI_assert_unreachable, blender::bm, blender::SculptSession::bm, BM_ELEM_CD_GET_FLOAT, blender::BM_vert_at_index(), blender::bke::pbvh::BMesh, blender::CD_PROP_FLOAT, blender::CustomData_get_offset_named(), blender::data, duplicate_mask(), blender::bke::pbvh::Grids, blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::bke::AttributeAccessor::lookup_or_default(), blender::SubdivCCG::masks, blender::bke::pbvh::Mesh, blender::bke::object::pbvh_get(), blender::bke::Point, blender::SubdivCCG::positions, blender::result, blender::Array< T, InlineBufferCapacity, Allocator >::size(), blender::SculptSession::subdiv_ccg, blender::BMesh::totvert, blender::BMesh::vdata, and blender::ed::sculpt_paint::vert_random_access_ensure().
Referenced by duplicate_mask(), and blender::ed::sculpt_paint::expand::original_state_store().
|
static |
Definition at line 592 of file paint_mask.cc.
References blender::bke::pbvh::all_leaf_nodes(), blender::bke::pbvh::BMesh, fill_mask(), fill_mask_bmesh(), fill_mask_grids(), fill_mask_mesh(), blender::bke::pbvh::Grids, blender::bke::pbvh::Mesh, and blender::bke::object::pbvh_get().
Referenced by fill_mask(), and mask_flood_fill_exec().
|
static |
Definition at line 540 of file paint_mask.cc.
References blender::BKE_pbvh_bmesh_node_unique_verts(), blender::BKE_pbvh_node_fully_masked_set(), blender::BKE_pbvh_node_fully_unmasked_set(), BLI_assert_unreachable, blender::bm, blender::SculptSession::bm, BM_ELEM_CD_GET_FLOAT, BM_ELEM_CD_SET_FLOAT, BM_elem_flag_test, blender::BM_ELEM_HIDDEN, blender::CD_PROP_FLOAT, blender::CustomData_get_offset_named(), fill_mask_bmesh(), blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_bools(), blender::exec_mode::grain_size(), blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::ed::sculpt_paint::undo::Mask, blender::index_mask::IndexMask::min_array_size(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_nodes(), and blender::BMesh::vdata.
Referenced by fill_mask(), and fill_mask_bmesh().
|
static |
Definition at line 468 of file paint_mask.cc.
References blender::Span< T >::begin(), blender::BKE_sculpt_mask_layers_ensure(), blender::BKE_sculpt_multires_active(), blender::BKE_subdiv_ccg_key_top_level(), blender::Span< T >::end(), blender::MutableSpan< T >::fill(), fill_mask_grids(), blender::bits::foreach_0_index(), blender::index_mask::IndexMask::foreach_index(), blender::bke::ccg::grid_range(), blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::bits::BitGroupVector< InlineBufferCapacity, Allocator >::is_empty(), blender::ed::sculpt_paint::undo::Mask, blender::SubdivCCG::masks, blender::index_mask::IndexMask::min_array_size(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_node(), blender::MutableSpan< T >::slice(), and blender::SculptSession::subdiv_ccg.
Referenced by fill_mask(), and fill_mask_grids().
|
static |
Definition at line 421 of file paint_mask.cc.
References blender::Span< T >::begin(), blender::BKE_pbvh_node_fully_masked_set(), blender::BKE_pbvh_node_fully_unmasked_set(), blender::data, blender::Span< T >::end(), fill_mask_mesh(), blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_bools(), blender::exec_mode::grain_size(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::ed::sculpt_paint::undo::Mask, blender::index_mask::IndexMask::min_array_size(), blender::ed::sculpt_paint::hide::node_visible_verts(), blender::bke::object::pbvh_get(), blender::bke::Point, blender::ed::sculpt_paint::undo::push_node(), and try_remove_mask_mesh().
Referenced by fill_mask(), and fill_mask_mesh().
|
static |
Definition at line 566 of file mesh/sculpt_ops.cc.
References final_mask_get(), and invert().
Referenced by final_mask_get(), mask_by_color_contiguous_mesh(), and mask_by_color_full_mesh().
| void blender::ed::sculpt_paint::mask::gather_mask_bmesh | ( | const BMesh & | bm, |
| const Set< BMVert *, 0 > & | verts, | ||
| const MutableSpan< float > | r_mask ) |
Definition at line 131 of file paint_mask.cc.
References blender::BLI_assert(), blender::bm, BM_ELEM_CD_GET_FLOAT, blender::CD_PROP_FLOAT, blender::CustomData_get_offset_named(), gather_mask_bmesh(), blender::MutableSpan< T >::size(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), and blender::BMesh::vdata.
Referenced by apply_mask_bmesh(), decrease_contrast_mask_bmesh(), gather_mask_bmesh(), increase_contrast_mask_bmesh(), sharpen_mask_bmesh(), and smooth_mask_bmesh().
| void blender::ed::sculpt_paint::mask::gather_mask_grids | ( | const SubdivCCG & | subdiv_ccg, |
| const Span< int > | grids, | ||
| const MutableSpan< float > | r_mask ) |
Definition at line 146 of file paint_mask.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::MutableSpan< T >::fill(), blender::ed::sculpt_paint::gather_data_grids(), gather_mask_grids(), blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), and blender::SubdivCCG::masks.
Referenced by apply_mask_grids(), and gather_mask_grids().
|
static |
Definition at line 802 of file paint_mask.cc.
References blender::BKE_pbvh_bmesh_node_unique_verts(), blender::BKE_subdiv_ccg_foreach_visible_grid_vert(), blender::BKE_subdiv_ccg_key_top_level(), blender::bm, blender::SculptSession::bm, BM_ELEM_CD_GET_FLOAT, BM_ELEM_CD_SET_FLOAT, blender::bke::pbvh::BMesh, blender::CD_PROP_FLOAT, blender::CustomData_get_offset_named(), blender::ViewContext::depsgraph, blender::ED_view3d_clipping_local(), blender::ED_view3d_clipping_test(), blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_bools(), gesture_apply_for_symmetry_pass(), blender::exec_mode::grain_size(), blender::CCGKey::grid_area, blender::bke::pbvh::Grids, blender::Span< T >::index_range(), blender::ed::sculpt_paint::gesture::is_affected(), blender::ed::sculpt_paint::undo::Mask, mask_gesture_get_new_value(), blender::bke::pbvh::Mesh, blender::index_mask::IndexMask::min_array_size(), blender::ed::sculpt_paint::mask::MaskOperation::mode, node, blender::ed::sculpt_paint::gesture::GestureData::node_mask, blender::bke::pbvh::node_update_mask_bmesh(), blender::bke::pbvh::node_update_mask_grids(), blender::ViewContext::obact, blender::ed::sculpt_paint::gesture::GestureData::operation, blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_node(), blender::ViewContext::rv3d, RV3D_CLIPPING_ENABLED, blender::ed::sculpt_paint::gesture::GestureData::ss, blender::SculptSession::subdiv_ccg, update_mask_mesh(), blender::ViewContext::v3d, blender::ed::sculpt_paint::mask::MaskOperation::value, blender::ed::sculpt_paint::gesture::GestureData::vc, blender::BMesh::vdata, blender::bke::pbvh::vert_normals_eval(), and blender::bke::pbvh::vert_positions_eval().
Referenced by gesture_apply_for_symmetry_pass(), and init_operation().
|
static |
Definition at line 780 of file paint_mask.cc.
References blender::BKE_sculptsession_update_for_edit(), C, blender::CTX_data_depsgraph_pointer(), blender::CTX_data_scene(), gesture_begin(), blender::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 960 of file paint_mask.cc.
References blender::ed::sculpt_paint::gesture::apply(), C, gesture_box_exec(), blender::ed::sculpt_paint::gesture::init_from_box(), init_operation(), blender::ed::sculpt_paint::mask_overlay_check(), blender::OPERATOR_CANCELLED, and blender::OPERATOR_FINISHED.
Referenced by gesture_box_exec(), and PAINT_OT_mask_box_gesture().
|
static |
Definition at line 915 of file paint_mask.cc.
References C, blender::CTX_data_depsgraph_pointer(), gesture_end(), blender::bke::pbvh::Grids, blender::MULTIRES_COORDS_MODIFIED, blender::multires_mark_as_modified(), blender::ViewContext::obact, blender::bke::object::pbvh_get(), 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 972 of file paint_mask.cc.
References blender::ed::sculpt_paint::gesture::apply(), C, gesture_lasso_exec(), blender::ed::sculpt_paint::gesture::init_from_lasso(), init_operation(), blender::ed::sculpt_paint::mask_overlay_check(), blender::OPERATOR_CANCELLED, and blender::OPERATOR_FINISHED.
Referenced by gesture_lasso_exec(), and PAINT_OT_mask_lasso_gesture().
|
static |
Definition at line 984 of file paint_mask.cc.
References blender::ed::sculpt_paint::gesture::apply(), C, gesture_line_exec(), blender::ed::sculpt_paint::gesture::init_from_line(), init_operation(), blender::ed::sculpt_paint::mask_overlay_check(), blender::OPERATOR_CANCELLED, and blender::OPERATOR_FINISHED.
Referenced by gesture_line_exec(), and PAINT_OT_mask_line_gesture().
|
static |
Definition at line 945 of file paint_mask.cc.
References gesture_operator_properties(), mode_items, blender::RNA_def_enum(), blender::RNA_def_float(), blender::wmOperatorType::srna, and Value.
Referenced by gesture_operator_properties(), PAINT_OT_mask_box_gesture(), PAINT_OT_mask_lasso_gesture(), PAINT_OT_mask_line_gesture(), and PAINT_OT_mask_polyline_gesture().
|
static |
Definition at line 996 of file paint_mask.cc.
References blender::ed::sculpt_paint::gesture::apply(), C, gesture_polyline_exec(), blender::ed::sculpt_paint::gesture::init_from_polyline(), init_operation(), blender::ed::sculpt_paint::mask_overlay_check(), blender::OPERATOR_CANCELLED, and blender::OPERATOR_FINISHED.
Referenced by gesture_polyline_exec(), and PAINT_OT_mask_polyline_gesture().
|
static |
Definition at line 337 of file paint_mask.cc.
References blender::Span< T >::begin(), blender::Vector< T, InlineBufferCapacity, Allocator >::begin(), blender::BKE_pbvh_node_fully_hidden_get(), blender::Span< T >::end(), get_hidden_verts(), blender::Span< T >::is_empty(), node, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), and blender::Span< T >::size().
Referenced by get_hidden_verts(), and try_remove_mask_mesh().
|
static |
Definition at line 638 of file sculpt_filter_mask.cc.
References blender::BKE_pbvh_bmesh_node_unique_verts(), BM_ELEM_CD_GET_FLOAT, copy_old_hidden_mask_bmesh(), grow_mask_bmesh(), node, and blender::ed::sculpt_paint::vert_neighbors_get_bmesh().
Referenced by grow_mask_bmesh(), and sculpt_mask_filter_exec().
|
static |
Definition at line 425 of file sculpt_filter_mask.cc.
References blender::BKE_subdiv_ccg_key_top_level(), blender::BKE_subdiv_ccg_neighbor_coords_get(), blender::CCG_grid_xy_to_index(), blender::SubdivCCGNeighbors::coords, copy_old_hidden_mask_grids(), blender::bke::ccg::grid_range(), blender::CCGKey::grid_size, grow_mask_grids(), blender::Span< T >::index_range(), blender::IndexRange::IndexRange(), blender::SubdivCCG::masks, node, blender::MutableSpan< T >::slice(), blender::Span< T >::slice(), blender::SubdivCCGCoord::to_index(), blender::x, and y.
Referenced by grow_mask_grids(), and sculpt_mask_filter_exec().
|
static |
Definition at line 219 of file sculpt_filter_mask.cc.
References blender::ed::sculpt_paint::calc_vert_neighbors(), copy_old_hidden_mask_mesh(), grow_mask_mesh(), blender::Span< T >::index_range(), blender::ed::sculpt_paint::mask::FilterLocalData::neighbor_data, blender::ed::sculpt_paint::mask::FilterLocalData::neighbor_offsets, and node.
Referenced by grow_mask_mesh(), and sculpt_mask_filter_exec().
|
static |
Definition at line 676 of file sculpt_filter_mask.cc.
References blender::MutableSpan< T >::as_span(), blender::BKE_pbvh_bmesh_node_unique_verts(), blender::bm, blender::SculptSession::bm, copy_old_hidden_mask_bmesh(), gather_mask_bmesh(), increase_contrast_mask_bmesh(), blender::ed::sculpt_paint::undo::Mask, mask_increase_contrast(), blender::ed::sculpt_paint::mask::FilterLocalData::new_mask, node, blender::ed::sculpt_paint::mask::FilterLocalData::node_mask, blender::bke::pbvh::node_update_mask_bmesh(), blender::ed::sculpt_paint::undo::push_node(), lexit::Vector< T >::resize(), scatter_mask_bmesh(), and blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size().
Referenced by increase_contrast_mask_bmesh(), and sculpt_mask_filter_exec().
|
static |
Definition at line 491 of file sculpt_filter_mask.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::MutableSpan< T >::as_span(), blender::BKE_subdiv_ccg_key_top_level(), copy_old_hidden_mask_grids(), blender::ed::sculpt_paint::gather_data_grids(), blender::CCGKey::grid_area, increase_contrast_mask_grids(), blender::ed::sculpt_paint::undo::Mask, mask_increase_contrast(), blender::SubdivCCG::masks, blender::ed::sculpt_paint::mask::FilterLocalData::new_mask, node, blender::ed::sculpt_paint::mask::FilterLocalData::node_mask, blender::bke::pbvh::node_update_mask_grids(), blender::ed::sculpt_paint::undo::push_node(), lexit::Vector< T >::resize(), blender::ed::sculpt_paint::scatter_data_grids(), blender::Span< T >::size(), and blender::SculptSession::subdiv_ccg.
Referenced by increase_contrast_mask_grids(), and sculpt_mask_filter_exec().
|
static |
Definition at line 277 of file sculpt_filter_mask.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), copy_old_hidden_mask_mesh(), blender::ed::sculpt_paint::gather_data_mesh(), increase_contrast_mask_mesh(), blender::ed::sculpt_paint::undo::Mask, mask_increase_contrast(), node, blender::bke::pbvh::node_update_mask_mesh(), blender::ed::sculpt_paint::hide::node_visible_verts(), blender::ed::sculpt_paint::undo::push_node(), blender::ed::sculpt_paint::scatter_data_mesh(), and blender::Span< T >::size().
Referenced by increase_contrast_mask_mesh(), and sculpt_mask_filter_exec().
|
static |
Definition at line 78 of file sculpt_mask_init.cc.
References blender::BKE_sculpt_mask_layers_ensure(), blender::BKE_sculpt_multires_active(), blender::BKE_subdiv_ccg_average_grids(), blender::BKE_subdiv_ccg_key_top_level(), blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::bke::ccg::grid_range(), init_mask_grids(), blender::ed::sculpt_paint::undo::Mask, blender::bke::pbvh::node_update_mask_grids(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_nodes(), blender::MutableSpan< T >::slice(), and blender::SculptSession::subdiv_ccg.
Referenced by init_mask_grids(), and sculpt_mask_init_exec().
|
static |
Definition at line 925 of file paint_mask.cc.
References blender::ed::sculpt_paint::gesture::Operation::apply_for_symmetry_pass, blender::ed::sculpt_paint::gesture::Operation::begin, blender::BKE_sculpt_mask_layers_ensure(), blender::BKE_sculpt_multires_active(), C, blender::CTX_data_depsgraph_pointer(), blender::CTX_data_main(), blender::ed::sculpt_paint::gesture::Operation::end, gesture_apply_for_symmetry_pass(), gesture_begin(), gesture_end(), init_operation(), blender::MEM_new_zeroed(), blender::ed::sculpt_paint::mask::MaskOperation::mode, blender::ViewContext::obact, blender::ed::sculpt_paint::mask::MaskOperation::op, blender::ed::sculpt_paint::gesture::GestureData::operation, blender::wmOperator::ptr, blender::RNA_enum_get(), blender::RNA_float_get(), blender::ViewContext::scene, blender::ed::sculpt_paint::mask::MaskOperation::value, 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::mask::invert_mask | ( | const MutableSpan< float > | masks | ) |
Definition at line 124 of file paint_mask.cc.
References invert_mask().
Referenced by apply_mask_bmesh(), apply_mask_grids(), apply_mask_mesh(), invert_mask(), invert_mask(), and mask_flood_fill_exec().
|
static |
Definition at line 683 of file paint_mask.cc.
References blender::bke::pbvh::all_leaf_nodes(), blender::bke::pbvh::BMesh, blender::bke::pbvh::Grids, invert_mask(), invert_mask_bmesh(), invert_mask_grids(), blender::bke::pbvh::Mesh, blender::bke::object::pbvh_get(), and write_mask_mesh().
|
static |
Definition at line 656 of file paint_mask.cc.
References blender::BKE_pbvh_bmesh_node_unique_verts(), BLI_assert_unreachable, blender::bm, BM_ELEM_CD_GET_FLOAT, BM_ELEM_CD_SET_FLOAT, BM_elem_flag_test, blender::BM_ELEM_HIDDEN, blender::CD_PROP_FLOAT, blender::CustomData_get_offset_named(), blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), invert_mask_bmesh(), blender::ed::sculpt_paint::undo::Mask, blender::bke::pbvh::node_update_mask_bmesh(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_nodes(), and blender::BMesh::vdata.
Referenced by invert_mask(), and invert_mask_bmesh().
|
static |
Definition at line 611 of file paint_mask.cc.
References blender::BKE_sculpt_mask_layers_ensure(), blender::BKE_sculpt_multires_active(), blender::BKE_subdiv_ccg_key_top_level(), blender::bits::foreach_0_index(), blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::bke::ccg::grid_range(), invert_mask_grids(), blender::bits::BitGroupVector< InlineBufferCapacity, Allocator >::is_empty(), blender::ed::sculpt_paint::undo::Mask, blender::MULTIRES_COORDS_MODIFIED, blender::multires_mark_as_modified(), blender::bke::pbvh::node_update_mask_grids(), blender::bke::object::pbvh_get(), blender::ed::sculpt_paint::undo::push_nodes(), blender::MutableSpan< T >::slice(), and blender::SculptSession::subdiv_ccg.
Referenced by invert_mask(), and invert_mask_grids().
|
static |
Definition at line 652 of file mesh/sculpt_ops.cc.
References blender::SculptSession::active_vert(), blender::BKE_base_is_visible(), blender::BKE_sculpt_color_layer_create_if_needed(), blender::BKE_sculptsession_update_for_edit(), C, blender::ed::sculpt_paint::color_supported_check(), blender::View3DShading::color_type, blender::CTX_data_active_base(), blender::CTX_data_active_object(), blender::CTX_data_depsgraph_pointer(), blender::CTX_data_scene(), blender::CTX_wm_view3d(), blender::ed::sculpt_paint::cursor_geometry_info_update(), blender::DEG_id_tag_update(), blender::ed::sculpt_paint::flush_update_done(), blender::Object::id, blender::ID_RECALC_GEOMETRY, invert(), blender::ed::sculpt_paint::Mask, mask_by_color(), mask_by_color_contiguous_mesh(), mask_by_color_full_mesh(), blender::ed::sculpt_paint::mask_overlay_check(), blender::OB_SOLID, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::ed::sculpt_paint::undo::push_begin(), blender::ed::sculpt_paint::undo::push_end(), blender::wmOperator::reports, blender::RNA_boolean_get(), blender::RNA_float_get(), blender::Object::runtime, blender::bke::ObjectRuntime::sculpt_session, blender::View3D::shading, blender::View3DShading::type, and blender::V3D_SHADING_VERTEX_COLOR.
Referenced by mask_by_color(), mask_by_color_exec(), and mask_by_color_invoke().
|
static |
Definition at line 580 of file mesh/sculpt_ops.cc.
References blender::ed::sculpt_paint::flood_fill::FillDataMesh::add_initial(), blender::bke::pbvh::all_leaf_nodes(), color_delta_get(), blender::data, blender::math::distance(), blender::ed::sculpt_paint::flood_fill::FillDataMesh::execute(), final_mask_get(), blender::Span< T >::index_range(), invert(), len(), blender::bke::AttributeAccessor::lookup_or_default(), mask_by_color_contiguous_mesh(), blender::bke::object::pbvh_get(), blender::bke::Point, and update_mask_mesh().
Referenced by mask_by_color(), and mask_by_color_contiguous_mesh().
|
static |
Definition at line 711 of file mesh/sculpt_ops.cc.
References C, mask_by_color(), mask_by_color_exec(), blender::wmOperator::ptr, and blender::RNA_int_get_array().
Referenced by mask_by_color_exec(), and SCULPT_OT_mask_by_color().
|
static |
Definition at line 623 of file mesh/sculpt_ops.cc.
References blender::bke::pbvh::all_leaf_nodes(), color_delta_get(), blender::data, final_mask_get(), blender::Span< T >::index_range(), invert(), blender::bke::AttributeAccessor::lookup_or_default(), mask_by_color_full_mesh(), blender::bke::object::pbvh_get(), blender::bke::Point, and update_mask_mesh().
Referenced by mask_by_color(), and mask_by_color_full_mesh().
|
static |
Definition at line 718 of file mesh/sculpt_ops.cc.
References C, mask_by_color(), mask_by_color_invoke(), blender::wmEvent::mval, blender::wmOperator::ptr, and blender::RNA_int_set_array().
Referenced by mask_by_color_invoke(), and SCULPT_OT_mask_by_color().
|
static |
Definition at line 88 of file sculpt_filter_mask.cc.
References BLI_NOINLINE, clamp_mask(), mask_decrease_contrast(), and multiply_add().
Referenced by decrease_contrast_mask_bmesh(), decrease_contrast_mask_grids(), decrease_contrast_mask_mesh(), and mask_decrease_contrast().
| bool blender::ed::sculpt_paint::mask::mask_equals_array_bmesh | ( | const int | mask_offset, |
| const Set< BMVert *, 0 > & | verts, | ||
| const Span< float > | values ) |
Definition at line 287 of file paint_mask.cc.
References blender::BLI_assert(), BM_ELEM_CD_GET_FLOAT, mask_equals_array_bmesh(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), and blender::Span< T >::size().
Referenced by apply_new_mask_bmesh(), and mask_equals_array_bmesh().
| bool blender::ed::sculpt_paint::mask::mask_equals_array_grids | ( | Span< float > | masks, |
| const CCGKey & | key, | ||
| Span< int > | grids, | ||
| Span< float > | values ) |
Check whether array data is the same as the stored mask for the referenced geometry.
Definition at line 272 of file paint_mask.cc.
References blender::IndexRange::begin(), blender::BLI_assert(), blender::IndexRange::end(), blender::CCGKey::grid_area, blender::Span< T >::index_range(), mask_equals_array_grids(), and blender::Span< T >::size().
Referenced by apply_new_mask_grids(), and mask_equals_array_grids().
|
static |
Definition at line 705 of file paint_mask.cc.
References blender::BKE_sculptsession_update_for_edit(), C, blender::CTX_data_active_object(), blender::CTX_data_ensure_evaluated_depsgraph(), blender::CTX_data_main(), blender::CTX_data_scene(), fill_mask(), InverseMeshValue, InverseValue, invert_mask(), mask_flood_fill_exec(), blender::ed::sculpt_paint::mask_overlay_check(), blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::ed::sculpt_paint::undo::push_begin(), blender::ed::sculpt_paint::undo::push_end(), blender::RNA_enum_get(), blender::RNA_float_get(), blender::ed::sculpt_paint::tag_update_overlays(), and Value.
Referenced by mask_flood_fill_exec(), and PAINT_OT_mask_flood_fill().
|
static |
Definition at line 1229 of file mesh/sculpt_ops.cc.
References blender::bke::pbvh::all_leaf_nodes(), apply_mask_from_settings(), blender::BKE_base_is_visible(), blender::BKE_paint_brush_for_read(), blender::BKE_report(), blender::BKE_sculpt_mask_layers_ensure(), blender::BKE_sculpt_multires_active(), blender::BKE_sculptsession_update_for_edit(), blender::MeshAutomaskingSettings::boundary_edges_propagation_steps, Brush, blender::BRUSH_AUTOMASKING_BOUNDARY_EDGES, blender::BRUSH_AUTOMASKING_BOUNDARY_FACE_SETS, C, blender::ed::sculpt_paint::auto_mask::cache_init(), blender::CTX_data_active_base(), blender::CTX_data_active_object(), blender::CTX_data_depsgraph_pointer(), blender::CTX_data_main(), blender::CTX_data_scene(), blender::CTX_data_tool_settings(), blender::CTX_wm_view3d(), FaceSets, blender::MeshAutomaskingSettings::flags, blender::ed::sculpt_paint::flush_update_done(), blender::ed::sculpt_paint::undo::Mask, blender::ed::sculpt_paint::Mask, mask_from_boundary_exec(), blender::ed::sculpt_paint::mask_overlay_check(), Mesh, blender::Brush::mesh_automasking_settings, blender::Paint::mesh_automasking_settings, Operator, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::wmOperator::ptr, blender::ed::sculpt_paint::undo::push_begin(), blender::ed::sculpt_paint::undo::push_end(), blender::ed::sculpt_paint::undo::push_nodes(), blender::wmOperator::reports, blender::RNA_enum_get(), blender::RNA_float_get(), blender::RNA_int_get(), blender::RPT_WARNING, Scene, blender::ToolSettings::sculpt, blender::Brush::sculpt_brush_type, blender::SCULPT_BRUSH_TYPE_SMOOTH, blender::dna::shallow_copy(), blender::ed::sculpt_paint::tag_update_overlays(), and blender::ed::sculpt_paint::vert_random_access_ensure().
Referenced by mask_from_boundary_exec(), and SCULPT_OT_mask_from_boundary().
|
static |
Definition at line 1340 of file mesh/sculpt_ops.cc.
References Brush, C, blender::CTX_data_scene(), blender::wmOperator::layout, mask_from_boundary_ui(), Operator, blender::ui::Layout::prop(), blender::wmOperator::ptr, blender::RNA_enum_get(), Scene, blender::ToolSettings::sculpt, blender::Scene::toolsettings, UI_ITEM_NONE, blender::ui::Layout::use_property_decorate_set(), and blender::ui::Layout::use_property_split_set().
Referenced by mask_from_boundary_ui(), and SCULPT_OT_mask_from_boundary().
|
static |
Definition at line 1004 of file mesh/sculpt_ops.cc.
References blender::bke::pbvh::all_leaf_nodes(), apply_mask_from_settings(), blender::BKE_base_is_visible(), blender::BKE_paint_brush_for_read(), blender::BKE_report(), blender::BKE_sculpt_mask_layers_ensure(), blender::BKE_sculpt_multires_active(), blender::BKE_sculptsession_update_for_edit(), blender::MeshAutomaskingSettings::boundary_edges_propagation_steps, Brush, blender::BRUSH_AUTOMASKING_CAVITY_ALL, blender::BRUSH_AUTOMASKING_CAVITY_INVERTED, blender::BRUSH_AUTOMASKING_CAVITY_NORMAL, blender::BRUSH_AUTOMASKING_CAVITY_USE_CURVE, C, blender::ed::sculpt_paint::auto_mask::cache_init(), blender::MeshAutomaskingSettings::cavity_blur_steps, blender::MeshAutomaskingSettings::cavity_curve, blender::MeshAutomaskingSettings::cavity_factor, blender::CTX_data_active_base(), blender::CTX_data_active_object(), blender::CTX_data_depsgraph_pointer(), blender::CTX_data_main(), blender::CTX_data_scene(), blender::CTX_data_tool_settings(), blender::CTX_wm_view3d(), blender::MeshAutomaskingSettings::flags, blender::ed::sculpt_paint::flush_update_done(), blender::ed::sculpt_paint::undo::Mask, blender::ed::sculpt_paint::Mask, mask_from_cavity_exec(), blender::ed::sculpt_paint::mask_overlay_check(), blender::Brush::mesh_automasking_settings, blender::Paint::mesh_automasking_settings, Operator, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::Sculpt::paint, blender::bke::object::pbvh_get(), blender::wmOperator::ptr, blender::ed::sculpt_paint::undo::push_begin(), blender::ed::sculpt_paint::undo::push_end(), blender::ed::sculpt_paint::undo::push_nodes(), blender::wmOperator::reports, blender::RNA_boolean_get(), blender::RNA_enum_get(), blender::RNA_float_get(), blender::RNA_int_get(), blender::RPT_WARNING, Scene, blender::ToolSettings::sculpt, blender::Brush::sculpt_brush_type, blender::SCULPT_BRUSH_TYPE_SMOOTH, blender::dna::shallow_copy(), blender::ed::sculpt_paint::tag_update_overlays(), and blender::ed::sculpt_paint::vert_random_access_ensure().
Referenced by mask_from_cavity_exec(), and SCULPT_OT_mask_from_cavity().
|
static |
Definition at line 1139 of file mesh/sculpt_ops.cc.
References Brush, C, blender::CTX_data_scene(), blender::Scene::id, blender::wmOperator::layout, mask_from_cavity_ui(), Operator, blender::ui::Layout::prop(), blender::wmOperator::ptr, blender::RNA_boolean_get(), blender::RNA_enum_get(), blender::RNA_pointer_create_discrete(), Scene, blender::ToolSettings::sculpt, blender::Scene::toolsettings, UI_ITEM_NONE, blender::ui::Layout::use_property_decorate_set(), and blender::ui::Layout::use_property_split_set().
Referenced by mask_from_cavity_ui(), and SCULPT_OT_mask_from_cavity().
|
static |
Definition at line 788 of file paint_mask.cc.
References BLI_assert_unreachable, InverseMeshValue, InverseValue, mask_gesture_get_new_value(), and Value.
Referenced by gesture_apply_for_symmetry_pass(), and mask_gesture_get_new_value().
|
static |
Definition at line 76 of file sculpt_filter_mask.cc.
References BLI_NOINLINE, clamp_mask(), mask_increase_contrast(), multiply_add(), and blender::math::rcp().
Referenced by increase_contrast_mask_bmesh(), increase_contrast_mask_grids(), increase_contrast_mask_mesh(), and mask_increase_contrast().
| void blender::ed::sculpt_paint::mask::mix_new_masks | ( | const Span< float > | new_masks, |
| const float | factor, | ||
| const MutableSpan< float > | masks ) |
Definition at line 96 of file paint_mask.cc.
References blender::BLI_assert(), blender::MutableSpan< T >::index_range(), mix_new_masks(), blender::MutableSpan< T >::size(), and blender::Span< T >::size().
Referenced by apply_mask_bmesh(), apply_mask_grids(), apply_mask_mesh(), mix_new_masks(), mix_new_masks(), smooth_mask_bmesh(), smooth_mask_grids(), and smooth_mask_mesh().
| void blender::ed::sculpt_paint::mask::mix_new_masks | ( | const Span< float > | new_masks, |
| const Span< float > | factors, | ||
| const MutableSpan< float > | masks ) |
Definition at line 105 of file paint_mask.cc.
References blender::BLI_assert(), blender::MutableSpan< T >::index_range(), mix_new_masks(), blender::MutableSpan< T >::size(), and blender::Span< T >::size().
|
static |
Definition at line 66 of file sculpt_filter_mask.cc.
References BLI_NOINLINE, blender::Span< T >::index_range(), and multiply_add().
Referenced by mask_decrease_contrast(), mask_increase_contrast(), and multiply_add().
| void blender::ed::sculpt_paint::mask::PAINT_OT_mask_box_gesture | ( | wmOperatorType * | ot | ) |
Definition at line 1028 of file paint_mask.cc.
References blender::ed::sculpt_paint::gesture::Box, blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, gesture_box_exec(), gesture_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_mask_box_gesture(), 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_mask_box_gesture().
| void blender::ed::sculpt_paint::mask::PAINT_OT_mask_flood_fill | ( | wmOperatorType * | ot | ) |
Definition at line 739 of file paint_mask.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, mask_flood_fill_exec(), mode_items, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, PAINT_OT_mask_flood_fill(), blender::wmOperatorType::poll, blender::RNA_def_enum(), blender::RNA_def_float(), blender::ed::sculpt_paint::sculpt_mode_poll(), blender::wmOperatorType::srna, and Value.
Referenced by blender::ED_operatortypes_paint(), and PAINT_OT_mask_flood_fill().
| void blender::ed::sculpt_paint::mask::PAINT_OT_mask_lasso_gesture | ( | wmOperatorType * | ot | ) |
Definition at line 1008 of file paint_mask.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, gesture_lasso_exec(), gesture_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_mask_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_mask_lasso_gesture().
| void blender::ed::sculpt_paint::mask::PAINT_OT_mask_line_gesture | ( | wmOperatorType * | ot | ) |
Definition at line 1048 of file paint_mask.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, gesture_line_exec(), gesture_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_mask_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_mask_line_gesture().
| void blender::ed::sculpt_paint::mask::PAINT_OT_mask_polyline_gesture | ( | wmOperatorType * | ot | ) |
Definition at line 1068 of file paint_mask.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, gesture_operator_properties(), gesture_polyline_exec(), 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_mask_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_mask_polyline_gesture().
| void blender::ed::sculpt_paint::mask::scatter_mask_bmesh | ( | const Span< float > | mask, |
| const BMesh & | bm, | ||
| const Set< BMVert *, 0 > & | verts ) |
Definition at line 163 of file paint_mask.cc.
References blender::BLI_assert(), blender::bm, BM_ELEM_CD_SET_FLOAT, blender::CD_PROP_FLOAT, blender::CustomData_get_offset_named(), scatter_mask_bmesh(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), and blender::BMesh::vdata.
Referenced by apply_mask_bmesh(), apply_new_mask_bmesh(), decrease_contrast_mask_bmesh(), increase_contrast_mask_bmesh(), and scatter_mask_bmesh().
| void blender::ed::sculpt_paint::mask::scatter_mask_grids | ( | const Span< float > | mask, |
| SubdivCCG & | subdiv_ccg, | ||
| const Span< int > | grids ) |
Definition at line 158 of file paint_mask.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::SubdivCCG::masks, blender::ed::sculpt_paint::scatter_data_grids(), and scatter_mask_grids().
Referenced by apply_mask_grids(), and scatter_mask_grids().
|
static |
Definition at line 738 of file sculpt_filter_mask.cc.
References blender::bke::pbvh::all_leaf_nodes(), apply_new_mask_bmesh(), apply_new_mask_grids(), apply_new_mask_mesh(), blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::BKE_base_is_visible(), blender::BKE_sculpt_mask_layers_ensure(), blender::BKE_sculpt_multires_active(), blender::BKE_sculptsession_update_for_edit(), blender::BKE_subdiv_ccg_key_top_level(), blender::bm, blender::SculptSession::bm, blender::bke::pbvh::BMesh, C, blender::CD_PROP_FLOAT, ContrastDecrease, ContrastIncrease, blender::ed::sculpt_paint::create_node_vert_offsets(), blender::ed::sculpt_paint::create_node_vert_offsets_bmesh(), blender::CTX_data_active_base(), blender::CTX_data_active_object(), blender::CTX_data_depsgraph_pointer(), blender::CTX_data_main(), blender::CTX_data_scene(), blender::CTX_wm_view3d(), blender::CustomData_get_offset_named(), blender::Object::data, decrease_contrast_mask_bmesh(), decrease_contrast_mask_grids(), decrease_contrast_mask_mesh(), blender::bke::Face, blender::ed::sculpt_paint::flush_update_done(), blender::ed::sculpt_paint::flush_update_step(), blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_bools(), blender::exec_mode::grain_size(), blender::bke::pbvh::Grids, Grow, grow_mask_bmesh(), grow_mask_grids(), grow_mask_mesh(), increase_contrast_mask_bmesh(), increase_contrast_mask_grids(), increase_contrast_mask_mesh(), blender::IndexRange::IndexRange(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::ed::sculpt_paint::Mask, blender::ed::sculpt_paint::mask_overlay_check(), blender::bke::pbvh::Mesh, blender::index_mask::IndexMask::min_array_size(), blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::bke::object::pbvh_get(), blender::bke::Point, 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(), blender::Object::runtime, sculpt_mask_filter_exec(), blender::bke::ObjectRuntime::sculpt_session, Sharpen, sharpen_mask_bmesh(), sharpen_mask_grids(), sharpen_mask_mesh(), Shrink, shrink_mask_bmesh(), shrink_mask_grids(), shrink_mask_mesh(), Smooth, smooth_mask_bmesh(), smooth_mask_grids(), smooth_mask_mesh(), blender::SculptSession::subdiv_ccg, blender::ed::sculpt_paint::tag_update_overlays(), blender::offset_indices::OffsetIndices< T >::total_size(), blender::BMesh::vdata, blender::ed::sculpt_paint::vert_random_access_ensure(), and blender::ed::sculpt_paint::vertex_count_get().
Referenced by sculpt_mask_filter_exec(), and SCULPT_OT_mask_filter().
|
static |
Definition at line 111 of file sculpt_mask_init.cc.
References blender::bke::pbvh::all_leaf_nodes(), blender::BKE_base_is_visible(), blender::BKE_pbvh_bmesh_node_unique_verts(), blender::BKE_sculptsession_update_for_edit(), blender::BKE_subdiv_ccg_foreach_visible_grid_vert(), blender::BKE_subdiv_ccg_key_top_level(), blender::BLI_hash_int_01(), blender::BLI_time_now_seconds(), blender::SculptSession::bm, BM_ELEM_CD_SET_FLOAT, BM_elem_flag_test, blender::BM_ELEM_HIDDEN, BM_elem_index_get, blender::bke::pbvh::BMesh, C, blender::CD_PROP_FLOAT, blender::CTX_data_active_base(), blender::CTX_data_active_object(), blender::CTX_data_ensure_evaluated_depsgraph(), blender::CTX_data_main(), blender::CTX_data_scene(), blender::CTX_wm_view3d(), blender::CustomData_get_offset_named(), blender::Object::data, blender::ed::sculpt_paint::islands::ensure_cache(), blender::bke::Face, FaceSet, blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::CCGKey::grid_area, blender::SubdivCCG::grid_to_face_map, blender::bke::pbvh::Grids, init_mask_grids(), blender::index_mask::IndexMask::is_empty(), Island, blender::bke::AttributeAccessor::lookup_or_default(), blender::ed::sculpt_paint::undo::Mask, blender::ed::sculpt_paint::mask_overlay_check(), blender::bke::pbvh::Mesh, blender::bke::pbvh::node_update_mask_bmesh(), blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::bke::object::pbvh_get(), blender::wmOperator::ptr, blender::ed::sculpt_paint::undo::push_begin(), blender::ed::sculpt_paint::undo::push_end(), blender::ed::sculpt_paint::undo::push_nodes(), Random, blender::RNA_enum_get(), blender::Object::runtime, sculpt_mask_init_exec(), blender::bke::ObjectRuntime::sculpt_session, blender::SculptSession::subdiv_ccg, blender::ed::sculpt_paint::tag_update_overlays(), blender::BMesh::vdata, blender::ed::sculpt_paint::face_set::vert_face_set_max_get(), blender::ed::sculpt_paint::islands::vert_id_get(), and write_mask_mesh().
Referenced by sculpt_mask_init_exec(), and SCULPT_OT_mask_init().
|
static |
Definition at line 724 of file mesh/sculpt_ops.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, blender::wmOperatorType::invoke, mask_by_color_exec(), mask_by_color_invoke(), blender::wmOperatorType::name, blender::OPTYPE_DEPENDS_ON_CURSOR, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::wmOperatorType::prop, blender::PROP_HIDDEN, blender::PROP_SKIP_SAVE, blender::RNA_def_boolean(), blender::RNA_def_float(), blender::RNA_def_int_array(), blender::RNA_def_property_flag(), blender::ed::sculpt_paint::sculpt_mode_poll(), SCULPT_OT_mask_by_color(), SHRT_MAX, and blender::wmOperatorType::srna.
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt(), and SCULPT_OT_mask_by_color().
| void blender::ed::sculpt_paint::mask::SCULPT_OT_mask_filter | ( | wmOperatorType * | ot | ) |
Definition at line 1085 of file sculpt_filter_mask.cc.
References ContrastDecrease, ContrastIncrease, blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, Grow, blender::wmOperatorType::idname, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_boolean(), blender::RNA_def_enum(), blender::RNA_def_int(), sculpt_mask_filter_exec(), blender::ed::sculpt_paint::sculpt_mode_poll(), SCULPT_OT_mask_filter(), Sharpen, Shrink, Smooth, and blender::wmOperatorType::srna.
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt(), and SCULPT_OT_mask_filter().
|
static |
Definition at line 1370 of file mesh/sculpt_ops.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, FaceSets, blender::wmOperatorType::flag, blender::wmOperatorType::idname, mask_from_boundary_exec(), mask_from_boundary_ui(), Mesh, Mix, mix_modes, blender::wmOperatorType::name, Operator, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_enum(), blender::RNA_def_float(), blender::RNA_def_int(), blender::ed::sculpt_paint::sculpt_mode_poll(), SCULPT_OT_mask_from_boundary(), settings_sources, blender::wmOperatorType::srna, and blender::wmOperatorType::ui.
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt(), and SCULPT_OT_mask_from_boundary().
|
static |
Definition at line 1185 of file mesh/sculpt_ops.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::wmOperatorType::idname, mask_from_cavity_exec(), mask_from_cavity_ui(), Mix, mix_modes, blender::wmOperatorType::name, Operator, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_boolean(), blender::RNA_def_enum(), blender::RNA_def_float(), blender::RNA_def_int(), blender::ed::sculpt_paint::sculpt_mode_poll(), SCULPT_OT_mask_from_cavity(), settings_sources, blender::wmOperatorType::srna, and blender::wmOperatorType::ui.
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt(), and SCULPT_OT_mask_from_cavity().
| void blender::ed::sculpt_paint::mask::SCULPT_OT_mask_init | ( | wmOperatorType * | ot | ) |
Definition at line 286 of file sculpt_mask_init.cc.
References blender::wmOperatorType::description, blender::wmOperatorType::exec, FaceSet, blender::wmOperatorType::flag, blender::wmOperatorType::idname, Island, blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, Random, blender::RNA_def_enum(), sculpt_mask_init_exec(), blender::ed::sculpt_paint::sculpt_mode_poll(), SCULPT_OT_mask_init(), and blender::wmOperatorType::srna.
Referenced by blender::ed::sculpt_paint::operatortypes_sculpt(), and SCULPT_OT_mask_init().
|
static |
Definition at line 619 of file sculpt_filter_mask.cc.
References average_neighbor_mask_bmesh(), blender::BKE_pbvh_bmesh_node_unique_verts(), blender::bm, copy_old_hidden_mask_bmesh(), gather_mask_bmesh(), node, blender::ed::sculpt_paint::mask::FilterLocalData::node_mask, lexit::Vector< T >::resize(), sharpen_mask_bmesh(), sharpen_masks(), and blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size().
Referenced by sculpt_mask_filter_exec(), and sharpen_mask_bmesh().
|
static |
Definition at line 404 of file sculpt_filter_mask.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::ed::sculpt_paint::smooth::average_data_grids(), blender::BKE_subdiv_ccg_key_top_level(), copy_old_hidden_mask_grids(), blender::ed::sculpt_paint::gather_data_grids(), blender::CCGKey::grid_area, blender::SubdivCCG::masks, node, blender::ed::sculpt_paint::mask::FilterLocalData::node_mask, lexit::Vector< T >::resize(), sharpen_mask_grids(), sharpen_masks(), and blender::Span< T >::size().
Referenced by sculpt_mask_filter_exec(), and sharpen_mask_grids().
|
static |
Definition at line 189 of file sculpt_filter_mask.cc.
References blender::ed::sculpt_paint::calc_vert_neighbors(), copy_old_hidden_mask_mesh(), blender::ed::sculpt_paint::gather_data_mesh(), blender::ed::sculpt_paint::mask::FilterLocalData::neighbor_data, blender::ed::sculpt_paint::smooth::neighbor_data_average_mesh(), blender::ed::sculpt_paint::mask::FilterLocalData::neighbor_offsets, node, blender::ed::sculpt_paint::mask::FilterLocalData::node_mask, lexit::Vector< T >::resize(), sharpen_mask_mesh(), sharpen_masks(), and blender::Span< T >::size().
Referenced by sculpt_mask_filter_exec(), and sharpen_mask_mesh().
|
static |
Definition at line 100 of file sculpt_filter_mask.cc.
References BLI_NOINLINE, clamp_mask(), blender::Span< T >::index_range(), and sharpen_masks().
Referenced by sharpen_mask_bmesh(), sharpen_mask_grids(), sharpen_mask_mesh(), and sharpen_masks().
|
static |
Definition at line 657 of file sculpt_filter_mask.cc.
References blender::BKE_pbvh_bmesh_node_unique_verts(), BM_ELEM_CD_GET_FLOAT, copy_old_hidden_mask_bmesh(), node, shrink_mask_bmesh(), and blender::ed::sculpt_paint::vert_neighbors_get_bmesh().
Referenced by sculpt_mask_filter_exec(), and shrink_mask_bmesh().
|
static |
Definition at line 458 of file sculpt_filter_mask.cc.
References blender::BKE_subdiv_ccg_key_top_level(), blender::BKE_subdiv_ccg_neighbor_coords_get(), blender::CCG_grid_xy_to_index(), blender::SubdivCCGNeighbors::coords, copy_old_hidden_mask_grids(), blender::bke::ccg::grid_range(), blender::CCGKey::grid_size, blender::Span< T >::index_range(), blender::IndexRange::IndexRange(), blender::SubdivCCG::masks, node, shrink_mask_grids(), blender::MutableSpan< T >::slice(), blender::Span< T >::slice(), blender::SubdivCCGCoord::to_index(), blender::x, and y.
Referenced by sculpt_mask_filter_exec(), and shrink_mask_grids().
|
static |
Definition at line 248 of file sculpt_filter_mask.cc.
References blender::ed::sculpt_paint::calc_vert_neighbors(), copy_old_hidden_mask_mesh(), blender::Span< T >::index_range(), blender::ed::sculpt_paint::mask::FilterLocalData::neighbor_data, blender::ed::sculpt_paint::mask::FilterLocalData::neighbor_offsets, node, and shrink_mask_mesh().
Referenced by sculpt_mask_filter_exec(), and shrink_mask_mesh().
|
static |
Definition at line 600 of file sculpt_filter_mask.cc.
References average_neighbor_mask_bmesh(), blender::BKE_pbvh_bmesh_node_unique_verts(), blender::bm, clamp_mask(), blender::MutableSpan< T >::copy_from(), copy_old_hidden_mask_bmesh(), gather_mask_bmesh(), mix_new_masks(), node, blender::ed::sculpt_paint::mask::FilterLocalData::node_mask, lexit::Vector< T >::resize(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), and smooth_mask_bmesh().
Referenced by sculpt_mask_filter_exec(), and smooth_mask_bmesh().
|
static |
Definition at line 383 of file sculpt_filter_mask.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::ed::sculpt_paint::smooth::average_data_grids(), blender::BKE_subdiv_ccg_key_top_level(), clamp_mask(), blender::MutableSpan< T >::copy_from(), copy_old_hidden_mask_grids(), blender::ed::sculpt_paint::gather_data_grids(), blender::CCGKey::grid_area, blender::SubdivCCG::masks, mix_new_masks(), node, blender::ed::sculpt_paint::mask::FilterLocalData::node_mask, lexit::Vector< T >::resize(), blender::Span< T >::size(), and smooth_mask_grids().
Referenced by sculpt_mask_filter_exec(), and smooth_mask_grids().
|
static |
Definition at line 158 of file sculpt_filter_mask.cc.
References blender::ed::sculpt_paint::calc_vert_neighbors(), clamp_mask(), blender::MutableSpan< T >::copy_from(), copy_old_hidden_mask_mesh(), blender::ed::sculpt_paint::gather_data_mesh(), mix_new_masks(), blender::ed::sculpt_paint::mask::FilterLocalData::neighbor_data, blender::ed::sculpt_paint::smooth::neighbor_data_average_mesh(), blender::ed::sculpt_paint::mask::FilterLocalData::neighbor_offsets, node, blender::ed::sculpt_paint::mask::FilterLocalData::node_mask, lexit::Vector< T >::resize(), blender::Span< T >::size(), and smooth_mask_mesh().
Referenced by sculpt_mask_filter_exec(), and smooth_mask_mesh().
|
static |
Definition at line 356 of file paint_mask.cc.
References blender::data, blender::index_mask::IndexMask::foreach_index(), get_hidden_verts(), blender::index_mask::IndexMask::index_range(), blender::bke::AttributeAccessor::lookup(), blender::threading::parallel_reduce(), blender::bke::object::pbvh_get(), blender::bke::Point, blender::index_mask::IndexMask::slice(), and try_remove_mask_mesh().
Referenced by fill_mask_mesh(), and try_remove_mask_mesh().
| void blender::ed::sculpt_paint::mask::update_mask_mesh | ( | const Depsgraph & | depsgraph, |
| Object & | object, | ||
| const IndexMask & | node_mask, | ||
| FunctionRef< void(MutableSpan< float >, Span< int >)> | update_fn ) |
Write to each node's mask data for visible vertices. Store undo data and mark for redraw only if the data is actually changed.
Definition at line 197 of file paint_mask.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::data, blender::Span< T >::drop_front(), 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::Span< T >::is_empty(), blender::threading::EnumerableThreadSpecific< T >::local(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::ed::sculpt_paint::undo::Mask, blender::ed::sculpt_paint::mask::LocalData::mask, blender::index_mask::IndexMask::min_array_size(), blender::bke::pbvh::node_update_mask_mesh(), blender::ed::sculpt_paint::hide::node_visible_all_verts(), blender::ed::sculpt_paint::hide::node_visible_shared_verts(), blender::bke::object::pbvh_get(), blender::bke::Point, blender::ed::sculpt_paint::undo::push_node(), lexit::Vector< T >::resize(), blender::ed::sculpt_paint::scatter_data_mesh(), blender::Span< T >::size(), blender::Span< T >::take_front(), and update_mask_mesh().
Referenced by gesture_apply_for_symmetry_pass(), mask_by_color_contiguous_mesh(), mask_by_color_full_mesh(), blender::ed::sculpt_paint::expand::update_for_vert(), and update_mask_mesh().
| void blender::ed::sculpt_paint::mask::write_mask_mesh | ( | const Depsgraph & | depsgraph, |
| Object & | object, | ||
| const IndexMask & | node_mask, | ||
| FunctionRef< void(MutableSpan< float >, Span< int >)> | write_fn ) |
Write to the mask attribute for each node, storing undo data.
Definition at line 49 of file sculpt_mask_init.cc.
References blender::data, blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::ed::sculpt_paint::undo::Mask, blender::bke::pbvh::node_update_mask_mesh(), blender::ed::sculpt_paint::hide::node_visible_verts(), blender::bke::object::pbvh_get(), blender::bke::Point, blender::ed::sculpt_paint::undo::push_nodes(), and write_mask_mesh().
Referenced by invert_mask(), sculpt_mask_init_exec(), and write_mask_mesh().
|
static |
Definition at line 784 of file mesh/sculpt_ops.cc.
Referenced by SCULPT_OT_mask_from_boundary(), and SCULPT_OT_mask_from_cavity().
|
static |
Definition at line 323 of file paint_mask.cc.
Referenced by gesture_operator_properties(), and PAINT_OT_mask_flood_fill().
|
static |
Definition at line 795 of file mesh/sculpt_ops.cc.
Referenced by SCULPT_OT_mask_from_boundary(), and SCULPT_OT_mask_from_cavity().