|
| void | blender::ed::sculpt_paint::operatortypes_sculpt () |
| void | blender::ed::sculpt_paint::keymap_sculpt (wmKeyConfig *keyconf) |
| static wmOperatorStatus | blender::ed::sculpt_paint::set_persistent_base_exec (bContext *C, wmOperator *) |
| static void | blender::ed::sculpt_paint::SCULPT_OT_set_persistent_base (wmOperatorType *ot) |
| static wmOperatorStatus | blender::ed::sculpt_paint::optimize_exec (bContext *C, wmOperator *) |
| static void | blender::ed::sculpt_paint::SCULPT_OT_optimize (wmOperatorType *ot) |
| static bool | blender::ed::sculpt_paint::no_multires_poll (bContext *C) |
| static wmOperatorStatus | blender::ed::sculpt_paint::symmetrize_exec (bContext *C, wmOperator *op) |
| static void | blender::ed::sculpt_paint::SCULPT_OT_symmetrize (wmOperatorType *ot) |
| static void | blender::ed::sculpt_paint::init_sculpt_mode_session (Main &bmain, Depsgraph &depsgraph, Scene &scene, Object &ob) |
| void | blender::ed::sculpt_paint::ensure_valid_pivot (const Object &ob, Paint &paint) |
| void | blender::ed::sculpt_paint::object_sculpt_mode_enter (Main &bmain, Depsgraph &depsgraph, Scene &scene, Object &ob, bool force_dyntopo, ReportList *reports) |
| void | blender::ed::sculpt_paint::object_sculpt_mode_enter (bContext *C, Depsgraph &depsgraph, ReportList *reports) |
| void | blender::ed::sculpt_paint::object_sculpt_mode_exit (Main &bmain, Depsgraph &depsgraph, Scene &scene, Object &ob) |
| void | blender::ed::sculpt_paint::object_sculpt_mode_exit (bContext *C, Depsgraph &depsgraph) |
| static wmOperatorStatus | blender::ed::sculpt_paint::sculpt_mode_toggle_exec (bContext *C, wmOperator *op) |
| static void | blender::ed::sculpt_paint::SCULPT_OT_sculptmode_toggle (wmOperatorType *ot) |
| static wmOperatorStatus | blender::ed::sculpt_paint::sample_color_invoke (bContext *C, wmOperator *op, const wmEvent *) |
| static void | blender::ed::sculpt_paint::SCULPT_OT_sample_color (wmOperatorType *ot) |
|
| #define | MASK_BY_COLOR_SLOPE 0.25f |
| static float | blender::ed::sculpt_paint::mask::color_delta_get (const float3 &color_a, const float3 &color_b, const float threshold, const bool invert) |
| static float | blender::ed::sculpt_paint::mask::final_mask_get (const float current_mask, const float new_mask, const bool invert, const bool preserve_mask) |
| static void | blender::ed::sculpt_paint::mask::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 | blender::ed::sculpt_paint::mask::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 | blender::ed::sculpt_paint::mask::mask_by_color (bContext *C, wmOperator *op, const float2 region_location) |
| static wmOperatorStatus | blender::ed::sculpt_paint::mask::mask_by_color_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | blender::ed::sculpt_paint::mask::mask_by_color_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | blender::ed::sculpt_paint::mask::SCULPT_OT_mask_by_color (wmOperatorType *ot) |
|
| enum class | blender::ed::sculpt_paint::mask::ApplyMaskMode : int8_t {
blender::ed::sculpt_paint::mask::Mix
, blender::ed::sculpt_paint::mask::Multiply
, blender::ed::sculpt_paint::mask::Divide
, blender::ed::sculpt_paint::mask::Add
,
blender::ed::sculpt_paint::mask::Subtract
} |
| enum class | blender::ed::sculpt_paint::mask::MaskSettingsSource : int8_t { blender::ed::sculpt_paint::mask::Operator
, blender::ed::sculpt_paint::mask::Scene
, blender::ed::sculpt_paint::mask::Brush
} |
| enum class | blender::ed::sculpt_paint::mask::MaskBoundaryMode : int8_t { blender::ed::sculpt_paint::mask::Mesh
, blender::ed::sculpt_paint::mask::FaceSets
} |
| static EnumPropertyItem | blender::ed::sculpt_paint::mask::mix_modes [] |
| static EnumPropertyItem | blender::ed::sculpt_paint::mask::settings_sources [] |
| static void | blender::ed::sculpt_paint::mask::calc_new_masks (const ApplyMaskMode mode, const Span< float > node_mask, const MutableSpan< float > new_mask) |
| static void | blender::ed::sculpt_paint::mask::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 bool invert_automask, const bke::pbvh::MeshNode &node, LocalData &tls, const MutableSpan< float > mask) |
| static void | blender::ed::sculpt_paint::mask::apply_mask_grids (const Depsgraph &depsgraph, Object &object, const auto_mask::Cache &automasking, const ApplyMaskMode mode, const float factor, const bool invert_automask, const bke::pbvh::GridsNode &node, LocalData &tls) |
| static void | blender::ed::sculpt_paint::mask::apply_mask_bmesh (const Depsgraph &depsgraph, Object &object, const auto_mask::Cache &automasking, const ApplyMaskMode mode, const float factor, const float invert_automask, bke::pbvh::BMeshNode &node, LocalData &tls) |
| static void | blender::ed::sculpt_paint::mask::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, const bool invert_automask) |
| static wmOperatorStatus | blender::ed::sculpt_paint::mask::mask_from_cavity_exec (bContext *C, wmOperator *op) |
| static void | blender::ed::sculpt_paint::mask::mask_from_cavity_ui (bContext *C, wmOperator *op) |
| static void | blender::ed::sculpt_paint::mask::SCULPT_OT_mask_from_cavity (wmOperatorType *ot) |
| static wmOperatorStatus | blender::ed::sculpt_paint::mask::mask_from_boundary_exec (bContext *C, wmOperator *op) |
| static void | blender::ed::sculpt_paint::mask::mask_from_boundary_ui (bContext *C, wmOperator *op) |
| static void | blender::ed::sculpt_paint::mask::SCULPT_OT_mask_from_boundary (wmOperatorType *ot) |
Implements the Sculpt Mode tools.
Definition in file sculpt_ops.cc.
| #define MASK_BY_COLOR_SLOPE 0.25f |
#sculpt_mask_by_color_delta_get returns values in the (0,1) range that are used to generate the mask based on the difference between two colors (the active color and the color of any other vertex). Ideally, a threshold of 0 should mask only the colors that are equal to the active color and threshold of 1 should mask all colors. In order to avoid artifacts and produce softer falloffs in the mask, the MASK_BY_COLOR_SLOPE defines the size of the transition values between masked and unmasked vertices. The smaller this value is, the sharper the generated mask is going to be.
Definition at line 689 of file sculpt_ops.cc.
Referenced by blender::ed::sculpt_paint::mask::color_delta_get().