|
Blender V5.0
|
#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 (const float4 keys[4], BoundBox &bounds) const |
| void | bounds_grow (const 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, const size_t num_curve_keys, const size_t num_steps, const 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, const size_t num_curve_keys, const size_t num_steps, const 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, const size_t num_curve_keys, const size_t num_steps, const 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, const size_t num_curve_keys, const size_t num_steps, const 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 |
References Geometry::bounds, and step.
Definition at line 100 of file hair.cpp.
References Geometry::bounds, bounds_grow(), curvebounds(), make_float3(), max, P, w(), float3::x, float3::y, and float3::z.
| void Hair::Curve::bounds_grow | ( | const int | k, |
| const float3 * | curve_keys, | ||
| const float * | curve_radius, | ||
| BoundBox & | bounds ) const |
Definition at line 44 of file hair.cpp.
References Geometry::bounds, bounds_grow(), curvebounds(), first_key, max, min, num_keys, P, float3::x, float3::y, and float3::z.
Referenced by BVHBuild::add_reference_curves(), bounds_grow(), bounds_grow(), bounds_grow(), bounds_grow(), BVHUnaligned::compute_aligned_prim_boundbox(), Hair::compute_bounds(), and BVH2::refit_primitives().
| void Hair::Curve::bounds_grow | ( | const int | k, |
| const float3 * | curve_keys, | ||
| const float * | curve_radius, | ||
| const Transform & | aligned_space, | ||
| BoundBox & | bounds ) const |
Definition at line 69 of file hair.cpp.
References Geometry::bounds, bounds_grow(), curvebounds(), first_key, max, min, num_keys, P, transform_point(), float3::x, float3::y, and float3::z.
| CCL_NAMESPACE_BEGIN void Hair::Curve::bounds_grow | ( | const int | k, |
| const float4 * | keys, | ||
| BoundBox & | bounds ) const |
Definition at line 22 of file hair.cpp.
References Geometry::bounds, bounds_grow(), curvebounds(), first_key, make_float3(), max, min, num_keys, P, w(), float3::x, float3::y, and float3::z.
| void Hair::Curve::cardinal_keys_for_step | ( | const float3 * | curve_keys, |
| const float * | curve_radius, | ||
| const float4 * | key_steps, | ||
| const size_t | num_curve_keys, | ||
| const size_t | num_steps, | ||
| const size_t | step, | ||
| size_t | k0, | ||
| size_t | k1, | ||
| size_t | k2, | ||
| size_t | k3, | ||
| float4 | r_keys[4] ) const |
Definition at line 231 of file hair.cpp.
References cardinal_keys_for_step(), first_key, make_float4, max, min, num_keys, step, x, y, and z().
Referenced by cardinal_keys_for_step(), and cardinal_motion_keys().
| void Hair::Curve::cardinal_motion_keys | ( | const float3 * | curve_keys, |
| const float * | curve_radius, | ||
| const float4 * | key_steps, | ||
| const size_t | num_curve_keys, | ||
| const size_t | num_steps, | ||
| const float | time, | ||
| size_t | k0, | ||
| size_t | k1, | ||
| size_t | k2, | ||
| size_t | k3, | ||
| float4 | r_keys[4] ) const |
Definition at line 148 of file hair.cpp.
References cardinal_keys_for_step(), cardinal_motion_keys(), min, and step.
Referenced by BVHBuild::add_reference_curves(), and cardinal_motion_keys().
| void Hair::Curve::keys_for_step | ( | const float3 * | curve_keys, |
| const float * | curve_radius, | ||
| const float4 * | key_steps, | ||
| const size_t | num_curve_keys, | ||
| const size_t | num_steps, | ||
| const size_t | step, | ||
| size_t | k0, | ||
| size_t | k1, | ||
| float4 | r_keys[2] ) const |
Definition at line 196 of file hair.cpp.
References first_key, keys_for_step(), make_float4, max, min, num_keys, step, x, y, and z().
Referenced by keys_for_step(), and motion_keys().
| void Hair::Curve::motion_keys | ( | const float3 * | curve_keys, |
| const float * | curve_radius, | ||
| const float4 * | key_steps, | ||
| const size_t | num_curve_keys, | ||
| const size_t | num_steps, | ||
| const float | time, | ||
| size_t | k0, | ||
| size_t | k1, | ||
| float4 | r_keys[2] ) const |
Definition at line 122 of file hair.cpp.
References keys_for_step(), motion_keys(), and step.
Referenced by motion_keys().
|
inline |
Definition at line 22 of file hair.h.
References num_keys.
Referenced by Hair::compute_bounds(), fill_shader_input(), and Hair::pack_curves().
| int Hair::Curve::first_key |
Definition at line 19 of file hair.h.
Referenced by bounds_grow(), bounds_grow(), bounds_grow(), cardinal_keys_for_step(), BVHUnaligned::compute_aligned_space(), keys_for_step(), Hair::pack_curves(), and BVHSpatialSplit::split_curve_primitive().
| int Hair::Curve::num_keys |
Definition at line 20 of file hair.h.
Referenced by BVHBuild::add_reference_curves(), bounds_grow(), bounds_grow(), bounds_grow(), cardinal_keys_for_step(), count_curve_segments(), export_hair_curves_motion(), keys_for_step(), num_segments(), Hair::pack_curves(), and BVHSpatialSplit::split_object_reference().