Open CASCADE Technology  7.7.0
Public Member Functions
IntCurvesFace_Intersector Class Reference

#include <IntCurvesFace_Intersector.hxx>

Inheritance diagram for IntCurvesFace_Intersector:
Inheritance graph
[legend]

Public Member Functions

 IntCurvesFace_Intersector (const TopoDS_Face &F, const Standard_Real aTol, const Standard_Boolean aRestr=Standard_True, const Standard_Boolean UseBToler=Standard_True)
 Load a Face. More...
 
void Perform (const gp_Lin &L, const Standard_Real PInf, const Standard_Real PSup)
 Perform the intersection between the segment L and the loaded face. More...
 
void Perform (const Handle< Adaptor3d_Curve > &HCu, const Standard_Real PInf, const Standard_Real PSup)
 same method for a HCurve from Adaptor3d. PInf an PSup can also be - and + INF. More...
 
GeomAbs_SurfaceType SurfaceType () const
 Return the surface type. More...
 
Standard_Boolean IsDone () const
 True is returned when the intersection have been computed. More...
 
Standard_Integer NbPnt () const
 
Standard_Real UParameter (const Standard_Integer I) const
 Returns the U parameter of the ith intersection point on the surface. More...
 
Standard_Real VParameter (const Standard_Integer I) const
 Returns the V parameter of the ith intersection point on the surface. More...
 
Standard_Real WParameter (const Standard_Integer I) const
 Returns the parameter of the ith intersection point on the line. More...
 
const gp_PntPnt (const Standard_Integer I) const
 Returns the geometric point of the ith intersection between the line and the surface. More...
 
IntCurveSurface_TransitionOnCurve Transition (const Standard_Integer I) const
 Returns the ith transition of the line on the surface. More...
 
TopAbs_State State (const Standard_Integer I) const
 Returns the ith state of the point on the face. The values can be either TopAbs_IN ( the point is in the face) or TopAbs_ON ( the point is on a boundary of the face). More...
 
Standard_Boolean IsParallel () const
 Returns true if curve is parallel or belongs face surface This case is recognized only for some pairs of analytical curves and surfaces (plane - line, ...) More...
 
const TopoDS_FaceFace () const
 Returns the significant face used to determine the intersection. More...
 
TopAbs_State ClassifyUVPoint (const gp_Pnt2d &Puv) const
 
Bnd_Box Bounding () const
 
void SetUseBoundToler (Standard_Boolean UseBToler)
 Sets the boundary tolerance flag. More...
 
Standard_Boolean GetUseBoundToler () const
 Returns the boundary tolerance flag. More...
 
virtual ~IntCurvesFace_Intersector ()
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor. More...
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing. More...
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter. More...
 
virtual ~Standard_Transient ()
 Destructor must be virtual. More...
 
virtual void Delete () const
 Memory deallocator for transient classes. More...
 
virtual const opencascade::handle< Standard_Type > & DynamicType () const
 Returns a type descriptor about this object. More...
 
Standard_Boolean IsInstance (const opencascade::handle< Standard_Type > &theType) const
 Returns a true value if this is an instance of Type. More...
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName. More...
 
Standard_Boolean IsKind (const opencascade::handle< Standard_Type > &theType) const
 Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_Boolean IsKind (const Standard_CString theTypeName) const
 Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_TransientThis () const
 Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 
void IncrementRefCounter () const
 Increments the reference counter of this object. More...
 
Standard_Integer DecrementRefCounter () const
 Decrements the reference counter of this object; returns the decremented value. More...
 

Additional Inherited Members

- Public Types inherited from Standard_Transient
typedef void base_type
 Returns a type descriptor about this object. More...
 
- Static Public Member Functions inherited from Standard_Transient
static const char * get_type_name ()
 Returns a type descriptor about this object. More...
 
static const opencascade::handle< Standard_Type > & get_type_descriptor ()
 Returns type descriptor of Standard_Transient class. More...
 

Constructor & Destructor Documentation

◆ IntCurvesFace_Intersector()

IntCurvesFace_Intersector::IntCurvesFace_Intersector ( const TopoDS_Face F,
const Standard_Real  aTol,
const Standard_Boolean  aRestr = Standard_True,
const Standard_Boolean  UseBToler = Standard_True 
)

Load a Face.

The Tolerance <Tol> is used to determine if the first point of the segment is near the face. In that case, the parameter of the intersection point on the line can be a negative value (greater than -Tol). If aRestr = true UV bounding box of face is used to restrict it's underlined surface, otherwise surface is not restricted. If UseBToler = false then the 2d-point of intersection is classified with null-tolerance (relative to face); otherwise it's using maximum between input tolerance(aTol) and tolerances of face bounds (edges).

◆ ~IntCurvesFace_Intersector()

virtual IntCurvesFace_Intersector::~IntCurvesFace_Intersector ( )
virtual

Member Function Documentation

◆ Bounding()

Bnd_Box IntCurvesFace_Intersector::Bounding ( ) const

◆ ClassifyUVPoint()

TopAbs_State IntCurvesFace_Intersector::ClassifyUVPoint ( const gp_Pnt2d Puv) const

◆ Face()

const TopoDS_Face& IntCurvesFace_Intersector::Face ( ) const

Returns the significant face used to determine the intersection.

◆ GetUseBoundToler()

Standard_Boolean IntCurvesFace_Intersector::GetUseBoundToler ( ) const

Returns the boundary tolerance flag.

◆ IsDone()

Standard_Boolean IntCurvesFace_Intersector::IsDone ( ) const

True is returned when the intersection have been computed.

◆ IsParallel()

Standard_Boolean IntCurvesFace_Intersector::IsParallel ( ) const

Returns true if curve is parallel or belongs face surface This case is recognized only for some pairs of analytical curves and surfaces (plane - line, ...)

◆ NbPnt()

Standard_Integer IntCurvesFace_Intersector::NbPnt ( ) const

◆ Perform() [1/2]

void IntCurvesFace_Intersector::Perform ( const gp_Lin L,
const Standard_Real  PInf,
const Standard_Real  PSup 
)

Perform the intersection between the segment L and the loaded face.

PInf is the smallest parameter on the line PSup is the highest parameter on the line

For an infinite line PInf and PSup can be +/- RealLast.

◆ Perform() [2/2]

void IntCurvesFace_Intersector::Perform ( const Handle< Adaptor3d_Curve > &  HCu,
const Standard_Real  PInf,
const Standard_Real  PSup 
)

same method for a HCurve from Adaptor3d. PInf an PSup can also be - and + INF.

◆ Pnt()

const gp_Pnt& IntCurvesFace_Intersector::Pnt ( const Standard_Integer  I) const

Returns the geometric point of the ith intersection between the line and the surface.

◆ SetUseBoundToler()

void IntCurvesFace_Intersector::SetUseBoundToler ( Standard_Boolean  UseBToler)

Sets the boundary tolerance flag.

◆ State()

TopAbs_State IntCurvesFace_Intersector::State ( const Standard_Integer  I) const

Returns the ith state of the point on the face. The values can be either TopAbs_IN ( the point is in the face) or TopAbs_ON ( the point is on a boundary of the face).

◆ SurfaceType()

GeomAbs_SurfaceType IntCurvesFace_Intersector::SurfaceType ( ) const

Return the surface type.

◆ Transition()

IntCurveSurface_TransitionOnCurve IntCurvesFace_Intersector::Transition ( const Standard_Integer  I) const

Returns the ith transition of the line on the surface.

◆ UParameter()

Standard_Real IntCurvesFace_Intersector::UParameter ( const Standard_Integer  I) const

Returns the U parameter of the ith intersection point on the surface.

◆ VParameter()

Standard_Real IntCurvesFace_Intersector::VParameter ( const Standard_Integer  I) const

Returns the V parameter of the ith intersection point on the surface.

◆ WParameter()

Standard_Real IntCurvesFace_Intersector::WParameter ( const Standard_Integer  I) const

Returns the parameter of the ith intersection point on the line.


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