Blender V4.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 Cacheactive_cache_get (const SculptSession &ss)
 
std::unique_ptr< Cachecache_init (const Depsgraph &depsgraph, const Sculpt &sd, Object &ob)
 
std::unique_ptr< Cachecache_init (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)
 
bool needs_normal (const SculptSession &ss, const Sculpt &sd, const Brush *brush)
 
bool brush_type_can_reuse_automask (int sculpt_brush_type)
 
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_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 &cache, 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 &cache, 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 &cache, 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 float calc_cavity_factor_mesh (const Depsgraph &depsgraph, const Cache &automasking, const Object &object, const int vert)
 
static float calc_cavity_factor_grids (const CCGKey &key, const Cache &automasking, const Object &object, const int vert)
 
static float 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 1309 of file sculpt_automasking.cc.

Function Documentation

◆ active_cache_get()

◆ boundary_propagation_steps()

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

◆ brush_type_can_reuse_automask()

bool blender::ed::sculpt_paint::auto_mask::brush_type_can_reuse_automask ( int sculpt_brush_type)

◆ cache_init() [1/2]

◆ cache_init() [2/2]

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

◆ cache_settings_update()

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

◆ calc_blurred_cavity_bmesh()

◆ calc_blurred_cavity_grids()

◆ calc_blurred_cavity_mesh()

◆ calc_brush_normal_factor()

◆ calc_cavity_factor()

◆ calc_cavity_factor_bmesh()

static float blender::ed::sculpt_paint::auto_mask::calc_cavity_factor_bmesh ( const Cache & automasking,
BMVert * vert,
const int vert_i )
static

◆ calc_cavity_factor_grids()

static float blender::ed::sculpt_paint::auto_mask::calc_cavity_factor_grids ( const CCGKey & key,
const Cache & automasking,
const Object & object,
const int vert )
static

◆ calc_cavity_factor_mesh()

static float 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()

static 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 & cache,
const bke::pbvh::MeshNode & node,
Span< int > face_indices,
MutableSpan< float > factors )

Calculate all auto-masking influence on each face.

Definition at line 751 of file sculpt_automasking.cc.

References 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_cavity_factor_mesh(), calc_view_normal_factor(), calc_view_occlusion_factor(), depsgraph, blender::bke::Face, blender::ed::sculpt_paint::auto_mask::Cache::factor, 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::ed::sculpt_paint::StrokeCache::paint_face_set, 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 & cache,
const bke::pbvh::GridsNode & node,
Span< int > grids,
MutableSpan< float > factors )

Definition at line 860 of file sculpt_automasking.cc.

References Geometry::attributes, BKE_subdiv_ccg_key_top_level(), 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_cavity_factor_grids(), calc_view_normal_factor(), calc_view_occlusion_factor(), depsgraph, blender::bke::Face, 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, 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::Span< T >::is_empty(), blender::ed::sculpt_paint::orig_position_data_lookup_grids(), blender::ed::sculpt_paint::StrokeCache::paint_face_set, 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::cloth::calc_forces_grids(), blender::ed::sculpt_paint::boundary::calc_grab_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::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 135 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 & cache,
const bke::pbvh::BMeshNode & node,
const Set< BMVert *, 0 > & verts,
MutableSpan< float > factors )

Definition at line 988 of file sculpt_automasking.cc.

References 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_cavity_factor_bmesh(), calc_view_normal_factor(), calc_view_occlusion_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, 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::orig_position_data_gather_bmesh(), blender::ed::sculpt_paint::StrokeCache::paint_face_set, BMesh::pdata, 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 & cache,
const bke::pbvh::MeshNode & node,
Span< int > verts,
MutableSpan< float > factors )

Calculate all auto-masking influence on each vertex.

Definition at line 640 of file sculpt_automasking.cc.

References 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_cavity_factor_mesh(), calc_view_normal_factor(), calc_view_occlusion_factor(), depsgraph, blender::bke::Face, blender::ed::sculpt_paint::auto_mask::Cache::factor, 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::orig_position_data_lookup_mesh(), blender::ed::sculpt_paint::StrokeCache::paint_face_set, 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::pose::calc_bmesh(), blender::ed::sculpt_paint::cloth::calc_constraint_factors(), blender::ed::sculpt_paint::filter::calc_enhance_details_filter(), 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::cloth::do_simulation_step(), blender::ed::sculpt_paint::sample_node_surface_bmesh(), and blender::ed::sculpt_paint::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 152 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 118 of file sculpt_automask.hh.

References calc_vert_factors(), depsgraph, and verts.

◆ calc_view_normal_factor()

◆ calc_view_occlusion_factor()

static bool blender::ed::sculpt_paint::auto_mask::calc_view_occlusion_factor ( const Depsgraph & depsgraph,
Cache & automasking,
const Object & object,
const int vert,
const float3 & vert_position )
static

◆ fill_topology_automasking_factors()

◆ fill_topology_automasking_factors_bmesh()

◆ fill_topology_automasking_factors_grids()

◆ fill_topology_automasking_factors_mesh()

◆ init_boundary_masking()

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

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

◆ init_boundary_masking_grids()

◆ init_boundary_masking_mesh()

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

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

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

Referenced by cache_init(), and is_enabled().

◆ needs_factors_cache()

◆ needs_normal()

bool blender::ed::sculpt_paint::auto_mask::needs_normal ( const SculptSession & ss,
const Sculpt & sd,
const Brush * brush )

◆ normal_calc()

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

Variable Documentation

◆ EDGE_DISTANCE_INF

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