示例#1
0
Triangle::Triangle(const Triangle &t) {
    p[0]=t.p[0];
    p[1]=t.p[1];
    p[2]=t.p[2];
    calcNormal();
    calcBB();
}
示例#2
0
Triangle::Triangle() {
    p[0]=Point(1,0,0);
    p[1]=Point(0,1,0);
    p[2]=Point(0,0,1);
    calcNormal();
    calcBB();
}
示例#3
0
Triangle::Triangle(Point p1, Point p2, Point p3) {
    p[0]=p1;
    p[1]=p2;
    p[2]=p3;
    calcNormal();
    calcBB();
}
示例#4
0
/// sphere at center
SphereVolume::SphereVolume() {
    center = GLVertex(0,0,0);
    radius = 1.0;
    calcBB();
}
示例#5
0
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();
}
示例#6
0
void BullCutterVolume::setPos(Point& p) {
    pos = p;
    calcBB();
}
示例#7
0
CylCutterVolume::CylCutterVolume() {
    radius = 1.0;
    length = 1.0;
    pos = Point(0,0,0);
    calcBB();
}
示例#8
0
/// sphere at center
SphereOCTVolume::SphereOCTVolume() {
    center = Point(0,0,0);
    radius = 1.0;
    calcBB();
    invert = false;
}