29 const float *curve_radius,
35 const float *curve_radius,
41 const size_t num_steps,
48 const size_t num_steps,
84 void clear(
bool preserve_shaders = false) override;
96 const int first = curve_first_key[i];
97 const int next_first = (i + 1 < curve_first_key.size()) ? curve_first_key[i + 1] :
num_keys();
99 Curve curve = {first, next_first - first};
106 return attr ? attr->
size : 0;
111 return curve_first_key.size();
116 return num_keys() - curve_first_key.size();
138 void add_builtin_attributes();
Attribute * find(ustring name) const
int motion_step(const float time) const
Geometry(const NodeType *node_type, const Type type)
bool need_update_shadow_transparency() const
bool is_traceable() const
bool need_shadow_transparency() const
void pack_curves(Scene *scene, KernelCurve *curve, KernelCurveSegment *curve_segments)
Curve get_curve(const size_t i) const
void compute_bounds() override
size_t curve_segment_offset
size_t num_curves() const
bool update_shadow_transparency(Device *device, Scene *scene, Progress &progress)
void get_uv_tiles(ustring map, unordered_set< int > &tiles) override
void copy_center_to_motion_step(const int motion_step)
void resize_curves(const int numcurves, const int numkeys)
size_t num_segments() const
CurveShapeType curve_shape
void clear(bool preserve_shaders=false) override
void apply_transform(const Transform &tfm, const bool apply_to_motion) override
PrimitiveType primitive_type() const override
#define CCL_NAMESPACE_END
VecBase< float, D > step(VecOp< float, D >, VecOp< float, D >) RET
#define NODE_SOCKET_API_ARRAY(type_, name)
ccl_gpu_kernel_postfix ccl_global KernelWorkTile * tiles
void keys_for_step(const Attribute *attr_P, const Attribute *attr_R, const size_t step, size_t k0, size_t k1, float4 r_keys[2]) const
void cardinal_motion_keys(const Attribute *attr_P, const Attribute *attr_R, 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 bounds_grow(const int k, const packed_float3 *curve_keys, const float *curve_radius, BoundBox &bounds) const
void cardinal_keys_for_step(const Attribute *attr_P, const Attribute *attr_R, const size_t step, size_t k0, size_t k1, size_t k2, size_t k3, float4 r_keys[4]) const
void motion_keys(const Attribute *attr_P, const Attribute *attr_R, const size_t num_steps, const float time, size_t k0, size_t k1, float4 r_keys[2]) const