Triangle::Triangle(const Triangle &t) { p[0]=t.p[0]; p[1]=t.p[1]; p[2]=t.p[2]; calcNormal(); calcBB(); }
Triangle::Triangle() { p[0]=Point(1,0,0); p[1]=Point(0,1,0); p[2]=Point(0,0,1); calcNormal(); calcBB(); }
Triangle::Triangle(Point p1, Point p2, Point p3) { p[0]=p1; p[1]=p2; p[2]=p3; calcNormal(); calcBB(); }
/// sphere at center SphereVolume::SphereVolume() { center = GLVertex(0,0,0); radius = 1.0; calcBB(); }
PlaneVolume::PlaneVolume(bool s, unsigned int a, double p) { sign = s; axis = a; position = p; // FIXME, position=0 does not seem to work right! calcBB(); }
void BullCutterVolume::setPos(Point& p) { pos = p; calcBB(); }
CylCutterVolume::CylCutterVolume() { radius = 1.0; length = 1.0; pos = Point(0,0,0); calcBB(); }
/// sphere at center SphereOCTVolume::SphereOCTVolume() { center = Point(0,0,0); radius = 1.0; calcBB(); invert = false; }