Blender V4.3
relax.cc File Reference

Go to the source code of this file.

Classes

struct  blender::ed::sculpt_paint::relax_cc::MeshLocalData
 
struct  blender::ed::sculpt_paint::relax_cc::GridLocalData
 
struct  blender::ed::sculpt_paint::relax_cc::BMeshLocalData
 

Namespaces

namespace  blender
 
namespace  blender::ed
 
namespace  blender::ed::sculpt_paint
 
namespace  blender::ed::sculpt_paint::relax_cc
 

Functions

void blender::ed::sculpt_paint::do_relax_face_sets_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask)
 
void blender::ed::sculpt_paint::do_topology_relax_brush (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const IndexMask &node_mask)
 
Relax Vertex
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 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 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)
 
Relax Face Set
static std::array< float, 4 > blender::ed::sculpt_paint::relax_cc::iteration_strengths (const float strength, const int stroke_iteration)
 
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 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 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 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 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 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)
 
Topology Relax
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 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 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 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 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 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)