ObjectPtr CompoundObject::Invert() { for(vector<ObjectPtr>::iterator Current_Sib = children.begin(); Current_Sib != children.end(); Current_Sib++) *Current_Sib = (*Current_Sib)->Invert(); Invert_Flag(this, INVERTED_FLAG); return this; }
static void Invert_Quadric(OBJECT *Object) { QUADRIC *Quadric = (QUADRIC *) Object; VScaleEq(Quadric->Square_Terms, -1.0); VScaleEq(Quadric->Mixed_Terms, -1.0); VScaleEq(Quadric->Terms, -1.0); Quadric->Constant *= -1.0; Invert_Flag(Object, INVERTED_FLAG); }
ObjectPtr ObjectBase::Invert() { Invert_Flag(this, INVERTED_FLAG); return this; }
void Torus::Invert() { Invert_Flag(this, INVERTED_FLAG); }
static void Invert_Box(OBJECT *Object) { Invert_Flag(Object, INVERTED_FLAG); }
static void Invert_IsoSurface(OBJECT* Object) { Invert_Flag(Object, INVERTED_FLAG); }