00001 #include <esg/geometry/NurbsSphere.h> 00002 00003 using namespace esg; 00004 00005 NurbsSphere::NurbsSphere(const SDS& ss, 00006 AutoPtr<Intersector>* it, 00007 float x, float y, float z, float r) 00008 { 00009 ON_Sphere sphere(ON_3dPoint(x,y,z), r); 00010 ON_NurbsSurface* pSurface = new ON_NurbsSurface(); 00011 sphere.GetNurbForm(*pSurface); 00012 00013 _triangulate_surface(*pSurface, ss, it); 00014 delete pSurface; 00015 } 00016