Blender V5.0
blender::ed::sculpt_paint::brushes::crease_cc Namespace Reference

Classes

struct  LocalData

Functions

static BLI_NOINLINE void translations_from_position (const Span< float3 > positions_eval, const Span< int > verts, const float3 &location, const MutableSpan< float3 > translations)
static BLI_NOINLINE void translations_from_position (const Span< float3 > positions, const float3 &location, const MutableSpan< float3 > translations)
static BLI_NOINLINE void add_offset_to_translations (const MutableSpan< float3 > translations, const Span< float > factors, const float3 &offset)
static void calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, const Brush &brush, const float3 &offset, const float strength, const MeshAttributeData &attribute_data, const Span< float3 > vert_normals, const bke::pbvh::MeshNode &node, Object &object, LocalData &tls, const PositionDeformData &position_data)
static void calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float3 &offset, const float strength, bke::pbvh::GridsNode &node, LocalData &tls)
static void calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const float3 &offset, const float strength, bke::pbvh::BMeshNode &node, LocalData &tls)
static void do_crease_or_blob_brush (const Depsgraph &depsgraph, const Sculpt &sd, const bool invert_strength, Object &object, const IndexMask &node_mask)

Function Documentation

◆ add_offset_to_translations()

BLI_NOINLINE void blender::ed::sculpt_paint::brushes::crease_cc::add_offset_to_translations ( const MutableSpan< float3 > translations,
const Span< float > factors,
const float3 & offset )
static

Definition at line 57 of file crease.cc.

◆ calc_bmesh()

void blender::ed::sculpt_paint::brushes::crease_cc::calc_bmesh ( const Depsgraph & depsgraph,
const Sculpt & sd,
Object & object,
const Brush & brush,
const float3 & offset,
const float strength,
bke::pbvh::BMeshNode & node,
LocalData & tls )
static

Definition at line 151 of file crease.cc.

◆ calc_faces()

void blender::ed::sculpt_paint::brushes::crease_cc::calc_faces ( const Depsgraph & depsgraph,
const Sculpt & sd,
const Brush & brush,
const float3 & offset,
const float strength,
const MeshAttributeData & attribute_data,
const Span< float3 > vert_normals,
const bke::pbvh::MeshNode & node,
Object & object,
LocalData & tls,
const PositionDeformData & position_data )
static

Definition at line 66 of file crease.cc.

◆ calc_grids()

void blender::ed::sculpt_paint::brushes::crease_cc::calc_grids ( const Depsgraph & depsgraph,
const Sculpt & sd,
Object & object,
const Brush & brush,
const float3 & offset,
const float strength,
bke::pbvh::GridsNode & node,
LocalData & tls )
static

Definition at line 114 of file crease.cc.

◆ do_crease_or_blob_brush()

void blender::ed::sculpt_paint::brushes::crease_cc::do_crease_or_blob_brush ( const Depsgraph & depsgraph,
const Sculpt & sd,
const bool invert_strength,
Object & object,
const IndexMask & node_mask )
static

Definition at line 187 of file crease.cc.

◆ translations_from_position() [1/2]

BLI_NOINLINE void blender::ed::sculpt_paint::brushes::crease_cc::translations_from_position ( const Span< float3 > positions,
const float3 & location,
const MutableSpan< float3 > translations )
static

Definition at line 48 of file crease.cc.

◆ translations_from_position() [2/2]

BLI_NOINLINE void blender::ed::sculpt_paint::brushes::crease_cc::translations_from_position ( const Span< float3 > positions_eval,
const Span< int > verts,
const float3 & location,
const MutableSpan< float3 > translations )
static

Definition at line 38 of file crease.cc.