vCSGNode
*CSG::Allocate(const string &classname)
v{
v CSGNode *pt=0;
v if(classname=="CSGLight")
pt= new CSGLight(LightCounter++);
v if(classname=="CSGGroup") pt= new
CSGGroup;
v if(classname=="CSGRotation") pt=
new CSGRotation;
v if(classname=="CSGTranslation")
pt= new CSGTranslation;
v
if(classname=="CSGTransformation") pt= new CSGTransformation;
v if(classname=="CSGAnimRotation")
pt= new CSGAnimRotation;
v
if(classname=="CSGAnimZPrecession") pt= new CSGAnimZPrecession;
v return pt;
v}
v