Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r1533 - in trunk/Model: Groups Primitives


Chronological Thread 
  • From: thiago@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r1533 - in trunk/Model: Groups Primitives
  • Date: Sun, 22 Jul 2007 12:03:42 -0600 (MDT)

Author: thiago
Date: Sun Jul 22 12:03:40 2007
New Revision: 1533

Modified:
   trunk/Model/Groups/Mesh.h
   trunk/Model/Groups/ObjGroup.h
   trunk/Model/Primitives/WaldTriangle.cc
Log:
Model/Groups/Mesh.h
Model/Groups/ObjGroup.h:
Moved the discardVertexNormals() from ObjGroup to Mesh since that's a
Mesh function and something that can be used by non obj models.

Model/Primitives/WaldTriangle.cc:
fixing typo in #ifdef introduced in previous commit.

Modified: trunk/Model/Groups/Mesh.h
==============================================================================
--- trunk/Model/Groups/Mesh.h   (original)
+++ trunk/Model/Groups/Mesh.h   Sun Jul 22 12:03:40 2007
@@ -51,6 +51,10 @@
     virtual bool isParallel() const { return true; }
 
     bool hasVertexNormals() const { return !normal_indices.empty(); }
+    void discardVertexNormals() { 
+      normal_indices.clear();
+      vertexNormals.clear();
+    }
     void interpolateNormals();
 
     //should not be allowed to use Group's add and set.

Modified: trunk/Model/Groups/ObjGroup.h
==============================================================================
--- trunk/Model/Groups/ObjGroup.h       (original)
+++ trunk/Model/Groups/ObjGroup.h       Sun Jul 22 12:03:40 2007
@@ -14,8 +14,6 @@
   public:
     ObjGroup( const char *filename ) throw (InputError);
     virtual ~ObjGroup();
-
-    void discardVertexNormals() { normal_indices.clear(); }
     
   private:
     void create_materials( Glm::GLMmodel *model );

Modified: trunk/Model/Primitives/WaldTriangle.cc
==============================================================================
--- trunk/Model/Primitives/WaldTriangle.cc      (original)
+++ trunk/Model/Primitives/WaldTriangle.cc      Sun Jul 22 12:03:40 2007
@@ -174,7 +174,7 @@
 }
 
 
-#ifdef SSSMANTA_SSE
+#ifdef MANTA_SSE
 
 //These should be defined in SSEDefs.h, but aren't...
 #define none4(mask) (getmask4( (mask) ) == 0x0)




  • [MANTA] r1533 - in trunk/Model: Groups Primitives, thiago, 07/22/2007

Archive powered by MHonArc 2.6.16.

Top of page