Blender V4.3
blender::ed::sculpt_paint::smooth_mask_cc Namespace Reference

Classes

struct  LocalData
 

Functions

static Vector< floatiteration_strengths (const float strength)
 
static void calc_smooth_masks_faces (const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const Span< bool > hide_poly, const Span< int > verts, const Span< float > masks, LocalData &tls, const MutableSpan< float > new_masks)
 
static void apply_masks_faces (const Depsgraph &depsgraph, const Brush &brush, const Span< float3 > positions_eval, const Span< float3 > vert_normals, const Span< bool > hide_vert, const bke::pbvh::MeshNode &node, const float strength, Object &object, LocalData &tls, const Span< float > mask_averages, MutableSpan< float > mask)
 
static void do_smooth_brush_mesh (const Depsgraph &depsgraph, const Brush &brush, Object &object, const IndexMask &node_mask, const float brush_strength)
 
static void calc_grids (const Depsgraph &depsgraph, Object &object, const Brush &brush, const float strength, const bke::pbvh::GridsNode &node, LocalData &tls)
 
static void calc_bmesh (const Depsgraph &depsgraph, Object &object, const int mask_offset, const Brush &brush, const float strength, bke::pbvh::BMeshNode &node, LocalData &tls)
 

Function Documentation

◆ apply_masks_faces()

static void blender::ed::sculpt_paint::smooth_mask_cc::apply_masks_faces ( const Depsgraph & depsgraph,
const Brush & brush,
const Span< float3 > positions_eval,
const Span< float3 > vert_normals,
const Span< bool > hide_vert,
const bke::pbvh::MeshNode & node,
const float strength,
Object & object,
LocalData & tls,
const Span< float > mask_averages,
MutableSpan< float > mask )
static

Definition at line 70 of file smooth_mask.cc.

◆ calc_bmesh()

static void blender::ed::sculpt_paint::smooth_mask_cc::calc_bmesh ( const Depsgraph & depsgraph,
Object & object,
const int mask_offset,
const Brush & brush,
const float strength,
bke::pbvh::BMeshNode & node,
LocalData & tls )
static

Definition at line 237 of file smooth_mask.cc.

◆ calc_grids()

static void blender::ed::sculpt_paint::smooth_mask_cc::calc_grids ( const Depsgraph & depsgraph,
Object & object,
const Brush & brush,
const float strength,
const bke::pbvh::GridsNode & node,
LocalData & tls )
static

Definition at line 185 of file smooth_mask.cc.

◆ calc_smooth_masks_faces()

static void blender::ed::sculpt_paint::smooth_mask_cc::calc_smooth_masks_faces ( const OffsetIndices< int > faces,
const Span< int > corner_verts,
const GroupedSpan< int > vert_to_face_map,
const Span< bool > hide_poly,
const Span< int > verts,
const Span< float > masks,
LocalData & tls,
const MutableSpan< float > new_masks )
static

Definition at line 55 of file smooth_mask.cc.

◆ do_smooth_brush_mesh()

static void blender::ed::sculpt_paint::smooth_mask_cc::do_smooth_brush_mesh ( const Depsgraph & depsgraph,
const Brush & brush,
Object & object,
const IndexMask & node_mask,
const float brush_strength )
static

Definition at line 120 of file smooth_mask.cc.

◆ iteration_strengths()

static Vector< float > blender::ed::sculpt_paint::smooth_mask_cc::iteration_strengths ( const float strength)
static

Definition at line 39 of file smooth_mask.cc.