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

Classes

struct  Settings
struct  Cache
struct  AccumulatedVert

Enumerations

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

Functions

const Cacheactive_cache_get (const SculptSession &ss)
std::unique_ptr< Cachecache_init (const Depsgraph &depsgraph, const Sculpt &sd, const Brush *brush, Object &ob)
Cachefilter_cache_ensure (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob)
Cachestroke_cache_ensure (const Depsgraph &depsgraph, const Sculpt &sd, const Brush *brush, Object &ob)
bool mode_enabled (const Sculpt &sd, const Brush *br, eAutomasking_flag mode)
bool is_enabled (const Sculpt &sd, 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_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 int calc_effective_bits (const Sculpt &sd, 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 Sculpt &sd, const Brush *brush)
static bool needs_factors_cache (const Sculpt &sd, 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 Sculpt &sd, Object &ob, const Span< float3 > vert_positions, MutableSpan< float > factors)
static void fill_topology_automasking_factors_grids (const Sculpt &sd, Object &ob, const SubdivCCG &subdiv_ccg, MutableSpan< float > factors)
static void fill_topology_automasking_factors_bmesh (const Sculpt &sd, Object &ob, BMesh &bm, MutableSpan< float > factors)
static void fill_topology_automasking_factors (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, MutableSpan< float > factors)
static void init_face_sets_masking (const Sculpt &sd, 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 Sculpt &sd, 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 1303 of file sculpt_automasking.cc.

Function Documentation

◆ active_cache_get()

◆ boundary_propagation_steps()

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

◆ cache_init()

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

◆ cache_settings_update()

void blender::ed::sculpt_paint::auto_mask::cache_settings_update ( Cache & automasking,
Object & object,
const Sculpt & sd,
const Brush * brush )
static

Definition at line 1519 of file sculpt_automasking.cc.

References blender::ed::sculpt_paint::face_set::active_face_set_get(), Brush::automasking_cavity_blur_steps, Sculpt::automasking_cavity_blur_steps, Brush::automasking_cavity_curve, Sculpt::automasking_cavity_curve, Brush::automasking_cavity_factor, Sculpt::automasking_cavity_factor, Brush::automasking_flags, Brush::automasking_start_normal_falloff, Sculpt::automasking_start_normal_falloff, Brush::automasking_start_normal_limit, Sculpt::automasking_start_normal_limit, Brush::automasking_view_normal_falloff, Sculpt::automasking_view_normal_falloff, Brush::automasking_view_normal_limit, Sculpt::automasking_view_normal_limit, BRUSH_AUTOMASKING_BRUSH_NORMAL, BRUSH_AUTOMASKING_CAVITY_ALL, BRUSH_AUTOMASKING_VIEW_NORMAL, cache_settings_update(), calc_effective_bits(), blender::ed::sculpt_paint::auto_mask::Settings::cavity_blur_steps, blender::ed::sculpt_paint::auto_mask::Settings::cavity_curve, blender::ed::sculpt_paint::auto_mask::Settings::cavity_factor, blender::ed::sculpt_paint::auto_mask::Settings::flags, blender::ed::sculpt_paint::auto_mask::Settings::initial_face_set, blender::ed::sculpt_paint::auto_mask::Cache::settings, blender::ed::sculpt_paint::auto_mask::Settings::start_normal_falloff, blender::ed::sculpt_paint::auto_mask::Settings::start_normal_limit, blender::ed::sculpt_paint::auto_mask::Settings::view_normal_falloff, and blender::ed::sculpt_paint::auto_mask::Settings::view_normal_limit.

Referenced by cache_init(), and 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()

int blender::ed::sculpt_paint::auto_mask::calc_effective_bits ( const Sculpt & sd,
const Brush * brush )
static

◆ calc_face_factors()

void blender::ed::sculpt_paint::auto_mask::calc_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.

Definition at line 733 of file sculpt_automasking.cc.

References BLI_assert, BLI_SCOPED_DEFER, SculptVertexInfo::boundary, blender::ed::sculpt_paint::StrokeCache::brush, BRUSH_AUTOMASKING_BOUNDARY_EDGES, BRUSH_AUTOMASKING_BOUNDARY_FACE_SETS, BRUSH_AUTOMASKING_BRUSH_NORMAL, BRUSH_AUTOMASKING_CAVITY_ALL, BRUSH_AUTOMASKING_FACE_SETS, BRUSH_AUTOMASKING_TOPOLOGY, BRUSH_AUTOMASKING_VIEW_NORMAL, BRUSH_AUTOMASKING_VIEW_OCCLUSION, SculptSession::cache, calc_brush_normal_factor(), calc_view_normal_factor(), calc_view_occlusion_factor(), blender::ed::sculpt_paint::auto_mask::Cache::cavity_factor, depsgraph, blender::bke::Face, faces, blender::ed::sculpt_paint::auto_mask::Cache::factor, SculptSession::filter_cache, blender::ed::sculpt_paint::auto_mask::Settings::flags, i, 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, Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::bke::AttributeAccessor::lookup(), blender::ed::sculpt_paint::StrokeCache::paint_face_set, process_cavity_factor(), blender::math::rcp(), Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_DRAW_FACE_SETS, blender::ed::sculpt_paint::auto_mask::Cache::settings, blender::Span< T >::size(), blender::Span< T >::slice(), sum(), blender::ed::sculpt_paint::auto_mask::Settings::topology_use_brush_limit, blender::ed::sculpt_paint::face_set::vert_face_set_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(), blender::bke::pbvh::vert_positions_eval(), and SculptSession::vertex_info.

◆ 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 844 of file sculpt_automasking.cc.

References Geometry::attributes, BKE_subdiv_ccg_key_top_level(), BLI_assert, SculptVertexInfo::boundary, blender::ed::sculpt_paint::StrokeCache::brush, BRUSH_AUTOMASKING_BOUNDARY_EDGES, BRUSH_AUTOMASKING_BOUNDARY_FACE_SETS, BRUSH_AUTOMASKING_BRUSH_NORMAL, BRUSH_AUTOMASKING_CAVITY_ALL, BRUSH_AUTOMASKING_FACE_SETS, BRUSH_AUTOMASKING_TOPOLOGY, BRUSH_AUTOMASKING_VIEW_NORMAL, BRUSH_AUTOMASKING_VIEW_OCCLUSION, SculptSession::cache, calc_brush_normal_factor(), calc_view_normal_factor(), calc_view_occlusion_factor(), blender::ed::sculpt_paint::auto_mask::Cache::cavity_factor, depsgraph, blender::bke::Face, faces, blender::ed::sculpt_paint::auto_mask::Cache::factor, SculptSession::filter_cache, blender::ed::sculpt_paint::auto_mask::Settings::flags, SubdivCCGCoord::from_index(), CCGKey::grid_area, i, 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, Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::Span< T >::is_empty(), blender::bke::AttributeAccessor::lookup(), blender::ed::sculpt_paint::orig_position_data_lookup_grids(), blender::ed::sculpt_paint::StrokeCache::paint_face_set, process_cavity_factor(), Brush::sculpt_brush_type, SCULPT_BRUSH_TYPE_DRAW_FACE_SETS, SCULPT_FACE_SET_NONE, blender::ed::sculpt_paint::auto_mask::Cache::settings, 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(), blender::ed::sculpt_paint::boundary::vert_is_boundary(), and SculptSession::vertex_info.

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::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(), 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 148 of file sculpt_automask.hh.

References calc_grids_factors(), and depsgraph.

◆ 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 974 of file sculpt_automasking.cc.

References BLI_assert, BLI_SCOPED_DEFER, bm, SculptSession::bm, BM_elem_index_get, SculptSession::bm_log, blender::ed::sculpt_paint::StrokeCache::brush, BRUSH_AUTOMASKING_BOUNDARY_EDGES, BRUSH_AUTOMASKING_BOUNDARY_FACE_SETS, BRUSH_AUTOMASKING_BRUSH_NORMAL, BRUSH_AUTOMASKING_CAVITY_ALL, BRUSH_AUTOMASKING_FACE_SETS, BRUSH_AUTOMASKING_TOPOLOGY, BRUSH_AUTOMASKING_VIEW_NORMAL, BRUSH_AUTOMASKING_VIEW_OCCLUSION, SculptSession::cache, calc_brush_normal_factor(), calc_view_normal_factor(), calc_view_occlusion_factor(), blender::ed::sculpt_paint::auto_mask::Cache::cavity_factor, CD_PROP_INT32, CustomData_get_offset_named(), depsgraph, blender::ed::sculpt_paint::auto_mask::Cache::factor, SculptSession::filter_cache, blender::ed::sculpt_paint::auto_mask::Settings::flags, i, blender::ed::sculpt_paint::auto_mask::Settings::initial_face_set, blender::ed::sculpt_paint::auto_mask::Settings::initial_island_nr, Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::ed::sculpt_paint::orig_position_data_gather_bmesh(), blender::ed::sculpt_paint::StrokeCache::paint_face_set, process_cavity_factor(), Brush::sculpt_brush_type, 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_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(), and verts.

◆ 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 620 of file sculpt_automasking.cc.

References BLI_assert, SculptVertexInfo::boundary, blender::ed::sculpt_paint::StrokeCache::brush, BRUSH_AUTOMASKING_BOUNDARY_EDGES, BRUSH_AUTOMASKING_BOUNDARY_FACE_SETS, BRUSH_AUTOMASKING_BRUSH_NORMAL, BRUSH_AUTOMASKING_CAVITY_ALL, BRUSH_AUTOMASKING_FACE_SETS, BRUSH_AUTOMASKING_TOPOLOGY, BRUSH_AUTOMASKING_VIEW_NORMAL, BRUSH_AUTOMASKING_VIEW_OCCLUSION, SculptSession::cache, calc_brush_normal_factor(), calc_view_normal_factor(), calc_view_occlusion_factor(), blender::ed::sculpt_paint::auto_mask::Cache::cavity_factor, depsgraph, blender::bke::Face, blender::ed::sculpt_paint::auto_mask::Cache::factor, SculptSession::filter_cache, blender::ed::sculpt_paint::auto_mask::Settings::flags, i, blender::ed::sculpt_paint::auto_mask::Settings::initial_face_set, blender::ed::sculpt_paint::auto_mask::Settings::initial_island_nr, Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::bke::AttributeAccessor::lookup(), blender::ed::sculpt_paint::orig_position_data_lookup_mesh(), blender::ed::sculpt_paint::StrokeCache::paint_face_set, process_cavity_factor(), Brush::sculpt_brush_type, 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_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(), blender::bke::pbvh::vert_positions_eval(), SculptSession::vertex_info, and verts.

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::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(), 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::cloth::do_simulation_step(), blender::ed::sculpt_paint::color::do_smear_brush_task(), blender::ed::sculpt_paint::brushes::sample_node_surface_bmesh(), and blender::ed::sculpt_paint::brushes::sample_node_surface_mesh().

◆ 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 165 of file sculpt_automask.hh.

References calc_vert_factors(), depsgraph, and verts.

◆ 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 131 of file sculpt_automask.hh.

References calc_vert_factors(), depsgraph, and verts.

◆ 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()

Cache & blender::ed::sculpt_paint::auto_mask::filter_cache_ensure ( const Depsgraph & depsgraph,
const Sculpt & sd,
Object & ob )

◆ 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()

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

Definition at line 54 of file sculpt_automasking.cc.

References Brush::automasking_flags, and Sculpt::automasking_flags.

Referenced by cache_init(), and is_enabled().

◆ needs_factors_cache()

bool blender::ed::sculpt_paint::auto_mask::needs_factors_cache ( const Sculpt & sd,
const Brush * brush )
static

◆ 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 Sculpt & sd,
const Brush * brush,
Object & ob )

Variable Documentation

◆ EDGE_DISTANCE_INF

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