Open CASCADE Technology  7.5.0
Public Member Functions
IntTools_Curve Class Reference

The class is a container of one 3D curve, two 2D curves and two Tolerance values.
It is used in the Face/Face intersection algorithm to store the results of intersection. In this context:
the 3D curve is the intersection curve;
the 2D curves are the PCurves of the 3D curve on the intersecting faces;
the tolerance is the valid tolerance for 3D curve computed as maximal deviation between 3D curve and 2D curves (or surfaces in case there are no 2D curves);
the tangential tolerance is the maximal distance from 3D curve to the end of the tangential zone between faces in terms of their tolerance values. More...

#include <IntTools_Curve.hxx>

Public Member Functions

 IntTools_Curve ()
 Empty constructor. More...
 
 IntTools_Curve (const Handle< Geom_Curve > &the3dCurve3d, const Handle< Geom2d_Curve > &the2dCurve1, const Handle< Geom2d_Curve > &the2dCurve2, const Standard_Real theTolerance=0.0, const Standard_Real theTangentialTolerance=0.0)
 Constructor taking 3d curve, two 2d curves and two tolerance values. More...
 
void SetCurves (const Handle< Geom_Curve > &the3dCurve, const Handle< Geom2d_Curve > &the2dCurve1, const Handle< Geom2d_Curve > &the2dCurve2)
 Sets the curves. More...
 
void SetCurve (const Handle< Geom_Curve > &the3dCurve)
 Sets the 3d curve. More...
 
void SetFirstCurve2d (const Handle< Geom2d_Curve > &the2dCurve1)
 Sets the first 2d curve. More...
 
void SetSecondCurve2d (const Handle< Geom2d_Curve > &the2dCurve2)
 Sets the second 2d curve. More...
 
void SetTolerance (const Standard_Real theTolerance)
 Sets the tolerance for the curve. More...
 
void SetTangentialTolerance (const Standard_Real theTangentialTolerance)
 Sets the tangential tolerance. More...
 
const Handle< Geom_Curve > & Curve () const
 Returns 3d curve. More...
 
const Handle< Geom2d_Curve > & FirstCurve2d () const
 Returns first 2d curve. More...
 
const Handle< Geom2d_Curve > & SecondCurve2d () const
 Returns second 2d curve. More...
 
Standard_Real Tolerance () const
 Returns the tolerance. More...
 
Standard_Real TangentialTolerance () const
 Returns the tangential tolerance. More...
 
Standard_Boolean HasBounds () const
 Returns TRUE if 3d curve is BoundedCurve. More...
 
Standard_Boolean Bounds (Standard_Real &theFirst, Standard_Real &theLast, gp_Pnt &theFirstPnt, gp_Pnt &theLastPnt) const
 If the 3d curve is bounded curve the method will return TRUE and modify the output parameters with boundary parameters of the curve and corresponded 3d points.
If the curve does not have bounds, the method will return false and the output parameters will stay untouched. More...
 
Standard_Boolean D0 (const Standard_Real &thePar, gp_Pnt &thePnt) const
 Computes 3d point corresponded to the given parameter if this parameter is inside the boundaries of the curve. Returns TRUE in this case.
Otherwise, the point will not be computed and the method will return FALSE. More...
 
GeomAbs_CurveType Type () const
 Returns the type of the 3d curve. More...
 

Detailed Description

The class is a container of one 3D curve, two 2D curves and two Tolerance values.
It is used in the Face/Face intersection algorithm to store the results of intersection. In this context:
the 3D curve is the intersection curve;
the 2D curves are the PCurves of the 3D curve on the intersecting faces;
the tolerance is the valid tolerance for 3D curve computed as maximal deviation between 3D curve and 2D curves (or surfaces in case there are no 2D curves);
the tangential tolerance is the maximal distance from 3D curve to the end of the tangential zone between faces in terms of their tolerance values.

Constructor & Destructor Documentation

◆ IntTools_Curve() [1/2]

IntTools_Curve::IntTools_Curve ( )

Empty constructor.

◆ IntTools_Curve() [2/2]

IntTools_Curve::IntTools_Curve ( const Handle< Geom_Curve > &  the3dCurve3d,
const Handle< Geom2d_Curve > &  the2dCurve1,
const Handle< Geom2d_Curve > &  the2dCurve2,
const Standard_Real  theTolerance = 0.0,
const Standard_Real  theTangentialTolerance = 0.0 
)

Constructor taking 3d curve, two 2d curves and two tolerance values.

Member Function Documentation

◆ Bounds()

Standard_Boolean IntTools_Curve::Bounds ( Standard_Real theFirst,
Standard_Real theLast,
gp_Pnt theFirstPnt,
gp_Pnt theLastPnt 
) const

If the 3d curve is bounded curve the method will return TRUE and modify the output parameters with boundary parameters of the curve and corresponded 3d points.
If the curve does not have bounds, the method will return false and the output parameters will stay untouched.

◆ Curve()

const Handle< Geom_Curve >& IntTools_Curve::Curve ( ) const
inline

Returns 3d curve.

◆ D0()

Standard_Boolean IntTools_Curve::D0 ( const Standard_Real thePar,
gp_Pnt thePnt 
) const

Computes 3d point corresponded to the given parameter if this parameter is inside the boundaries of the curve. Returns TRUE in this case.
Otherwise, the point will not be computed and the method will return FALSE.

◆ FirstCurve2d()

const Handle< Geom2d_Curve >& IntTools_Curve::FirstCurve2d ( ) const
inline

Returns first 2d curve.

◆ HasBounds()

Standard_Boolean IntTools_Curve::HasBounds ( ) const

Returns TRUE if 3d curve is BoundedCurve.

◆ SecondCurve2d()

const Handle< Geom2d_Curve >& IntTools_Curve::SecondCurve2d ( ) const
inline

Returns second 2d curve.

◆ SetCurve()

void IntTools_Curve::SetCurve ( const Handle< Geom_Curve > &  the3dCurve)
inline

Sets the 3d curve.

◆ SetCurves()

void IntTools_Curve::SetCurves ( const Handle< Geom_Curve > &  the3dCurve,
const Handle< Geom2d_Curve > &  the2dCurve1,
const Handle< Geom2d_Curve > &  the2dCurve2 
)
inline

Sets the curves.

◆ SetFirstCurve2d()

void IntTools_Curve::SetFirstCurve2d ( const Handle< Geom2d_Curve > &  the2dCurve1)
inline

Sets the first 2d curve.

◆ SetSecondCurve2d()

void IntTools_Curve::SetSecondCurve2d ( const Handle< Geom2d_Curve > &  the2dCurve2)
inline

Sets the second 2d curve.

◆ SetTangentialTolerance()

void IntTools_Curve::SetTangentialTolerance ( const Standard_Real  theTangentialTolerance)
inline

Sets the tangential tolerance.

◆ SetTolerance()

void IntTools_Curve::SetTolerance ( const Standard_Real  theTolerance)
inline

Sets the tolerance for the curve.

◆ TangentialTolerance()

Standard_Real IntTools_Curve::TangentialTolerance ( ) const
inline

Returns the tangential tolerance.

◆ Tolerance()

Standard_Real IntTools_Curve::Tolerance ( ) const
inline

Returns the tolerance.

◆ Type()

GeomAbs_CurveType IntTools_Curve::Type ( ) const

Returns the type of the 3d curve.


The documentation for this class was generated from the following file: