1 // File: BRepPrimAPI_MakeCone.cxx
2 // Created: Fri Jul 23 15:51:44 1993
3 // Author: Remi LEQUETTE
7 #include <BRepPrimAPI_MakeCone.ixx>
8 #include <BRepBuilderAPI.hxx>
18 static gp_Ax2 ConeComputeAxes() {
19 static Standard_Integer firsttime=1;
20 static Standard_Integer modif=0;
21 static Standard_Real cosa=cos(0.122);
22 static Standard_Real sina=sin(0.122);
23 static Standard_Real ux=1.0;
24 static Standard_Real uy=0.0;
27 modif = getenv("PRIM_CONE") != NULL;
31 Standard_Real nux = cosa*ux+sina*uy;
32 Standard_Real nuy =-sina*ux+cosa*uy;
34 return(gp_Ax2(gp::Origin(),gp::DZ(),gp_Dir(ux,uy,0.0)));
43 //=======================================================================
44 //function : BRepPrimAPI_MakeCone
46 //=======================================================================
48 BRepPrimAPI_MakeCone::BRepPrimAPI_MakeCone(const Standard_Real R1,
49 const Standard_Real R2,
50 const Standard_Real H) :
51 myCone(ConeComputeAxes(),R1, R2, H)
56 //=======================================================================
57 //function : BRepPrimAPI_MakeCone
59 //=======================================================================
61 BRepPrimAPI_MakeCone::BRepPrimAPI_MakeCone(const Standard_Real R1,
62 const Standard_Real R2,
63 const Standard_Real H,
64 const Standard_Real angle) :
71 //=======================================================================
72 //function : BRepPrimAPI_MakeCone
74 //=======================================================================
76 BRepPrimAPI_MakeCone::BRepPrimAPI_MakeCone(const gp_Ax2& Axes,
77 const Standard_Real R1,
78 const Standard_Real R2,
79 const Standard_Real H) :
80 myCone( Axes, R1, R2, H)
85 //=======================================================================
86 //function : BRepPrimAPI_MakeCone
88 //=======================================================================
90 BRepPrimAPI_MakeCone::BRepPrimAPI_MakeCone(const gp_Ax2& Axes,
91 const Standard_Real R1,
92 const Standard_Real R2,
93 const Standard_Real H,
94 const Standard_Real angle) :
95 myCone( Axes, R1, R2, H)
101 //=======================================================================
104 //=======================================================================
106 Standard_Address BRepPrimAPI_MakeCone::OneAxis()
112 //=======================================================================
115 //=======================================================================
117 BRepPrim_Cone& BRepPrimAPI_MakeCone::Cone()