Open CASCADE Technology
7.5.0
|
#include <Geom2dHatch_Intersector.hxx>
Public Member Functions | |
Geom2dHatch_Intersector (const Standard_Real Confusion, const Standard_Real Tangency) | |
Creates an intersector. More... | |
Standard_Real | ConfusionTolerance () const |
Returns the confusion tolerance of the intersector. More... | |
void | SetConfusionTolerance (const Standard_Real Confusion) |
Sets the confusion tolerance of the intersector. More... | |
Standard_Real | TangencyTolerance () const |
Returns the tangency tolerance of the intersector. More... | |
void | SetTangencyTolerance (const Standard_Real Tangency) |
Sets the tangency tolerance of the intersector. More... | |
void | Intersect (const Geom2dAdaptor_Curve &C1, const Geom2dAdaptor_Curve &C2) |
Intersects the curves C1 and C2. The results are retreived by the usual methods described in IntRes2d_Intersection. Creates an intersector. More... | |
Geom2dHatch_Intersector () | |
void | Perform (const gp_Lin2d &L, const Standard_Real P, const Standard_Real Tol, const Geom2dAdaptor_Curve &E) |
Performs the intersection between the 2d line segment (<L>,. More... | |
void | LocalGeometry (const Geom2dAdaptor_Curve &E, const Standard_Real U, gp_Dir2d &T, gp_Dir2d &N, Standard_Real &C) const |
Returns in <T>, <N> and the tangent, normal and curvature of the edge <E> at parameter value <U>. More... | |
Public Member Functions inherited from Geom2dInt_GInter | |
Geom2dInt_GInter () | |
Empty constructor. More... | |
Geom2dInt_GInter (const Adaptor2d_Curve2d &C, const Standard_Real TolConf, const Standard_Real Tol) | |
Self Intersection of a curve. More... | |
Geom2dInt_GInter (const Adaptor2d_Curve2d &C, const IntRes2d_Domain &D, const Standard_Real TolConf, const Standard_Real Tol) | |
Self Intersection of a curve with a domain. More... | |
Geom2dInt_GInter (const Adaptor2d_Curve2d &C1, const Adaptor2d_Curve2d &C2, const Standard_Real TolConf, const Standard_Real Tol) | |
Intersection between 2 curves. More... | |
Geom2dInt_GInter (const Adaptor2d_Curve2d &C1, const IntRes2d_Domain &D1, const Adaptor2d_Curve2d &C2, const Standard_Real TolConf, const Standard_Real Tol) | |
Intersection between 2 curves. More... | |
Geom2dInt_GInter (const Adaptor2d_Curve2d &C1, const Adaptor2d_Curve2d &C2, const IntRes2d_Domain &D2, const Standard_Real TolConf, const Standard_Real Tol) | |
Intersection between 2 curves. More... | |
Geom2dInt_GInter (const Adaptor2d_Curve2d &C1, const IntRes2d_Domain &D1, const Adaptor2d_Curve2d &C2, const IntRes2d_Domain &D2, const Standard_Real TolConf, const Standard_Real Tol) | |
Intersection between 2 curves. More... | |
void | Perform (const Adaptor2d_Curve2d &C1, const IntRes2d_Domain &D1, const Adaptor2d_Curve2d &C2, const IntRes2d_Domain &D2, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between 2 curves. More... | |
void | Perform (const Adaptor2d_Curve2d &C1, const Adaptor2d_Curve2d &C2, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between 2 curves. More... | |
void | Perform (const Adaptor2d_Curve2d &C1, const IntRes2d_Domain &D1, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between 2 curves. More... | |
void | Perform (const Adaptor2d_Curve2d &C1, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between 2 curves. More... | |
void | Perform (const Adaptor2d_Curve2d &C1, const IntRes2d_Domain &D1, const Adaptor2d_Curve2d &C2, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between 2 curves. More... | |
void | Perform (const Adaptor2d_Curve2d &C1, const Adaptor2d_Curve2d &C2, const IntRes2d_Domain &D2, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between 2 curves. More... | |
IntRes2d_Domain | ComputeDomain (const Adaptor2d_Curve2d &C1, const Standard_Real TolDomain) const |
Create a domain from a curve. More... | |
void | SetMinNbSamples (const Standard_Integer theMinNbSamples) |
Set / get minimum number of points in polygon intersection. More... | |
Standard_Integer | GetMinNbSamples () const |
Public Member Functions inherited from IntRes2d_Intersection | |
Standard_Boolean | IsDone () const |
returns TRUE when the computation was successful. More... | |
Standard_Boolean | IsEmpty () const |
Returns TRUE if there is no intersection between the given arguments. The exception NotDone is raised if IsDone returns FALSE. More... | |
Standard_Integer | NbPoints () const |
This function returns the number of intersection points between the 2 curves. The exception NotDone is raised if IsDone returns FALSE. More... | |
const IntRes2d_IntersectionPoint & | Point (const Standard_Integer 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). More... | |
Standard_Integer | NbSegments () const |
This function returns the number of intersection segments between the two curves. The exception NotDone is raised if IsDone returns FALSE. More... | |
const IntRes2d_IntersectionSegment & | Segment (const Standard_Integer 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). More... | |
void | SetReversedParameters (const Standard_Boolean Reverseflag) |
Geom2dHatch_Intersector::Geom2dHatch_Intersector | ( | const Standard_Real | Confusion, |
const Standard_Real | Tangency | ||
) |
Creates an intersector.
Geom2dHatch_Intersector::Geom2dHatch_Intersector | ( | ) |
Standard_Real Geom2dHatch_Intersector::ConfusionTolerance | ( | ) | const |
Returns the confusion tolerance of the intersector.
void Geom2dHatch_Intersector::Intersect | ( | const Geom2dAdaptor_Curve & | C1, |
const Geom2dAdaptor_Curve & | C2 | ||
) |
Intersects the curves C1 and C2. The results are retreived by the usual methods described in IntRes2d_Intersection. Creates an intersector.
void Geom2dHatch_Intersector::LocalGeometry | ( | const Geom2dAdaptor_Curve & | E, |
const Standard_Real | U, | ||
gp_Dir2d & | T, | ||
gp_Dir2d & | N, | ||
Standard_Real & | C | ||
) | const |
Returns in <T>, <N> and the tangent, normal and curvature of the edge <E> at parameter value <U>.
void Geom2dHatch_Intersector::Perform | ( | const gp_Lin2d & | L, |
const Standard_Real | P, | ||
const Standard_Real | 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.
void Geom2dHatch_Intersector::SetConfusionTolerance | ( | const Standard_Real | Confusion | ) |
Sets the confusion tolerance of the intersector.
void Geom2dHatch_Intersector::SetTangencyTolerance | ( | const Standard_Real | Tangency | ) |
Sets the tangency tolerance of the intersector.
Standard_Real Geom2dHatch_Intersector::TangencyTolerance | ( | ) | const |
Returns the tangency tolerance of the intersector.