This class provides operators for analysis surfaces and curves of shapes in order to find out more simple geometry entities, which could replace existing complex (for example, BSpline) geometry objects with given tolerance.
More...
#include <ShapeAnalysis_CanonicalRecognition.hxx>
|
| | ShapeAnalysis_CanonicalRecognition () |
| | Empty constructor.
|
| | ShapeAnalysis_CanonicalRecognition (const TopoDS_Shape &theShape) |
| | constructor with shape initialisation
|
| void | SetShape (const TopoDS_Shape &theShape) |
| | Sets shape.
|
| const TopoDS_Shape & | GetShape () const |
| | Returns input shape.
|
| double | GetGap () const |
| | Returns deviation between input geometry entity and analytical entity.
|
| int | GetStatus () const |
| | Returns status of operation. Current meaning of possible values of status: -1 - algorithm is not initalazed by shape 0 - no errors 1 - error during any operation (usually - because of wrong input data) Any operation (calling any methods like IsPlane(...), ...) can be performed when current staue is equal 0. If after any operation status != 0, it is necessary to set it 0 by method ClearStatus() before calling other operation.
|
| void | ClearStatus () |
| | Returns status to be equal 0.
|
| bool | IsPlane (const double theTol, gp_Pln &thePln) |
| | Returns true if the underlined surface can be represent by plane with tolerance theTol and sets in thePln the result plane.
|
| bool | IsCylinder (const double theTol, gp_Cylinder &theCyl) |
| | Returns true if the underlined surface can be represent by cylindrical one with tolerance theTol and sets in theCyl the result cylinrical surface.
|
| bool | IsCone (const double theTol, gp_Cone &theCone) |
| | Returns true if the underlined surface can be represent by conical one with tolerance theTol and sets in theCone the result conical surface.
|
| bool | IsSphere (const double theTol, gp_Sphere &theSphere) |
| | Returns true if the underlined surface can be represent by spherical one with tolerance theTol and sets in theSphere the result spherical surface.
|
| bool | IsLine (const double theTol, gp_Lin &theLin) |
| | Returns true if the underlined curve can be represent by line with tolerance theTol and sets in theLin the result line.
|
| bool | IsCircle (const double theTol, gp_Circ &theCirc) |
| | Returns true if the underlined curve can be represent by circle with tolerance theTol and sets in theCirc the result circle.
|
| bool | IsEllipse (const double theTol, gp_Elips &theElips) |
| | Returns true if the underlined curve can be represent by ellipse with tolerance theTol and sets in theCirc the result ellipse.
|
This class provides operators for analysis surfaces and curves of shapes in order to find out more simple geometry entities, which could replace existing complex (for example, BSpline) geometry objects with given tolerance.
◆ ShapeAnalysis_CanonicalRecognition() [1/2]
| ShapeAnalysis_CanonicalRecognition::ShapeAnalysis_CanonicalRecognition |
( |
| ) |
|
◆ ShapeAnalysis_CanonicalRecognition() [2/2]
| ShapeAnalysis_CanonicalRecognition::ShapeAnalysis_CanonicalRecognition |
( |
const TopoDS_Shape & | theShape | ) |
|
constructor with shape initialisation
◆ ClearStatus()
| void ShapeAnalysis_CanonicalRecognition::ClearStatus |
( |
| ) |
|
|
inline |
Returns status to be equal 0.
◆ GetGap()
| double ShapeAnalysis_CanonicalRecognition::GetGap |
( |
| ) |
const |
|
inline |
Returns deviation between input geometry entity and analytical entity.
◆ GetShape()
| const TopoDS_Shape & ShapeAnalysis_CanonicalRecognition::GetShape |
( |
| ) |
const |
|
inline |
◆ GetStatus()
| int ShapeAnalysis_CanonicalRecognition::GetStatus |
( |
| ) |
const |
|
inline |
Returns status of operation. Current meaning of possible values of status: -1 - algorithm is not initalazed by shape 0 - no errors 1 - error during any operation (usually - because of wrong input data) Any operation (calling any methods like IsPlane(...), ...) can be performed when current staue is equal 0. If after any operation status != 0, it is necessary to set it 0 by method ClearStatus() before calling other operation.
◆ IsCircle()
| bool ShapeAnalysis_CanonicalRecognition::IsCircle |
( |
const double | theTol, |
|
|
gp_Circ & | theCirc ) |
Returns true if the underlined curve can be represent by circle with tolerance theTol and sets in theCirc the result circle.
◆ IsCone()
| bool ShapeAnalysis_CanonicalRecognition::IsCone |
( |
const double | theTol, |
|
|
gp_Cone & | theCone ) |
Returns true if the underlined surface can be represent by conical one with tolerance theTol and sets in theCone the result conical surface.
◆ IsCylinder()
| bool ShapeAnalysis_CanonicalRecognition::IsCylinder |
( |
const double | theTol, |
|
|
gp_Cylinder & | theCyl ) |
Returns true if the underlined surface can be represent by cylindrical one with tolerance theTol and sets in theCyl the result cylinrical surface.
◆ IsEllipse()
| bool ShapeAnalysis_CanonicalRecognition::IsEllipse |
( |
const double | theTol, |
|
|
gp_Elips & | theElips ) |
Returns true if the underlined curve can be represent by ellipse with tolerance theTol and sets in theCirc the result ellipse.
◆ IsLine()
| bool ShapeAnalysis_CanonicalRecognition::IsLine |
( |
const double | theTol, |
|
|
gp_Lin & | theLin ) |
Returns true if the underlined curve can be represent by line with tolerance theTol and sets in theLin the result line.
◆ IsPlane()
| bool ShapeAnalysis_CanonicalRecognition::IsPlane |
( |
const double | theTol, |
|
|
gp_Pln & | thePln ) |
Returns true if the underlined surface can be represent by plane with tolerance theTol and sets in thePln the result plane.
◆ IsSphere()
| bool ShapeAnalysis_CanonicalRecognition::IsSphere |
( |
const double | theTol, |
|
|
gp_Sphere & | theSphere ) |
Returns true if the underlined surface can be represent by spherical one with tolerance theTol and sets in theSphere the result spherical surface.
◆ SetShape()
| void ShapeAnalysis_CanonicalRecognition::SetShape |
( |
const TopoDS_Shape & | theShape | ) |
|
The documentation for this class was generated from the following file: