Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Susano Pinto <andresusanopinto@gmail.com>2009-08-05 19:50:57 +0400
committerAndre Susano Pinto <andresusanopinto@gmail.com>2009-08-05 19:50:57 +0400
commit9565ef3087a17894fab4847bd5d8d6003e3d2a68 (patch)
tree9c5db333db9f3fb77f69e01c8833867942d4c955 /source/blender/render/intern/include/rayobject.h
parente4e9b569e1b766dc07ae074439a894be8d7cda49 (diff)
#define to store coordinates at VlakRen and not at VlakFace
adds some additional cost retrieving coords during ray-primitive tests, but reduces some memory usage (4*3floats per face)
Diffstat (limited to 'source/blender/render/intern/include/rayobject.h')
-rw-r--r--source/blender/render/intern/include/rayobject.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/render/intern/include/rayobject.h b/source/blender/render/intern/include/rayobject.h
index dddeebd5048..8f0dbed3176 100644
--- a/source/blender/render/intern/include/rayobject.h
+++ b/source/blender/render/intern/include/rayobject.h
@@ -78,9 +78,9 @@ extern "C" {
*/
/* defines where coordinates of rayface primitives are stored */
-#define RE_RAYFACE_COORDS_LOCAL
+//#define RE_RAYFACE_COORDS_LOCAL
//#define RE_RAYFACE_COORDS_POINTER
-//#define RE_RAYFACE_COORDS_VLAKREN
+#define RE_RAYFACE_COORDS_VLAKREN
typedef struct RayFace
{
@@ -105,13 +105,13 @@ typedef struct RayFace
#elif defined(RE_RAYFACE_COORDS_POINTER)
# define RE_rayface_isQuad(a) ((a)->v4)
#elif defined(RE_RAYFACE_COORDS_VLAKREN)
+# define RE_rayface_isQuad(a) ((((VlakRen*)((a)->face))->v4) != NULL)
#endif
struct RayObject
{
struct RayObjectAPI *api;
-
};