Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/hair.h
| Show All 21 Lines | |||||
| CCL_NAMESPACE_BEGIN | CCL_NAMESPACE_BEGIN | ||||
| class Hair : public Geometry { | class Hair : public Geometry { | ||||
| public: | public: | ||||
| NODE_DECLARE | NODE_DECLARE | ||||
| /* Hair Curve */ | /* Hair Curve */ | ||||
| struct Curve { | struct Curve { | ||||
| int first_key; | GET(int, first_key) | ||||
| int num_keys; | GET(int, num_keys) | ||||
| Curve(int first_key_, int num_keys_) : first_key(first_key_), num_keys(num_keys_) | |||||
| { | |||||
| } | |||||
| int num_segments() const | int num_segments() const | ||||
| { | { | ||||
| return num_keys - 1; | return num_keys - 1; | ||||
| } | } | ||||
| void bounds_grow(const int k, | void bounds_grow(const int k, | ||||
| const float3 *curve_keys, | const float3 *curve_keys, | ||||
| ▲ Show 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | public: | ||||
| }; | }; | ||||
| NODE_SOCKET_API(array<float3>, curve_keys) | NODE_SOCKET_API(array<float3>, curve_keys) | ||||
| NODE_SOCKET_API(array<float>, curve_radius) | NODE_SOCKET_API(array<float>, curve_radius) | ||||
| NODE_SOCKET_API(array<int>, curve_first_key) | NODE_SOCKET_API(array<int>, curve_first_key) | ||||
| NODE_SOCKET_API(array<int>, curve_shader) | NODE_SOCKET_API(array<int>, curve_shader) | ||||
| /* BVH */ | /* BVH */ | ||||
| size_t curvekey_offset; | GET_SET(size_t, curvekey_offset) | ||||
| CurveShapeType curve_shape; | GET_SET(CurveShapeType, curve_shape) | ||||
| public: | |||||
| /* Constructor/Destructor */ | /* Constructor/Destructor */ | ||||
| Hair(); | Hair(); | ||||
| ~Hair(); | ~Hair(); | ||||
| /* Geometry */ | /* Geometry */ | ||||
| void clear(bool preserve_shaders = false) override; | void clear(bool preserve_shaders = false) override; | ||||
| void resize_curves(int numcurves, int numkeys); | void resize_curves(int numcurves, int numkeys); | ||||
| ▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines | |||||