SHAPER  9.12.0
GeomAPI_Cone Class Reference

Conical surface in 3D. More...

Inheritance diagram for GeomAPI_Cone:
Inheritance graph

Public Member Functions

GEOMAPI_EXPORT GeomAPI_Cone (const std::shared_ptr< GeomAPI_Pnt > &theApex, const std::shared_ptr< GeomAPI_Dir > &theAxis, const double theSemiAngle)
 Creation of infinite cone defined by apex, axis and semi-angle. More...
 
GEOMAPI_EXPORT GeomAPI_Cone (const std::shared_ptr< GeomAPI_Pnt > &theLocation, const std::shared_ptr< GeomAPI_Dir > &theAxis, const double theSemiAngle, const double theRadius)
 Creation of semi-infinite cone by location and radius of reference circle, axis, semi-angle. More...
 
GEOMAPI_EXPORT GeomAPI_Cone (const std::shared_ptr< GeomAPI_Pnt > &theLocation, const std::shared_ptr< GeomAPI_Dir > &theAxis, const double theSemiAngle, const double theRadius1, const double theRadius2)
 Creating of cone by location of reference circle, axis, semi-angle and radii of boundary circles. More...
 
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pntapex () const
 Return apex of the cone. More...
 
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pntlocation () const
 Return location of the cone (center of the circle nearest to the apex) More...
 
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Diraxis () const
 Return axis of the cone. More...
 
GEOMAPI_EXPORT double semiAngle () const
 Return semi-angle of the cone. More...
 
GEOMAPI_EXPORT double radius1 () const
 Return first radius of the cone or Precision::Infinite() if the cone is infinite. More...
 
GEOMAPI_EXPORT double radius2 () const
 Return second radius of the cone or Precision::Infinite() if the cone is infinite. More...
 
GEOMAPI_EXPORT double height () const
 Return height of the cone. More...
 
GEOMAPI_EXPORT bool isSemiInfinite () const
 Return true is the cone is semi-infinite. More...
 
GEOMAPI_EXPORT bool isInfinite () const
 Return true is the cone is infinite. More...
 
template<class T >
T * implPtr ()
 Returns the pointer to the impl. More...
 
template<class T >
const T * implPtr () const
 Returns the pointer to the impl. More...
 
template<class T >
const T & impl () const
 Returns the reference object of the impl. More...
 
template<class T >
void setImpl (T *theImpl)
 Updates the impl (deletes the old one) More...
 
GEOMAPI_EXPORT bool empty () const
 Returns true if the impl is empty. More...
 

Detailed Description

Conical surface in 3D.

Constructor & Destructor Documentation

◆ GeomAPI_Cone() [1/3]

GeomAPI_Cone::GeomAPI_Cone ( const std::shared_ptr< GeomAPI_Pnt > &  theApex,
const std::shared_ptr< GeomAPI_Dir > &  theAxis,
const double  theSemiAngle 
)

Creation of infinite cone defined by apex, axis and semi-angle.

◆ GeomAPI_Cone() [2/3]

GeomAPI_Cone::GeomAPI_Cone ( const std::shared_ptr< GeomAPI_Pnt > &  theLocation,
const std::shared_ptr< GeomAPI_Dir > &  theAxis,
const double  theSemiAngle,
const double  theRadius 
)

Creation of semi-infinite cone by location and radius of reference circle, axis, semi-angle.

◆ GeomAPI_Cone() [3/3]

GeomAPI_Cone::GeomAPI_Cone ( const std::shared_ptr< GeomAPI_Pnt > &  theLocation,
const std::shared_ptr< GeomAPI_Dir > &  theAxis,
const double  theSemiAngle,
const double  theRadius1,
const double  theRadius2 
)

Creating of cone by location of reference circle, axis, semi-angle and radii of boundary circles.

Member Function Documentation

◆ apex()

std::shared_ptr< GeomAPI_Pnt > GeomAPI_Cone::apex ( ) const

Return apex of the cone.

◆ location()

std::shared_ptr< GeomAPI_Pnt > GeomAPI_Cone::location ( ) const

Return location of the cone (center of the circle nearest to the apex)

◆ axis()

std::shared_ptr< GeomAPI_Dir > GeomAPI_Cone::axis ( ) const

Return axis of the cone.

◆ semiAngle()

double GeomAPI_Cone::semiAngle ( ) const

Return semi-angle of the cone.

◆ radius1()

double GeomAPI_Cone::radius1 ( ) const

Return first radius of the cone or Precision::Infinite() if the cone is infinite.

◆ radius2()

double GeomAPI_Cone::radius2 ( ) const

Return second radius of the cone or Precision::Infinite() if the cone is infinite.

◆ height()

double GeomAPI_Cone::height ( ) const

Return height of the cone.

◆ isSemiInfinite()

bool GeomAPI_Cone::isSemiInfinite ( ) const

Return true is the cone is semi-infinite.

◆ isInfinite()

bool GeomAPI_Cone::isInfinite ( ) const

Return true is the cone is infinite.

◆ implPtr() [1/2]

template<class T >
T* GeomAPI_Interface::implPtr ( )
inlineinherited

Returns the pointer to the impl.

◆ implPtr() [2/2]

template<class T >
const T* GeomAPI_Interface::implPtr ( ) const
inlineinherited

Returns the pointer to the impl.

◆ impl()

template<class T >
const T& GeomAPI_Interface::impl ( ) const
inlineinherited

Returns the reference object of the impl.

◆ setImpl()

template<class T >
void GeomAPI_Interface::setImpl ( T *  theImpl)
inlineinherited

Updates the impl (deletes the old one)

◆ empty()

bool GeomAPI_Interface::empty ( ) const
inherited

Returns true if the impl is empty.