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

Classes

struct  BMeshLocalData
 
struct  GridLocalData
 
struct  MeshLocalData
 

Functions

Relax Vertex
static void apply_positions_faces (const Sculpt &sd, const Span< int > verts, Object &object, const MutableSpan< float3 > translations, const PositionDeformData &position_data)
 
static void apply_positions_grids (const Sculpt &sd, const Span< int > grids, Object &object, const Span< float3 > positions, const MutableSpan< float3 > translations)
 
static void apply_positions_bmesh (const Sculpt &sd, const Set< BMVert *, 0 > verts, Object &object, const MutableSpan< float3 > translations, const Span< float3 > positions)
 
Relax Face Set
static std::array< float, 4 > iteration_strengths (const float strength, const int stroke_iteration)
 
static BLI_NOINLINE void calc_factors_faces (const Depsgraph &depsgraph, const Brush &brush, const Span< float3 > positions_eval, const Span< float3 > vert_normals, const GroupedSpan< int > vert_to_face_map, const MeshAttributeData &attribute_data, const float strength, const bool relax_face_sets, const Object &object, const bke::pbvh::MeshNode &node, MeshLocalData &tls, const MutableSpan< float > factors)
 
static void do_relax_face_sets_brush_mesh (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, Object &object, const IndexMask &node_mask, const float strength, const bool relax_face_sets)
 
static BLI_NOINLINE void calc_factors_grids (const Depsgraph &depsgraph, const Brush &brush, const OffsetIndices< int > faces, const Span< int > corner_verts, const GroupedSpan< int > vert_to_face_map, const Span< int > face_sets, const bke::pbvh::GridsNode &node, const float strength, const bool relax_face_sets, Object &object, GridLocalData &tls, const MutableSpan< float3 > positions, const MutableSpan< float > factors)
 
static void do_relax_face_sets_brush_grids (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, Object &object, const IndexMask &node_mask, const float strength, const bool relax_face_sets)
 
static void calc_factors_bmesh (const Depsgraph &depsgraph, Object &object, const Brush &brush, const int face_set_offset, bke::pbvh::BMeshNode &node, const float strength, const bool relax_face_sets, BMeshLocalData &tls, MutableSpan< float3 > positions, MutableSpan< float > factors)
 
static void do_relax_face_sets_brush_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, Object &object, const IndexMask &node_mask, const float strength, const bool relax_face_sets)
 
Topology Relax
static BLI_NOINLINE void calc_topology_relax_factors_faces (const Depsgraph &depsgraph, const Brush &brush, const float strength, const Object &object, const MeshAttributeData &attribute_data, const bke::pbvh::MeshNode &node, MeshLocalData &tls, const MutableSpan< float > factors)
 
static void do_topology_relax_brush_mesh (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, Object &object, const IndexMask &node_mask, const float strength)
 
static BLI_NOINLINE void calc_topology_relax_factors_grids (const Depsgraph &depsgraph, const Brush &brush, const float strength, const Object &object, const bke::pbvh::GridsNode &node, GridLocalData &tls, const MutableSpan< float3 > positions, const MutableSpan< float > factors)
 
static void do_topology_relax_brush_grids (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, Object &object, const IndexMask &node_mask, const float strength)
 
static void calc_topology_relax_factors_bmesh (const Depsgraph &depsgraph, Object &object, const Brush &brush, bke::pbvh::BMeshNode &node, const float strength, BMeshLocalData &tls, MutableSpan< float3 > positions, MutableSpan< float > factors)
 
static void do_topology_relax_brush_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, Object &object, const IndexMask &node_mask, const float strength)
 

Function Documentation

◆ apply_positions_bmesh()

static void blender::ed::sculpt_paint::relax_cc::apply_positions_bmesh ( const Sculpt & sd,
const Set< BMVert *, 0 > verts,
Object & object,
const MutableSpan< float3 > translations,
const Span< float3 > positions )
static

Definition at line 73 of file relax.cc.

◆ apply_positions_faces()

static void blender::ed::sculpt_paint::relax_cc::apply_positions_faces ( const Sculpt & sd,
const Span< int > verts,
Object & object,
const MutableSpan< float3 > translations,
const PositionDeformData & position_data )
static

Definition at line 49 of file relax.cc.

◆ apply_positions_grids()

static void blender::ed::sculpt_paint::relax_cc::apply_positions_grids ( const Sculpt & sd,
const Span< int > grids,
Object & object,
const Span< float3 > positions,
const MutableSpan< float3 > translations )
static

Definition at line 60 of file relax.cc.

◆ calc_factors_bmesh()

static void blender::ed::sculpt_paint::relax_cc::calc_factors_bmesh ( const Depsgraph & depsgraph,
Object & object,
const Brush & brush,
const int face_set_offset,
bke::pbvh::BMeshNode & node,
const float strength,
const bool relax_face_sets,
BMeshLocalData & tls,
MutableSpan< float3 > positions,
MutableSpan< float > factors )
static

Definition at line 349 of file relax.cc.

◆ calc_factors_faces()

static BLI_NOINLINE void blender::ed::sculpt_paint::relax_cc::calc_factors_faces ( const Depsgraph & depsgraph,
const Brush & brush,
const Span< float3 > positions_eval,
const Span< float3 > vert_normals,
const GroupedSpan< int > vert_to_face_map,
const MeshAttributeData & attribute_data,
const float strength,
const bool relax_face_sets,
const Object & object,
const bke::pbvh::MeshNode & node,
MeshLocalData & tls,
const MutableSpan< float > factors )
static

Definition at line 103 of file relax.cc.

◆ calc_factors_grids()

static BLI_NOINLINE void blender::ed::sculpt_paint::relax_cc::calc_factors_grids ( const Depsgraph & depsgraph,
const Brush & brush,
const OffsetIndices< int > faces,
const Span< int > corner_verts,
const GroupedSpan< int > vert_to_face_map,
const Span< int > face_sets,
const bke::pbvh::GridsNode & node,
const float strength,
const bool relax_face_sets,
Object & object,
GridLocalData & tls,
const MutableSpan< float3 > positions,
const MutableSpan< float > factors )
static

Definition at line 219 of file relax.cc.

◆ calc_topology_relax_factors_bmesh()

static void blender::ed::sculpt_paint::relax_cc::calc_topology_relax_factors_bmesh ( const Depsgraph & depsgraph,
Object & object,
const Brush & brush,
bke::pbvh::BMeshNode & node,
const float strength,
BMeshLocalData & tls,
MutableSpan< float3 > positions,
MutableSpan< float > factors )
static

Definition at line 671 of file relax.cc.

◆ calc_topology_relax_factors_faces()

static BLI_NOINLINE void blender::ed::sculpt_paint::relax_cc::calc_topology_relax_factors_faces ( const Depsgraph & depsgraph,
const Brush & brush,
const float strength,
const Object & object,
const MeshAttributeData & attribute_data,
const bke::pbvh::MeshNode & node,
MeshLocalData & tls,
const MutableSpan< float > factors )
static

Definition at line 454 of file relax.cc.

◆ calc_topology_relax_factors_grids()

static BLI_NOINLINE void blender::ed::sculpt_paint::relax_cc::calc_topology_relax_factors_grids ( const Depsgraph & depsgraph,
const Brush & brush,
const float strength,
const Object & object,
const bke::pbvh::GridsNode & node,
GridLocalData & tls,
const MutableSpan< float3 > positions,
const MutableSpan< float > factors )
static

Definition at line 558 of file relax.cc.

◆ do_relax_face_sets_brush_bmesh()

static void blender::ed::sculpt_paint::relax_cc::do_relax_face_sets_brush_bmesh ( const Depsgraph & depsgraph,
const Sculpt & sd,
const Brush & brush,
Object & object,
const IndexMask & node_mask,
const float strength,
const bool relax_face_sets )
static

Definition at line 389 of file relax.cc.

◆ do_relax_face_sets_brush_grids()

static void blender::ed::sculpt_paint::relax_cc::do_relax_face_sets_brush_grids ( const Depsgraph & depsgraph,
const Sculpt & sd,
const Brush & brush,
Object & object,
const IndexMask & node_mask,
const float strength,
const bool relax_face_sets )
static

Definition at line 272 of file relax.cc.

◆ do_relax_face_sets_brush_mesh()

static void blender::ed::sculpt_paint::relax_cc::do_relax_face_sets_brush_mesh ( const Depsgraph & depsgraph,
const Sculpt & sd,
const Brush & brush,
Object & object,
const IndexMask & node_mask,
const float strength,
const bool relax_face_sets )
static

Definition at line 145 of file relax.cc.

◆ do_topology_relax_brush_bmesh()

static void blender::ed::sculpt_paint::relax_cc::do_topology_relax_brush_bmesh ( const Depsgraph & depsgraph,
const Sculpt & sd,
const Brush & brush,
Object & object,
const IndexMask & node_mask,
const float strength )
static

Definition at line 711 of file relax.cc.

◆ do_topology_relax_brush_grids()

static void blender::ed::sculpt_paint::relax_cc::do_topology_relax_brush_grids ( const Depsgraph & depsgraph,
const Sculpt & sd,
const Brush & brush,
Object & object,
const IndexMask & node_mask,
const float strength )
static

Definition at line 599 of file relax.cc.

◆ do_topology_relax_brush_mesh()

static void blender::ed::sculpt_paint::relax_cc::do_topology_relax_brush_mesh ( const Depsgraph & depsgraph,
const Sculpt & sd,
const Brush & brush,
Object & object,
const IndexMask & node_mask,
const float strength )
static

Definition at line 490 of file relax.cc.

◆ iteration_strengths()

static std::array< float, 4 > blender::ed::sculpt_paint::relax_cc::iteration_strengths ( const float strength,
const int stroke_iteration )
static

Definition at line 92 of file relax.cc.