Text archives Help
- From: thiago@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [Manta] r1750 - in trunk: Model/Primitives scenes
- Date: Mon, 1 Oct 2007 13:48:47 -0600 (MDT)
Author: thiago
Date: Mon Oct 1 13:48:47 2007
New Revision: 1750
Modified:
trunk/Model/Primitives/Torus.cc
trunk/scenes/complexitytest.cc
Log:
scenes/complexitytest.cc:
-Fixed bug that didn't let you pick the AS.
-Can select Torus
-Made cone look more pointy
Model/Primitives/Torus.cc:
-removed some dead code.
Modified: trunk/Model/Primitives/Torus.cc
==============================================================================
--- trunk/Model/Primitives/Torus.cc (original)
+++ trunk/Model/Primitives/Torus.cc Mon Oct 1 13:48:47 2007
@@ -171,9 +171,6 @@
{
rays.computeHitPositions();
for(int i=rays.begin(); i<rays.end(); i++) {
- const Vector O = rays.getOrigin(i);
- const Vector D = rays.getDirection(i);
-
Vector intersection_point = rays.getHitPosition(i);
float magnitude = Sqrt( intersection_point[ 0 ] * intersection_point[ 0
] +
intersection_point[ 1 ] * intersection_point[ 1
] );
Modified: trunk/scenes/complexitytest.cc
==============================================================================
--- trunk/scenes/complexitytest.cc (original)
+++ trunk/scenes/complexitytest.cc Mon Oct 1 13:48:47 2007
@@ -88,7 +88,6 @@
#include "UsePrivateCode.h"
#ifdef USE_PRIVATE_CODE
#include <Model/Groups/private/CGT.h>
-#include <fstream>
#endif
using namespace Manta;
@@ -96,11 +95,11 @@
AccelerationStructure* getAS(string type)
{
- if(type == "DynBVH")
+ if(type == "-DynBVH")
return new DynBVH();
#ifdef USE_PRIVATE_CODE
- if(type == "CGT")
+ if(type == "-CGT")
return new Grid();
#endif
@@ -173,7 +172,7 @@
} else {
cerr << "Valid options for complexitytest:\n"
<< " -num - number of objects to render\n"
- << " -type - type of objects to render [sphere, cone, disk,
box]\n"
+ << " -type - type of objects to render [sphere, cone, disk,
torus, box]\n"
<< " -model - load this mesh instead of using a builtin
primitive\n"
<< " -object_scale - scale the rendered objects by this amount\n"
<< " -cube_scale - scale the bounding cube the primitives are
rendered into\n"
@@ -219,7 +218,9 @@
} else if(object_type == "disk") {
object = new Disk(matl, Vector(0,0,0), Vector(0,0,1), 1.0,
Vector(1,0,0));
} else if(object_type == "cone") {
- object = new Cone(matl, 1.0, 1.0);
+ object = new Cone(matl, 1.0, 2.0);
+ } else if(object_type == "torus") {
+ object = new Torus(matl, 1.0, 2.0);
} else if(object_type == "box") {
object = new Cube(matl, Vector(-.5, -.5, -.5), Vector(.5, .5, .5));
} else {
- [Manta] r1750 - in trunk: Model/Primitives scenes, thiago, 10/01/2007
Archive powered by MHonArc 2.6.16.