From 934767cf7f51ae82224138de2ffcafe7bae2b8fa Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sat, 29 Mar 2014 13:03:46 +0100 Subject: Cycles code refactor: change curve key to float4 for easier storage as attribute. --- intern/cycles/render/mesh.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'intern/cycles/render/mesh.h') diff --git a/intern/cycles/render/mesh.h b/intern/cycles/render/mesh.h index 9c59aca4c72..5ae8f1f6033 100644 --- a/intern/cycles/render/mesh.h +++ b/intern/cycles/render/mesh.h @@ -46,6 +46,8 @@ public: /* Mesh Triangle */ struct Triangle { int v[3]; + + void bounds_grow(const float3 *verts, BoundBox& bounds) const; }; /* Mesh Curve */ @@ -55,11 +57,8 @@ public: uint shader; int num_segments() { return num_keys - 1; } - }; - struct CurveKey { - float3 co; - float radius; + void bounds_grow(const int k, const float4 *curve_keys, BoundBox& bounds) const; }; /* Displacement */ @@ -77,7 +76,7 @@ public: vector shader; vector smooth; - vector curve_keys; + vector curve_keys; /* co + radius */ vector curves; vector used_shaders; -- cgit v1.2.3