20 #ifndef GeomAPI_Torus_H_
21 #define GeomAPI_Torus_H_
23 #include <GeomAPI_Interface.h>
37 GEOMAPI_EXPORT
GeomAPI_Torus(
const std::shared_ptr<GeomAPI_Pnt>& theCenter,
38 const std::shared_ptr<GeomAPI_Dir>& theDir,
39 const double theMajorRadius,
40 const double theMinorRadius);
43 GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Pnt>
center()
const;
46 GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Dir>
direction()
const;
56 typedef std::shared_ptr<GeomAPI_Torus> GeomTorusPtr;
3D direction defined by three normalized coordinates
Definition: GeomAPI_Dir.h:34
General base class for all interfaces in this package.
Definition: GeomAPI_Interface.h:38
3D point defined by three coordinates
Definition: GeomAPI_Pnt.h:38
Toroidal surface in 3D.
Definition: GeomAPI_Torus.h:34
GEOMAPI_EXPORT GeomAPI_Torus(const std::shared_ptr< GeomAPI_Pnt > &theCenter, const std::shared_ptr< GeomAPI_Dir > &theDir, const double theMajorRadius, const double theMinorRadius)
Creation of torus defined by center point, direction, major and minor radii.
Definition: GeomAPI_Torus.cpp:36
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pnt > center() const
Return center of the torus.
Definition: GeomAPI_Torus.cpp:46
GEOMAPI_EXPORT double majorRadius() const
Return major radius of the torus.
Definition: GeomAPI_Torus.cpp:60
GEOMAPI_EXPORT double minorRadius() const
Return minor radius of the torus.
Definition: GeomAPI_Torus.cpp:66
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Dir > direction() const
Return direction of the torus.
Definition: GeomAPI_Torus.cpp:53