Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] trouble with Triangle


Chronological Thread 
  • From: Thiago Ize <thiago@cs.utah.edu>
  • To: manta@sci.utah.edu
  • Subject: [MANTA] trouble with Triangle
  • Date: Sat, 14 May 2005 19:01:53 -0600

Am I missing something or is the Triangle class having issues? Try running this code for example:
   Group *model = new Group();
model->add(new Triangle(matl, Point(0,0,0), Point(2,2,0), Point(0,2,0)));
model->add(new Triangle(matl, Point(0,2,0), Point(2,2,0), Point(0,0,0)));
   group->add(model);
I would expect the output to be two triangles in the same spot, but instead I see the second triangle shifted away.

I was under the impression though that this was working fine yesterday, so I'm not sure if maybe it's because I'm running this on a different system. In any case, any ideas on whether it's me or the code?

Thanks,
Thiago





Archive powered by MHonArc 2.6.16.

Top of page