SHAPER  9.12.0
GeomAlgoAPI_CanonicalRecognition Class Reference

Static Public Member Functions

static bool isPlane (const GeomShapePtr &theShape, double theTolerance, std::vector< double > &theNormal, std::vector< double > &theOrigin)
 Check if the shape is planar. More...
 
static bool isSphere (const GeomShapePtr &theShape, double theTolerance, std::vector< double > &theOrigin, double &theRadius)
 Check if shape is spherical. More...
 
static bool isCone (const GeomShapePtr &theShape, double theTolerance, std::vector< double > &theAxis, std::vector< double > &theApex, double &theHalfAngle)
 Check if shape is conical. More...
 
static bool isCylinder (const GeomShapePtr &theShape, double theTolerance, std::vector< double > &theAxis, std::vector< double > &theOrigin, double &theRadius)
 Check if shape is cylinder. More...
 
static bool isLine (const GeomShapePtr &theEdge, double theTolerance, std::vector< double > &theDir, std::vector< double > &theOrigin)
 Check if edge / wire is line. More...
 
static bool isCircle (const GeomShapePtr &theEdge, double theTolerance, std::vector< double > &theNormal, std::vector< double > &theOrigin, double &theRadius)
 Check if edge / wire is circle. More...
 
static bool isEllipse (const GeomShapePtr &theEdge, double theTolerance, std::vector< double > &theNormal, std::vector< double > &theDirX, std::vector< double > &theOrigin, double &theMajorRadius, double &theMinorRadius)
 Check if edge / wire is ellipse. More...
 
static bool isImplemented ()
 Check if the algorithm is implemented (Shaper is built with appropriate OCCT version) More...
 

Member Function Documentation

◆ isPlane()

bool GeomAlgoAPI_CanonicalRecognition::isPlane ( const GeomShapePtr &  theShape,
double  theTolerance,
std::vector< double > &  theNormal,
std::vector< double > &  theOrigin 
)
static

Check if the shape is planar.

◆ isSphere()

bool GeomAlgoAPI_CanonicalRecognition::isSphere ( const GeomShapePtr &  theShape,
double  theTolerance,
std::vector< double > &  theOrigin,
double &  theRadius 
)
static

Check if shape is spherical.

◆ isCone()

bool GeomAlgoAPI_CanonicalRecognition::isCone ( const GeomShapePtr &  theShape,
double  theTolerance,
std::vector< double > &  theAxis,
std::vector< double > &  theApex,
double &  theHalfAngle 
)
static

Check if shape is conical.

◆ isCylinder()

bool GeomAlgoAPI_CanonicalRecognition::isCylinder ( const GeomShapePtr &  theShape,
double  theTolerance,
std::vector< double > &  theAxis,
std::vector< double > &  theOrigin,
double &  theRadius 
)
static

Check if shape is cylinder.

◆ isLine()

bool GeomAlgoAPI_CanonicalRecognition::isLine ( const GeomShapePtr &  theEdge,
double  theTolerance,
std::vector< double > &  theDir,
std::vector< double > &  theOrigin 
)
static

Check if edge / wire is line.

◆ isCircle()

bool GeomAlgoAPI_CanonicalRecognition::isCircle ( const GeomShapePtr &  theEdge,
double  theTolerance,
std::vector< double > &  theNormal,
std::vector< double > &  theOrigin,
double &  theRadius 
)
static

Check if edge / wire is circle.

◆ isEllipse()

bool GeomAlgoAPI_CanonicalRecognition::isEllipse ( const GeomShapePtr &  theEdge,
double  theTolerance,
std::vector< double > &  theNormal,
std::vector< double > &  theDirX,
std::vector< double > &  theOrigin,
double &  theMajorRadius,
double &  theMinorRadius 
)
static

Check if edge / wire is ellipse.

◆ isImplemented()

bool GeomAlgoAPI_CanonicalRecognition::isImplemented ( )
static

Check if the algorithm is implemented (Shaper is built with appropriate OCCT version)