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

Classes

struct  LocalData
 
struct  SculptProjectVector
 

Functions

static void sculpt_project_v3_cache_init (SculptProjectVector *spvc, const float3 &plane)
 
static void sculpt_project_v3 (const SculptProjectVector *spvc, const float3 &vec, float3 &r_vec)
 
static float3 sculpt_rake_rotate (const StrokeCache &cache, const float3 &sculpt_co, const float3 &v_co, float factor)
 
static BLI_NOINLINE void calc_pinch_influence (const Brush &brush, const StrokeCache &cache, const float3 &grab_delta, const SculptProjectVector *spvc, const Span< float3 > positions, const Span< float > factors, const MutableSpan< float3 > translations)
 
static BLI_NOINLINE void calc_rake_rotation_influence (const StrokeCache &cache, const Span< float3 > positions, const Span< float > factors, const MutableSpan< float3 > translations)
 
static BLI_NOINLINE void calc_kelvinet_translation (const StrokeCache &cache, const Span< float3 > positions, const Span< float > factors, const MutableSpan< float3 > translations)
 
static void calc_faces (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, const SculptProjectVector *spvc, const float3 &grab_delta, const Span< float3 > vert_normals, const MeshAttributeData &attribute_data, bke::pbvh::MeshNode &node, LocalData &tls, const PositionDeformData &position_data)
 
static void calc_grids (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, SculptProjectVector *spvc, const float3 &grab_delta, bke::pbvh::GridsNode &node, LocalData &tls)
 
static void calc_bmesh (const Depsgraph &depsgraph, const Sculpt &sd, Object &object, const Brush &brush, SculptProjectVector *spvc, const float3 &grab_delta, bke::pbvh::BMeshNode &node, LocalData &tls)
 

Function Documentation

◆ calc_bmesh()

static void blender::ed::sculpt_paint::snake_hook_cc::calc_bmesh ( const Depsgraph & depsgraph,
const Sculpt & sd,
Object & object,
const Brush & brush,
SculptProjectVector * spvc,
const float3 & grab_delta,
bke::pbvh::BMeshNode & node,
LocalData & tls )
static

Definition at line 289 of file snake_hook.cc.

◆ calc_faces()

static void blender::ed::sculpt_paint::snake_hook_cc::calc_faces ( const Depsgraph & depsgraph,
const Sculpt & sd,
Object & object,
const Brush & brush,
const SculptProjectVector * spvc,
const float3 & grab_delta,
const Span< float3 > vert_normals,
const MeshAttributeData & attribute_data,
bke::pbvh::MeshNode & node,
LocalData & tls,
const PositionDeformData & position_data )
static

Definition at line 159 of file snake_hook.cc.

◆ calc_grids()

static void blender::ed::sculpt_paint::snake_hook_cc::calc_grids ( const Depsgraph & depsgraph,
const Sculpt & sd,
Object & object,
const Brush & brush,
SculptProjectVector * spvc,
const float3 & grab_delta,
bke::pbvh::GridsNode & node,
LocalData & tls )
static

Definition at line 224 of file snake_hook.cc.

◆ calc_kelvinet_translation()

static BLI_NOINLINE void blender::ed::sculpt_paint::snake_hook_cc::calc_kelvinet_translation ( const StrokeCache & cache,
const Span< float3 > positions,
const Span< float > factors,
const MutableSpan< float3 > translations )
static

Definition at line 145 of file snake_hook.cc.

◆ calc_pinch_influence()

static BLI_NOINLINE void blender::ed::sculpt_paint::snake_hook_cc::calc_pinch_influence ( const Brush & brush,
const StrokeCache & cache,
const float3 & grab_delta,
const SculptProjectVector * spvc,
const Span< float3 > positions,
const Span< float > factors,
const MutableSpan< float3 > translations )
static

Definition at line 88 of file snake_hook.cc.

◆ calc_rake_rotation_influence()

static BLI_NOINLINE void blender::ed::sculpt_paint::snake_hook_cc::calc_rake_rotation_influence ( const StrokeCache & cache,
const Span< float3 > positions,
const Span< float > factors,
const MutableSpan< float3 > translations )
static

Definition at line 132 of file snake_hook.cc.

◆ sculpt_project_v3()

static void blender::ed::sculpt_paint::snake_hook_cc::sculpt_project_v3 ( const SculptProjectVector * spvc,
const float3 & vec,
float3 & r_vec )
static

Calculate the projection.

Definition at line 65 of file snake_hook.cc.

◆ sculpt_project_v3_cache_init()

static void blender::ed::sculpt_paint::snake_hook_cc::sculpt_project_v3_cache_init ( SculptProjectVector * spvc,
const float3 & plane )
static
Parameters
planeDirection, can be any length.

Definition at line 54 of file snake_hook.cc.

◆ sculpt_rake_rotate()

static float3 blender::ed::sculpt_paint::snake_hook_cc::sculpt_rake_rotate ( const StrokeCache & cache,
const float3 & sculpt_co,
const float3 & v_co,
float factor )
static

Definition at line 75 of file snake_hook.cc.