20 #ifndef GeomAPI_Cylinder_H_
21 #define GeomAPI_Cylinder_H_
23 #include <GeomAPI_Interface.h>
37 GEOMAPI_EXPORT
GeomAPI_Cylinder(
const std::shared_ptr<GeomAPI_Pnt>& theLocation,
38 const std::shared_ptr<GeomAPI_Dir>& theAxis,
39 const double theRadius);
42 GEOMAPI_EXPORT
GeomAPI_Cylinder(
const std::shared_ptr<GeomAPI_Pnt>& theLocation,
43 const std::shared_ptr<GeomAPI_Dir>& theAxis,
44 const double theRadius,
45 const double theHeight);
48 GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Pnt>
location()
const;
51 GEOMAPI_EXPORT std::shared_ptr<GeomAPI_Dir>
axis()
const;
54 GEOMAPI_EXPORT
double radius()
const;
57 GEOMAPI_EXPORT
double height()
const;
63 GEOMAPI_EXPORT
bool isCoincident(
const std::shared_ptr<GeomAPI_Cylinder> theCylinder,
64 const double theTolerance = 1.e-7);
71 typedef std::shared_ptr<GeomAPI_Cylinder> GeomCylinderPtr;
Cylindrical surface in 3D.
Definition: GeomAPI_Cylinder.h:34
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Dir > axis() const
Return axis of the cylinder.
Definition: GeomAPI_Cylinder.cpp:61
GEOMAPI_EXPORT bool isInfinite() const
Return true is the cylinder is infinite.
Definition: GeomAPI_Cylinder.cpp:80
GEOMAPI_EXPORT double radius() const
Return radius of the cylinder.
Definition: GeomAPI_Cylinder.cpp:68
GEOMAPI_EXPORT bool isCoincident(const std::shared_ptr< GeomAPI_Cylinder > theCylinder, const double theTolerance=1.e-7)
Returns true if cylinders have same axis and radii.
Definition: GeomAPI_Cylinder.cpp:86
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pnt > location() const
Return location of the cylinder.
Definition: GeomAPI_Cylinder.cpp:54
GEOMAPI_EXPORT double height() const
Return height of the cylinder or Precision::Infinite() if the cylinder is infinite.
Definition: GeomAPI_Cylinder.cpp:74
GEOMAPI_EXPORT GeomAPI_Cylinder(const std::shared_ptr< GeomAPI_Pnt > &theLocation, const std::shared_ptr< GeomAPI_Dir > &theAxis, const double theRadius)
Creation of infinite cylinder defined by location, axis and radius.
Definition: GeomAPI_Cylinder.cpp:35
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