Blender V4.3
Hair::Curve Struct Reference

#include <hair.h>

Public Member Functions

int num_segments () const
 
void bounds_grow (const int k, const float3 *curve_keys, const float *curve_radius, BoundBox &bounds) const
 
void bounds_grow (const int k, const float4 *keys, BoundBox &bounds) const
 
void bounds_grow (float4 keys[4], BoundBox &bounds) const
 
void bounds_grow (float3 keys[4], BoundBox &bounds) const
 
void bounds_grow (const int k, const float3 *curve_keys, const float *curve_radius, const Transform &aligned_space, BoundBox &bounds) const
 
void motion_keys (const float3 *curve_keys, const float *curve_radius, const float4 *key_steps, size_t num_curve_keys, size_t num_steps, float time, size_t k0, size_t k1, float4 r_keys[2]) const
 
void cardinal_motion_keys (const float3 *curve_keys, const float *curve_radius, const float4 *key_steps, size_t num_curve_keys, size_t num_steps, float time, size_t k0, size_t k1, size_t k2, size_t k3, float4 r_keys[4]) const
 
void keys_for_step (const float3 *curve_keys, const float *curve_radius, const float4 *key_steps, size_t num_curve_keys, size_t num_steps, size_t step, size_t k0, size_t k1, float4 r_keys[2]) const
 
void cardinal_keys_for_step (const float3 *curve_keys, const float *curve_radius, const float4 *key_steps, size_t num_curve_keys, size_t num_steps, size_t step, size_t k0, size_t k1, size_t k2, size_t k3, float4 r_keys[4]) const
 

Public Attributes

int first_key
 
int num_keys
 

Detailed Description

Definition at line 19 of file hair.h.

Member Function Documentation

◆ bounds_grow() [1/5]

void Hair::Curve::bounds_grow ( const int k,
const float3 * curve_keys,
const float * curve_radius,
BoundBox & bounds ) const

◆ bounds_grow() [2/5]

void Hair::Curve::bounds_grow ( const int k,
const float3 * curve_keys,
const float * curve_radius,
const Transform & aligned_space,
BoundBox & bounds ) const

◆ bounds_grow() [3/5]

CCL_NAMESPACE_BEGIN void Hair::Curve::bounds_grow ( const int k,
const float4 * keys,
BoundBox & bounds ) const

◆ bounds_grow() [4/5]

void Hair::Curve::bounds_grow ( float3 keys[4],
BoundBox & bounds ) const

◆ bounds_grow() [5/5]

void Hair::Curve::bounds_grow ( float4 keys[4],
BoundBox & bounds ) const

◆ cardinal_keys_for_step()

void Hair::Curve::cardinal_keys_for_step ( const float3 * curve_keys,
const float * curve_radius,
const float4 * key_steps,
size_t num_curve_keys,
size_t num_steps,
size_t step,
size_t k0,
size_t k1,
size_t k2,
size_t k3,
float4 r_keys[4] ) const

Definition at line 238 of file hair.cpp.

References cardinal_keys_for_step(), make_float4(), max, min, Hair::num_keys(), and z().

Referenced by cardinal_keys_for_step().

◆ cardinal_motion_keys()

void Hair::Curve::cardinal_motion_keys ( const float3 * curve_keys,
const float * curve_radius,
const float4 * key_steps,
size_t num_curve_keys,
size_t num_steps,
float time,
size_t k0,
size_t k1,
size_t k2,
size_t k3,
float4 r_keys[4] ) const

Definition at line 146 of file hair.cpp.

References cardinal_motion_keys(), and min.

Referenced by cardinal_motion_keys().

◆ keys_for_step()

void Hair::Curve::keys_for_step ( const float3 * curve_keys,
const float * curve_radius,
const float4 * key_steps,
size_t num_curve_keys,
size_t num_steps,
size_t step,
size_t k0,
size_t k1,
float4 r_keys[2] ) const

Definition at line 194 of file hair.cpp.

References keys_for_step(), make_float4(), max, min, Hair::num_keys(), and z().

Referenced by keys_for_step().

◆ motion_keys()

void Hair::Curve::motion_keys ( const float3 * curve_keys,
const float * curve_radius,
const float4 * key_steps,
size_t num_curve_keys,
size_t num_steps,
float time,
size_t k0,
size_t k1,
float4 r_keys[2] ) const

Definition at line 120 of file hair.cpp.

References motion_keys().

Referenced by motion_keys().

◆ num_segments()

int Hair::Curve::num_segments ( ) const
inline

Definition at line 23 of file hair.h.

References num_keys.

Referenced by fill_shader_input().

Member Data Documentation

◆ first_key

int Hair::Curve::first_key

◆ num_keys

int Hair::Curve::num_keys

Definition at line 21 of file hair.h.

Referenced by bounds_grow(), and num_segments().


The documentation for this struct was generated from the following files: