Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
Geom2dHatch_Intersector Class Reference

#include <Geom2dHatch_Intersector.hxx>

Inheritance diagram for Geom2dHatch_Intersector:
Inheritance graph
[legend]

Public Member Functions

 Geom2dHatch_Intersector (const double Confusion, const double Tangency)
 Creates an intersector.
 
double ConfusionTolerance () const
 Returns the confusion tolerance of the intersector.
 
void SetConfusionTolerance (const double Confusion)
 Sets the confusion tolerance of the intersector.
 
double TangencyTolerance () const
 Returns the tangency tolerance of the intersector.
 
void SetTangencyTolerance (const double Tangency)
 Sets the tangency tolerance of the intersector.
 
void Intersect (const Geom2dAdaptor_Curve &C1, const Geom2dAdaptor_Curve &C2)
 Intersects the curves C1 and C2. The results are retrieved by the usual methods described in IntRes2d_Intersection. Creates an intersector.
 
 Geom2dHatch_Intersector ()
 
void Perform (const gp_Lin2d &L, const double P, const double Tol, const Geom2dAdaptor_Curve &E)
 Performs the intersection between the 2d line segment (<L>,.
 
void LocalGeometry (const Geom2dAdaptor_Curve &E, const double U, gp_Dir2d &T, gp_Dir2d &N, double &C) const
 Returns in <T>, <N> and the tangent, normal and curvature of the edge <E> at parameter value .
 
- Public Member Functions inherited from Geom2dInt_GInter
 Geom2dInt_GInter ()
 Empty constructor.
 
 Geom2dInt_GInter (const Adaptor2d_Curve2d &C, const double TolConf, const double Tol)
 Self Intersection of a curve.
 
 Geom2dInt_GInter (const Adaptor2d_Curve2d &C, const IntRes2d_Domain &D, const double TolConf, const double Tol)
 Self Intersection of a curve with a domain.
 
 Geom2dInt_GInter (const Adaptor2d_Curve2d &C1, const Adaptor2d_Curve2d &C2, const double TolConf, const double Tol)
 Intersection between 2 curves.
 
 Geom2dInt_GInter (const Adaptor2d_Curve2d &C1, const IntRes2d_Domain &D1, const Adaptor2d_Curve2d &C2, const double TolConf, const double Tol)
 Intersection between 2 curves.
 
 Geom2dInt_GInter (const Adaptor2d_Curve2d &C1, const Adaptor2d_Curve2d &C2, const IntRes2d_Domain &D2, const double TolConf, const double Tol)
 Intersection between 2 curves.
 
 Geom2dInt_GInter (const Adaptor2d_Curve2d &C1, const IntRes2d_Domain &D1, const Adaptor2d_Curve2d &C2, const IntRes2d_Domain &D2, const double TolConf, const double Tol)
 Intersection between 2 curves.
 
void Perform (const Adaptor2d_Curve2d &C1, const IntRes2d_Domain &D1, const Adaptor2d_Curve2d &C2, const IntRes2d_Domain &D2, const double TolConf, const double Tol)
 Intersection between 2 curves.
 
void Perform (const Adaptor2d_Curve2d &C1, const Adaptor2d_Curve2d &C2, const double TolConf, const double Tol)
 Intersection between 2 curves.
 
void Perform (const Adaptor2d_Curve2d &C1, const IntRes2d_Domain &D1, const double TolConf, const double Tol)
 Intersection between 2 curves.
 
void Perform (const Adaptor2d_Curve2d &C1, const double TolConf, const double Tol)
 Intersection between 2 curves.
 
void Perform (const Adaptor2d_Curve2d &C1, const IntRes2d_Domain &D1, const Adaptor2d_Curve2d &C2, const double TolConf, const double Tol)
 Intersection between 2 curves.
 
void Perform (const Adaptor2d_Curve2d &C1, const Adaptor2d_Curve2d &C2, const IntRes2d_Domain &D2, const double TolConf, const double Tol)
 Intersection between 2 curves.
 
IntRes2d_Domain ComputeDomain (const Adaptor2d_Curve2d &C1, const double TolDomain) const
 Create a domain from a curve.
 
void SetMinNbSamples (const int theMinNbSamples)
 Set / get minimum number of points in polygon intersection.
 
int GetMinNbSamples () const
 
- Public Member Functions inherited from IntRes2d_Intersection
bool IsDone () const
 returns TRUE when the computation was successful.
 
bool IsEmpty () const
 Returns TRUE if there is no intersection between the given arguments. The exception NotDone is raised if IsDone returns FALSE.
 
int NbPoints () const
 This function returns the number of intersection points between the 2 curves. The exception NotDone is raised if IsDone returns FALSE.
 
const IntRes2d_IntersectionPointPoint (const int N) const
 This function returns the intersection point of range N; The exception NotDone is raised if IsDone returns FALSE. The exception OutOfRange is raised if (N <= 0) or (N > NbPoints).
 
int NbSegments () const
 This function returns the number of intersection segments between the two curves. The exception NotDone is raised if IsDone returns FALSE.
 
const IntRes2d_IntersectionSegmentSegment (const int N) const
 This function returns the intersection segment of range N; The exception NotDone is raised if IsDone returns FALSE. The exception OutOfRange is raised if (N <= 0) or (N > NbPoints).
 
void SetReversedParameters (const bool Reverseflag)
 

Additional Inherited Members

- Protected Member Functions inherited from IntRes2d_Intersection
 IntRes2d_Intersection ()
 Empty constructor.
 
 IntRes2d_Intersection (const IntRes2d_Intersection &Other)
 
IntRes2d_Intersectionoperator= (const IntRes2d_Intersection &theOther)=default
 Assignment.
 
 ~IntRes2d_Intersection ()=default
 Destructor is protected, for safe inheritance.
 
void SetValues (const IntRes2d_Intersection &Inter)
 
void Append (const IntRes2d_Intersection &Inter, const double FirstParam1, const double LastParam1, const double FirstParam2, const double LastParam2)
 
void Append (const IntRes2d_IntersectionSegment &Seg)
 
void Append (const IntRes2d_IntersectionPoint &Pnt)
 
void Insert (const IntRes2d_IntersectionPoint &Pnt)
 
void ResetFields ()
 
bool ReversedParameters () const
 
- Protected Attributes inherited from IntRes2d_Intersection
NCollection_Sequence< IntRes2d_IntersectionPointlpnt
 
NCollection_Sequence< IntRes2d_IntersectionSegmentlseg
 
bool done
 
bool reverse
 

Constructor & Destructor Documentation

◆ Geom2dHatch_Intersector() [1/2]

Geom2dHatch_Intersector::Geom2dHatch_Intersector ( const double Confusion,
const double Tangency )

Creates an intersector.

◆ Geom2dHatch_Intersector() [2/2]

Geom2dHatch_Intersector::Geom2dHatch_Intersector ( )

Member Function Documentation

◆ ConfusionTolerance()

double Geom2dHatch_Intersector::ConfusionTolerance ( ) const

Returns the confusion tolerance of the intersector.

◆ Intersect()

void Geom2dHatch_Intersector::Intersect ( const Geom2dAdaptor_Curve & C1,
const Geom2dAdaptor_Curve & C2 )

Intersects the curves C1 and C2. The results are retrieved by the usual methods described in IntRes2d_Intersection. Creates an intersector.

◆ LocalGeometry()

void Geom2dHatch_Intersector::LocalGeometry ( const Geom2dAdaptor_Curve & E,
const double U,
gp_Dir2d & T,
gp_Dir2d & N,
double & C ) const

Returns in <T>, <N> and the tangent, normal and curvature of the edge <E> at parameter value .

◆ Perform()

void Geom2dHatch_Intersector::Perform ( const gp_Lin2d & L,
const double P,
const double Tol,
const Geom2dAdaptor_Curve & E )

Performs the intersection between the 2d line segment (<L>,.

) and the Curve <E>. The line segment is the part of the 2d line <L> of parameter range [0,

] (P is positive and can be RealLast()). Tol is the Tolerance on the segment. The order is relevant, the first argument is the segment, the second the Edge.

◆ SetConfusionTolerance()

void Geom2dHatch_Intersector::SetConfusionTolerance ( const double Confusion)

Sets the confusion tolerance of the intersector.

◆ SetTangencyTolerance()

void Geom2dHatch_Intersector::SetTangencyTolerance ( const double Tangency)

Sets the tangency tolerance of the intersector.

◆ TangencyTolerance()

double Geom2dHatch_Intersector::TangencyTolerance ( ) const

Returns the tangency tolerance of the intersector.


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