2 #include <gp_Torus.hxx> 
    4 #include <BRepPrimAPI_MakeTorus.hxx> 
   15   mTorus  = 
new gp_Torus(torus);
 
   16   mSolid = 
new TopoDS_Shape(BRepPrimAPI_MakeTorus(torus.Position().Ax2(), torus.MajorRadius(), 
 
   17               torus.MinorRadius()).Solid());
 
   26   if (!other) 
return false;
 
   37     double dc = sqrt(
SQR(tol->Location().X() - tor->Location().X()) +
 
   38          SQR(tol->Location().Y() - tor->Location().Y()) +
 
   39          SQR(tol->Location().Z() - tor->Location().Z()));
 
   51   new TGeoTorus(vname, 
mTorus->MajorRadius(), 0.0, 
mTorus->MinorRadius(), 0.0, 360.0);