Blender V5.3
blender::ed::sculpt_paint::auto_mask Namespace Reference

Classes

struct  AccumulatedVert
struct  Cache
struct  Settings

Enumerations

enum class  BoundaryAutomaskMode { Edges = 1 , FaceSets = 2 }

Functions

const Cache * active_cache_get (const SculptSession &ss)
std::unique_ptr< Cache > cache_init (const Depsgraph &depsgraph, const Paint &paint, const Brush *brush, Object &ob)
Cache & filter_cache_ensure (const Depsgraph &depsgraph, const Paint &paint, Object &ob)
Cache & stroke_cache_ensure (const Depsgraph &depsgraph, const Paint &paint, const Brush *brush, Object &ob)
bool mode_enabled (const Sculpt &sd, const Brush *br, eAutomasking_flag mode)
bool is_enabled (const Paint &paint, const Object &object, const Brush *br)
void calc_vert_factors (const Depsgraph &depsgraph, const Object &object, const Cache &automasking, const bke::pbvh::MeshNode &node, Span< int > verts, MutableSpan< float > factors)
void calc_vert_factors (const Depsgraph &depsgraph, const Object &object, const Cache *cache, const bke::pbvh::MeshNode &node, Span< int > verts, MutableSpan< float > factors)
void calc_grids_factors (const Depsgraph &depsgraph, const Object &object, const Cache &automasking, const bke::pbvh::GridsNode &node, Span< int > grids, MutableSpan< float > factors)
void calc_grids_factors (const Depsgraph &depsgraph, const Object &object, const Cache *cache, const bke::pbvh::GridsNode &node, Span< int > grids, MutableSpan< float > factors)
void calc_vert_factors (const Depsgraph &depsgraph, const Object &object, const Cache &automasking, const bke::pbvh::BMeshNode &node, const Set< BMVert *, 0 > &verts, MutableSpan< float > factors)
void calc_vert_factors (const Depsgraph &depsgraph, const Object &object, const Cache *cache, const bke::pbvh::BMeshNode &node, const Set< BMVert *, 0 > &verts, MutableSpan< float > factors)
void calc_interpolated_face_factors (const Depsgraph &depsgraph, const Object &object, OffsetIndices< int > faces, Span< int > corner_verts, const Cache &automasking, const bke::pbvh::MeshNode &node, Span< int > face_indices, MutableSpan< float > factors)
static bool mode_enabled (const Paint &paint, const Brush *br, const eAutomasking_flag mode)
static eAutomasking_flag calc_effective_bits (const Paint &paint, const Brush *brush)
static float normal_calc (const float3 &compare_normal, const float3 &normal, float limit_lower, float limit_upper)
static bool is_constrained_by_radius (const Brush *br)
static int boundary_propagation_steps (const Paint &paint, const Brush *brush)
static bool needs_factors_cache (const Paint &paint, const Brush *brush)
static float calc_brush_normal_factor (const Cache &automasking, const Object &object, const float3 &normal)
static float calc_view_normal_factor (const Cache &automasking, const Object &object, const float3 &normal)
static bool calc_view_occlusion_factor (const Depsgraph &depsgraph, Cache &automasking, const Object &object, const int vert, const float3 &vert_position)
static float calc_cavity_factor (const Cache &automasking, float factor)
static void calc_blurred_cavity_mesh (const Depsgraph &depsgraph, const Object &object, const Cache &automasking, const int steps, const int vert, MutableSpan< float > cavity_factors)
static void calc_blurred_cavity_grids (const Object &object, const Cache &automasking, const int steps, const SubdivCCGCoord vert, MutableSpan< float > cavity_factors)
static void calc_blurred_cavity_bmesh (const Cache &automasking, const int steps, BMVert *vert, MutableSpan< float > cavity_factors)
static float process_cavity_factor (const Cache &automasking, float factor)
static void calc_cavity_factor_mesh (const Depsgraph &depsgraph, const Cache &automasking, const Object &object, const int vert)
static void calc_cavity_factor_grids (const CCGKey &key, const Cache &automasking, const Object &object, const int vert)
static void calc_cavity_factor_bmesh (const Cache &automasking, BMVert *vert, const int vert_i)
static void fill_topology_automasking_factors_mesh (const Depsgraph &depsgraph, const Paint &paint, Object &ob, const Span< float3 > vert_positions, MutableSpan< float > factors)
static void fill_topology_automasking_factors_grids (const Paint &paint, Object &ob, const SubdivCCG &subdiv_ccg, MutableSpan< float > factors)
static void fill_topology_automasking_factors_bmesh (const Paint &paint, Object &ob, BMesh &bm, MutableSpan< float > factors)
static void fill_topology_automasking_factors (const Depsgraph &depsgraph, const Paint &paint, Object &ob, MutableSpan< float > factors)
static void init_face_sets_masking (const Paint &paint, Object &ob, MutableSpan< float > factors)
static void init_boundary_masking_mesh (Object &object, const Depsgraph &depsgraph, const BoundaryAutomaskMode mode, const int propagation_steps, MutableSpan< float > factors)
static void init_boundary_masking_grids (Object &object, const BoundaryAutomaskMode mode, const int propagation_steps, MutableSpan< float > factors)
static void init_boundary_masking_bmesh (Object &object, const BoundaryAutomaskMode mode, const int propagation_steps, MutableSpan< float > factors)
static void init_boundary_masking (Object &object, const Depsgraph &depsgraph, const BoundaryAutomaskMode mode, const int propagation_steps, MutableSpan< float > factors)
static void cache_settings_update (Cache &automasking, Object &object, const Paint &paint, const Brush *brush)
static void normal_occlusion_automasking_fill (const Depsgraph &depsgraph, Cache &automasking, Object &ob, eAutomasking_flag mode, MutableSpan< float > factors)

Variables

static constexpr int EDGE_DISTANCE_INF = -1

Enumeration Type Documentation

◆ BoundaryAutomaskMode

Enumerator
Edges 
FaceSets 

Definition at line 1347 of file sculpt_automasking.cc.

Function Documentation

◆ active_cache_get()

◆ boundary_propagation_steps()

int blender::ed::sculpt_paint::auto_mask::boundary_propagation_steps ( const Paint & paint,
const Brush * brush )
static

◆ cache_init()

std::unique_ptr< Cache > blender::ed::sculpt_paint::auto_mask::cache_init ( const Depsgraph & depsgraph,
const Paint & paint,
const Brush * brush,
Object & ob )

Creates and initializes an auto-masking cache.

For auto-masking modes that cannot be calculated in real time, data is also stored at the vertex level prior to the stroke starting.

Definition at line 1692 of file sculpt_automasking.cc.

References blender::SculptSession::active_vert_index(), blender::BKE_curvemapping_init(), blender::BLI_assert(), boundary_propagation_steps(), blender::BRUSH_AUTOMASKING_BOUNDARY_EDGES, blender::BRUSH_AUTOMASKING_BOUNDARY_FACE_SETS, blender::BRUSH_AUTOMASKING_CAVITY_ALL, blender::BRUSH_AUTOMASKING_CAVITY_USE_CURVE, blender::BRUSH_AUTOMASKING_FACE_SETS, blender::BRUSH_AUTOMASKING_TOPOLOGY, blender::BRUSH_AUTOMASKING_VIEW_NORMAL, blender::BRUSH_AUTOMASKING_VIEW_OCCLUSION, cache_init(), cache_settings_update(), calc_effective_bits(), Edges, blender::ed::sculpt_paint::boundary::ensure_boundary_info(), blender::ed::sculpt_paint::islands::ensure_cache(), FaceSets, fill_topology_automasking_factors(), blender::ed::sculpt_paint::find_all_symm_verts(), init_boundary_masking(), init_face_sets_masking(), is_constrained_by_radius(), is_enabled(), blender::ed::sculpt_paint::is_symmetry_iteration_valid(), blender::ed::sculpt_paint::mesh_symmetry_xyz_get(), mode_enabled(), needs_factors_cache(), normal_occlusion_automasking_fill(), PAINT_SYMM_AREAS, blender::Object::runtime, blender::bke::ObjectRuntime::sculpt_session, blender::ed::sculpt_paint::auto_mask::Cache::Unknown, blender::ed::sculpt_paint::islands::vert_id_get(), blender::ed::sculpt_paint::vert_random_access_ensure(), and blender::ed::sculpt_paint::vertex_count_get().

Referenced by cache_init(), filter_cache_ensure(), blender::ed::sculpt_paint::mask::mask_from_boundary_exec(), blender::ed::sculpt_paint::mask::mask_from_cavity_exec(), and stroke_cache_ensure().

◆ cache_settings_update()

◆ calc_blurred_cavity_bmesh()

◆ calc_blurred_cavity_grids()

◆ calc_blurred_cavity_mesh()

◆ calc_brush_normal_factor()

◆ calc_cavity_factor()

◆ calc_cavity_factor_bmesh()

◆ calc_cavity_factor_grids()

◆ calc_cavity_factor_mesh()

void blender::ed::sculpt_paint::auto_mask::calc_cavity_factor_mesh ( const Depsgraph & depsgraph,
const Cache & automasking,
const Object & object,
const int vert )
static

◆ calc_effective_bits()

eAutomasking_flag blender::ed::sculpt_paint::auto_mask::calc_effective_bits ( const Paint & paint,
const Brush * brush )
static

◆ calc_grids_factors() [1/2]

void blender::ed::sculpt_paint::auto_mask::calc_grids_factors ( const Depsgraph & depsgraph,
const Object & object,
const Cache & automasking,
const bke::pbvh::GridsNode & node,
Span< int > grids,
MutableSpan< float > factors )

Definition at line 870 of file sculpt_automasking.cc.

References blender::BKE_subdiv_ccg_key_top_level(), blender::BLI_assert(), blender::SculptSession::boundary_info_cache, blender::ed::sculpt_paint::StrokeCache::brush, blender::BRUSH_AUTOMASKING_BOUNDARY_EDGES, blender::BRUSH_AUTOMASKING_BOUNDARY_FACE_SETS, blender::BRUSH_AUTOMASKING_BRUSH_NORMAL, blender::BRUSH_AUTOMASKING_CAVITY_ALL, blender::BRUSH_AUTOMASKING_FACE_SETS, blender::BRUSH_AUTOMASKING_TOPOLOGY, blender::BRUSH_AUTOMASKING_VIEW_NORMAL, blender::BRUSH_AUTOMASKING_VIEW_OCCLUSION, blender::SculptSession::cache, calc_brush_normal_factor(), calc_grids_factors(), calc_view_normal_factor(), calc_view_occlusion_factor(), blender::ed::sculpt_paint::auto_mask::Cache::cavity_factor, blender::data, blender::Editor, ELEM, blender::bke::Face, blender::ed::sculpt_paint::auto_mask::Cache::factor, blender::SculptSession::filter_cache, blender::ed::sculpt_paint::auto_mask::Settings::flags, blender::SubdivCCGCoord::from_index(), blender::CCGKey::grid_area, blender::Span< T >::index_range(), blender::IndexRange::IndexRange(), blender::ed::sculpt_paint::auto_mask::Settings::initial_face_set, blender::ed::sculpt_paint::auto_mask::Settings::initial_island_nr, blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::blender::Span< T >::is_empty(), blender::Span< T >::is_empty(), blender::bke::AttributeAccessor::lookup(), blender::ed::sculpt_paint::StrokeCache::mirror_symmetry_pass, node, blender::ed::sculpt_paint::orig_position_data_lookup_grids(), blender::ed::sculpt_paint::StrokeCache::paint_face_set, PRF_scope, process_cavity_factor(), blender::Brush::sculpt_brush_type, blender::SCULPT_BRUSH_TYPE_DRAW_FACE_SETS, blender::ed::sculpt_paint::auto_mask::Cache::settings, blender::SculptSession::subdiv_ccg, blender::ed::sculpt_paint::auto_mask::Settings::topology_use_brush_limit, blender::ed::sculpt_paint::face_set::vert_has_unique_face_set(), blender::ed::sculpt_paint::islands::vert_id_get(), and blender::ed::sculpt_paint::boundary::vert_is_boundary().

Referenced by blender::ed::sculpt_paint::cloth::apply_filter_forces_grids(), blender::ed::sculpt_paint::mask::apply_mask_grids(), blender::ed::sculpt_paint::boundary::calc_bend_grids(), blender::ed::sculpt_paint::cloth::calc_constraint_factors(), blender::ed::sculpt_paint::calc_cube_tip_factors_common_grids(), blender::ed::sculpt_paint::filter::calc_enhance_details_filter(), blender::ed::sculpt_paint::filter::calc_erase_displacement_filter(), blender::ed::sculpt_paint::calc_factors_common_from_orig_data_grids(), blender::ed::sculpt_paint::calc_factors_common_grids(), blender::ed::sculpt_paint::cloth::calc_forces_grids(), blender::ed::sculpt_paint::boundary::calc_grab_grids(), blender::ed::sculpt_paint::brushes::calc_grids(), blender::ed::sculpt_paint::pose::calc_grids(), calc_grids_factors(), calc_grids_factors(), blender::ed::sculpt_paint::filter::calc_inflate_filter(), blender::ed::sculpt_paint::boundary::calc_inflate_grids(), blender::ed::sculpt_paint::filter::calc_random_filter(), blender::ed::sculpt_paint::filter::calc_relax_face_sets_filter(), blender::ed::sculpt_paint::filter::calc_relax_filter(), blender::ed::sculpt_paint::filter::calc_scale_filter(), blender::ed::sculpt_paint::filter::calc_sharpen_filter(), blender::ed::sculpt_paint::boundary::calc_slide_grids(), blender::ed::sculpt_paint::filter::calc_smooth_filter(), blender::ed::sculpt_paint::filter::calc_sphere_filter(), blender::ed::sculpt_paint::filter::calc_surface_smooth_filter(), blender::ed::sculpt_paint::boundary::calc_twist_grids(), blender::ed::sculpt_paint::cloth::do_simulation_step(), and blender::ed::sculpt_paint::brushes::sample_node_surface_grids().

◆ calc_grids_factors() [2/2]

void blender::ed::sculpt_paint::auto_mask::calc_grids_factors ( const Depsgraph & depsgraph,
const Object & object,
const Cache * cache,
const bke::pbvh::GridsNode & node,
Span< int > grids,
MutableSpan< float > factors )
inline

Definition at line 152 of file sculpt_automask.hh.

References calc_grids_factors(), and node.

◆ calc_interpolated_face_factors()

void blender::ed::sculpt_paint::auto_mask::calc_interpolated_face_factors ( const Depsgraph & depsgraph,
const Object & object,
OffsetIndices< int > faces,
Span< int > corner_verts,
const Cache & automasking,
const bke::pbvh::MeshNode & node,
Span< int > face_indices,
MutableSpan< float > factors )

Calculate all auto-masking influence on each face.

TODO: This method is a bit odd, we interpolate the value across the vertices, even for cases that could be calculated on a per-face basis. Additionally, it is only used for the face set brush. Evaluate whether this specialization is needed.

Definition at line 752 of file sculpt_automasking.cc.

References blender::BLI_assert(), BLI_SCOPED_DEFER, blender::SculptSession::boundary_info_cache, blender::ed::sculpt_paint::StrokeCache::brush, blender::BRUSH_AUTOMASKING_BOUNDARY_EDGES, blender::BRUSH_AUTOMASKING_BOUNDARY_FACE_SETS, blender::BRUSH_AUTOMASKING_BRUSH_NORMAL, blender::BRUSH_AUTOMASKING_CAVITY_ALL, blender::BRUSH_AUTOMASKING_FACE_SETS, blender::BRUSH_AUTOMASKING_TOPOLOGY, blender::BRUSH_AUTOMASKING_VIEW_NORMAL, blender::BRUSH_AUTOMASKING_VIEW_OCCLUSION, blender::SculptSession::cache, calc_brush_normal_factor(), calc_interpolated_face_factors(), calc_view_normal_factor(), calc_view_occlusion_factor(), blender::ed::sculpt_paint::auto_mask::Cache::cavity_factor, blender::data, blender::Editor, blender::bke::Face, blender::ed::sculpt_paint::auto_mask::Cache::factor, blender::SculptSession::filter_cache, blender::ed::sculpt_paint::auto_mask::Settings::flags, blender::Span< T >::index_range(), blender::ed::sculpt_paint::auto_mask::Settings::initial_face_set, blender::ed::sculpt_paint::auto_mask::Settings::initial_island_nr, blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::bke::AttributeAccessor::lookup(), blender::ed::sculpt_paint::StrokeCache::mirror_symmetry_pass, blender::ed::sculpt_paint::StrokeCache::paint_face_set, PRF_scope, process_cavity_factor(), blender::math::rcp(), blender::Brush::sculpt_brush_type, blender::SCULPT_BRUSH_TYPE_DRAW_FACE_SETS, blender::ed::sculpt_paint::auto_mask::Cache::settings, blender::Span< T >::size(), blender::Span< T >::slice(), blender::ed::sculpt_paint::auto_mask::Settings::topology_use_brush_limit, blender::ed::sculpt_paint::face_set::vert_face_set_max_get(), blender::ed::sculpt_paint::face_set::vert_has_face_set(), blender::ed::sculpt_paint::face_set::vert_has_unique_face_set(), blender::ed::sculpt_paint::islands::vert_id_get(), blender::ed::sculpt_paint::boundary::vert_is_boundary(), blender::bke::pbvh::vert_normals_eval(), and blender::bke::pbvh::vert_positions_eval().

Referenced by calc_interpolated_face_factors().

◆ calc_vert_factors() [1/4]

void blender::ed::sculpt_paint::auto_mask::calc_vert_factors ( const Depsgraph & depsgraph,
const Object & object,
const Cache & automasking,
const bke::pbvh::BMeshNode & node,
const Set< BMVert *, 0 > & verts,
MutableSpan< float > factors )

Definition at line 1010 of file sculpt_automasking.cc.

References blender::BLI_assert(), BLI_SCOPED_DEFER, blender::bm, blender::SculptSession::bm, BM_elem_index_get, blender::SculptSession::bm_log, blender::ed::sculpt_paint::StrokeCache::brush, blender::BRUSH_AUTOMASKING_BOUNDARY_EDGES, blender::BRUSH_AUTOMASKING_BOUNDARY_FACE_SETS, blender::BRUSH_AUTOMASKING_BRUSH_NORMAL, blender::BRUSH_AUTOMASKING_CAVITY_ALL, blender::BRUSH_AUTOMASKING_FACE_SETS, blender::BRUSH_AUTOMASKING_TOPOLOGY, blender::BRUSH_AUTOMASKING_VIEW_NORMAL, blender::BRUSH_AUTOMASKING_VIEW_OCCLUSION, blender::SculptSession::cache, calc_brush_normal_factor(), calc_vert_factors(), calc_view_normal_factor(), calc_view_occlusion_factor(), blender::ed::sculpt_paint::auto_mask::Cache::cavity_factor, blender::CD_PROP_INT32, blender::CustomData_get_offset_named(), blender::Editor, blender::ed::sculpt_paint::auto_mask::Cache::factor, blender::SculptSession::filter_cache, blender::ed::sculpt_paint::auto_mask::Settings::flags, blender::ed::sculpt_paint::auto_mask::Settings::initial_face_set, blender::ed::sculpt_paint::auto_mask::Settings::initial_island_nr, blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::ed::sculpt_paint::StrokeCache::mirror_symmetry_pass, blender::ed::sculpt_paint::orig_position_data_gather_bmesh(), blender::ed::sculpt_paint::StrokeCache::paint_face_set, blender::BMesh::pdata, PRF_scope, process_cavity_factor(), blender::Brush::sculpt_brush_type, blender::SCULPT_BRUSH_TYPE_DRAW_FACE_SETS, blender::ed::sculpt_paint::auto_mask::Cache::settings, blender::ed::sculpt_paint::auto_mask::Settings::topology_use_brush_limit, blender::ed::sculpt_paint::face_set::vert_face_set_max_get(), blender::ed::sculpt_paint::face_set::vert_has_face_set(), blender::ed::sculpt_paint::face_set::vert_has_unique_face_set(), blender::ed::sculpt_paint::islands::vert_id_get(), and blender::ed::sculpt_paint::boundary::vert_is_boundary().

◆ calc_vert_factors() [2/4]

void blender::ed::sculpt_paint::auto_mask::calc_vert_factors ( const Depsgraph & depsgraph,
const Object & object,
const Cache & automasking,
const bke::pbvh::MeshNode & node,
Span< int > verts,
MutableSpan< float > factors )

Calculate all auto-masking influence on each vertex.

Definition at line 628 of file sculpt_automasking.cc.

References blender::BLI_assert(), blender::SculptSession::boundary_info_cache, blender::ed::sculpt_paint::StrokeCache::brush, blender::BRUSH_AUTOMASKING_BOUNDARY_EDGES, blender::BRUSH_AUTOMASKING_BOUNDARY_FACE_SETS, blender::BRUSH_AUTOMASKING_BRUSH_NORMAL, blender::BRUSH_AUTOMASKING_CAVITY_ALL, blender::BRUSH_AUTOMASKING_FACE_SETS, blender::BRUSH_AUTOMASKING_TOPOLOGY, blender::BRUSH_AUTOMASKING_VIEW_NORMAL, blender::BRUSH_AUTOMASKING_VIEW_OCCLUSION, blender::SculptSession::cache, calc_brush_normal_factor(), calc_vert_factors(), calc_view_normal_factor(), calc_view_occlusion_factor(), blender::ed::sculpt_paint::auto_mask::Cache::cavity_factor, blender::data, blender::Editor, blender::bke::Face, blender::ed::sculpt_paint::auto_mask::Cache::factor, blender::SculptSession::filter_cache, blender::ed::sculpt_paint::auto_mask::Settings::flags, blender::Span< T >::index_range(), blender::ed::sculpt_paint::auto_mask::Settings::initial_face_set, blender::ed::sculpt_paint::auto_mask::Settings::initial_island_nr, blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::bke::AttributeAccessor::lookup(), blender::ed::sculpt_paint::StrokeCache::mirror_symmetry_pass, node, blender::OB_MODE_SCULPT, blender::ed::sculpt_paint::orig_position_data_lookup_mesh(), blender::ed::sculpt_paint::StrokeCache::paint_face_set, PRF_scope, process_cavity_factor(), blender::Brush::sculpt_brush_type, blender::SCULPT_BRUSH_TYPE_DRAW_FACE_SETS, blender::ed::sculpt_paint::auto_mask::Cache::settings, blender::ed::sculpt_paint::auto_mask::Settings::topology_use_brush_limit, blender::ed::sculpt_paint::face_set::vert_face_set_max_get(), blender::ed::sculpt_paint::face_set::vert_has_face_set(), blender::ed::sculpt_paint::face_set::vert_has_unique_face_set(), blender::ed::sculpt_paint::islands::vert_id_get(), blender::ed::sculpt_paint::boundary::vert_is_boundary(), blender::bke::pbvh::vert_normals_eval(), and blender::bke::pbvh::vert_positions_eval().

Referenced by blender::ed::sculpt_paint::cloth::apply_filter_forces_bmesh(), blender::ed::sculpt_paint::cloth::apply_filter_forces_mesh(), blender::ed::sculpt_paint::mask::apply_mask_bmesh(), blender::ed::sculpt_paint::mask::apply_mask_mesh(), blender::ed::sculpt_paint::boundary::calc_bend_bmesh(), blender::ed::sculpt_paint::boundary::calc_bend_mesh(), blender::ed::sculpt_paint::brushes::calc_bmesh(), blender::ed::sculpt_paint::pose::calc_bmesh(), blender::ed::sculpt_paint::cloth::calc_constraint_factors(), blender::ed::sculpt_paint::calc_cube_tip_factors_common_bmesh(), blender::ed::sculpt_paint::filter::calc_enhance_details_filter(), blender::ed::sculpt_paint::brushes::calc_faces(), blender::ed::sculpt_paint::calc_factors_common_bmesh(), blender::ed::sculpt_paint::calc_factors_common_from_orig_data_bmesh(), blender::ed::sculpt_paint::calc_factors_common_from_orig_data_mesh(), blender::ed::sculpt_paint::calc_factors_common_mesh(), blender::ed::sculpt_paint::calc_factors_common_mesh_indexed(), blender::ed::sculpt_paint::cloth::calc_forces_bmesh(), blender::ed::sculpt_paint::cloth::calc_forces_mesh(), blender::ed::sculpt_paint::boundary::calc_grab_bmesh(), blender::ed::sculpt_paint::boundary::calc_grab_mesh(), blender::ed::sculpt_paint::boundary::calc_inflate_bmesh(), blender::ed::sculpt_paint::filter::calc_inflate_filter(), blender::ed::sculpt_paint::boundary::calc_inflate_mesh(), blender::ed::sculpt_paint::pose::calc_mesh(), blender::ed::sculpt_paint::filter::calc_random_filter(), blender::ed::sculpt_paint::filter::calc_relax_face_sets_filter(), blender::ed::sculpt_paint::filter::calc_relax_filter(), blender::ed::sculpt_paint::filter::calc_scale_filter(), blender::ed::sculpt_paint::filter::calc_sharpen_filter(), blender::ed::sculpt_paint::boundary::calc_slide_bmesh(), blender::ed::sculpt_paint::boundary::calc_slide_mesh(), blender::ed::sculpt_paint::filter::calc_smooth_filter(), blender::ed::sculpt_paint::filter::calc_sphere_filter(), blender::ed::sculpt_paint::filter::calc_surface_smooth_filter(), blender::ed::sculpt_paint::boundary::calc_twist_bmesh(), blender::ed::sculpt_paint::boundary::calc_twist_mesh(), calc_vert_factors(), calc_vert_factors(), calc_vert_factors(), calc_vert_factors(), blender::ed::sculpt_paint::color::color_filter_task(), blender::ed::sculpt_paint::color::do_color_smooth_task(), blender::ed::sculpt_paint::color::do_paint_brush_task(), blender::ed::sculpt_paint::color::do_sample_wet_paint_task(), blender::ed::sculpt_paint::cloth::do_simulation_step(), blender::ed::sculpt_paint::color::do_smear_brush_task(), blender::do_vpaint_brush_blur_loops(), blender::do_vpaint_brush_blur_verts(), blender::do_vpaint_brush_smear(), blender::do_wpaint_brush_blur(), blender::do_wpaint_brush_draw(), blender::do_wpaint_brush_smear(), mode_enabled(), blender::ed::sculpt_paint::brushes::sample_node_surface_bmesh(), blender::ed::sculpt_paint::brushes::sample_node_surface_mesh(), and blender::vpaint_do_draw().

◆ calc_vert_factors() [3/4]

void blender::ed::sculpt_paint::auto_mask::calc_vert_factors ( const Depsgraph & depsgraph,
const Object & object,
const Cache * cache,
const bke::pbvh::BMeshNode & node,
const Set< BMVert *, 0 > & verts,
MutableSpan< float > factors )
inline

Definition at line 169 of file sculpt_automask.hh.

References calc_vert_factors(), and node.

◆ calc_vert_factors() [4/4]

void blender::ed::sculpt_paint::auto_mask::calc_vert_factors ( const Depsgraph & depsgraph,
const Object & object,
const Cache * cache,
const bke::pbvh::MeshNode & node,
Span< int > verts,
MutableSpan< float > factors )
inline

Definition at line 134 of file sculpt_automask.hh.

References calc_vert_factors(), blender::Editor, node, and PRF_scope.

◆ calc_view_normal_factor()

◆ calc_view_occlusion_factor()

◆ fill_topology_automasking_factors()

◆ fill_topology_automasking_factors_bmesh()

◆ fill_topology_automasking_factors_grids()

◆ fill_topology_automasking_factors_mesh()

◆ filter_cache_ensure()

◆ init_boundary_masking()

void blender::ed::sculpt_paint::auto_mask::init_boundary_masking ( Object & object,
const Depsgraph & depsgraph,
const BoundaryAutomaskMode mode,
const int propagation_steps,
MutableSpan< float > factors )
static

◆ init_boundary_masking_bmesh()

◆ init_boundary_masking_grids()

◆ init_boundary_masking_mesh()

◆ init_face_sets_masking()

◆ is_constrained_by_radius()

◆ is_enabled()

◆ mode_enabled() [1/2]

bool blender::ed::sculpt_paint::auto_mask::mode_enabled ( const Paint & paint,
const Brush * br,
const eAutomasking_flag mode )
static

◆ mode_enabled() [2/2]

bool blender::ed::sculpt_paint::auto_mask::mode_enabled ( const Sculpt & sd,
const Brush * br,
eAutomasking_flag mode )

◆ needs_factors_cache()

◆ normal_calc()

float blender::ed::sculpt_paint::auto_mask::normal_calc ( const float3 & compare_normal,
const float3 & normal,
float limit_lower,
float limit_upper )
static

◆ normal_occlusion_automasking_fill()

◆ process_cavity_factor()

◆ stroke_cache_ensure()

Cache & blender::ed::sculpt_paint::auto_mask::stroke_cache_ensure ( const Depsgraph & depsgraph,
const Paint & paint,
const Brush * brush,
Object & ob )

Variable Documentation

◆ EDGE_DISTANCE_INF

int blender::ed::sculpt_paint::auto_mask::EDGE_DISTANCE_INF = -1
staticconstexpr