Open CASCADE Technology 7.8.2.dev
|
Intersect an Edge with a segment. Implement the Intersector2d required by the classifier. More...
#include <BRepClass_Intersector.hxx>
Public Member Functions | |
BRepClass_Intersector () | |
void | Perform (const gp_Lin2d &L, const Standard_Real P, const Standard_Real Tol, const BRepClass_Edge &E) |
Intersect the line segment and the edge. | |
void | LocalGeometry (const BRepClass_Edge &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 . | |
Public Member Functions inherited from Geom2dInt_IntConicCurveOfGInter | |
Geom2dInt_IntConicCurveOfGInter () | |
Empty constructor. | |
Geom2dInt_IntConicCurveOfGInter (const gp_Lin2d &L, const IntRes2d_Domain &D1, const Adaptor2d_Curve2d &PCurve, const IntRes2d_Domain &D2, const Standard_Real TolConf, const Standard_Real Tol) | |
Intersection between a line and a parametric curve. | |
Geom2dInt_IntConicCurveOfGInter (const gp_Circ2d &C, const IntRes2d_Domain &D1, const Adaptor2d_Curve2d &PCurve, const IntRes2d_Domain &D2, const Standard_Real TolConf, const Standard_Real Tol) | |
Intersection between a line and a parametric curve. | |
Geom2dInt_IntConicCurveOfGInter (const gp_Elips2d &E, const IntRes2d_Domain &D1, const Adaptor2d_Curve2d &PCurve, const IntRes2d_Domain &D2, const Standard_Real TolConf, const Standard_Real Tol) | |
Intersection between an ellipse and a parametric curve. | |
Geom2dInt_IntConicCurveOfGInter (const gp_Parab2d &Prb, const IntRes2d_Domain &D1, const Adaptor2d_Curve2d &PCurve, const IntRes2d_Domain &D2, const Standard_Real TolConf, const Standard_Real Tol) | |
Intersection between a parabola and a parametric curve. | |
Geom2dInt_IntConicCurveOfGInter (const gp_Hypr2d &H, const IntRes2d_Domain &D1, const Adaptor2d_Curve2d &PCurve, const IntRes2d_Domain &D2, const Standard_Real TolConf, const Standard_Real Tol) | |
Intersection between the main branch of an hyperbola and a parametric curve. | |
void | Perform (const gp_Lin2d &L, const IntRes2d_Domain &D1, const Adaptor2d_Curve2d &PCurve, const IntRes2d_Domain &D2, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between a line and a parametric curve. | |
void | Perform (const gp_Circ2d &C, const IntRes2d_Domain &D1, const Adaptor2d_Curve2d &PCurve, const IntRes2d_Domain &D2, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between a line and a parametric curve. | |
void | Perform (const gp_Elips2d &E, const IntRes2d_Domain &D1, const Adaptor2d_Curve2d &PCurve, const IntRes2d_Domain &D2, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between an ellipse and a parametric curve. | |
void | Perform (const gp_Parab2d &Prb, const IntRes2d_Domain &D1, const Adaptor2d_Curve2d &PCurve, const IntRes2d_Domain &D2, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between a parabola and a parametric curve. | |
void | Perform (const gp_Hypr2d &H, const IntRes2d_Domain &D1, const Adaptor2d_Curve2d &PCurve, const IntRes2d_Domain &D2, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between the main branch of an hyperbola and a parametric curve. | |
Public Member Functions inherited from IntRes2d_Intersection | |
Standard_Boolean | IsDone () const |
returns TRUE when the computation was successful. | |
Standard_Boolean | IsEmpty () const |
Returns TRUE if there is no intersection between the given arguments. The exception NotDone is raised if IsDone returns FALSE. | |
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. | |
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). | |
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. | |
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). | |
void | SetReversedParameters (const Standard_Boolean Reverseflag) |
Additional Inherited Members | |
Protected Member Functions inherited from IntRes2d_Intersection | |
IntRes2d_Intersection () | |
Empty constructor. | |
IntRes2d_Intersection (const IntRes2d_Intersection &Other) | |
IntRes2d_Intersection & | operator= (const IntRes2d_Intersection &theOther) |
Assignment. | |
~IntRes2d_Intersection () | |
Destructor is protected, for safe inheritance. | |
void | SetValues (const IntRes2d_Intersection &Inter) |
void | Append (const IntRes2d_Intersection &Inter, const Standard_Real FirstParam1, const Standard_Real LastParam1, const Standard_Real FirstParam2, const Standard_Real LastParam2) |
void | Append (const IntRes2d_IntersectionSegment &Seg) |
void | Append (const IntRes2d_IntersectionPoint &Pnt) |
void | Insert (const IntRes2d_IntersectionPoint &Pnt) |
void | ResetFields () |
Standard_Boolean | ReversedParameters () const |
Protected Attributes inherited from IntRes2d_Intersection | |
IntRes2d_SequenceOfIntersectionPoint | lpnt |
IntRes2d_SequenceOfIntersectionSegment | lseg |
Standard_Boolean | done |
Standard_Boolean | reverse |
Intersect an Edge with a segment. Implement the Intersector2d required by the classifier.
BRepClass_Intersector::BRepClass_Intersector | ( | ) |
void BRepClass_Intersector::LocalGeometry | ( | const BRepClass_Edge & | 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 .
void BRepClass_Intersector::Perform | ( | const gp_Lin2d & | L, |
const Standard_Real | P, | ||
const Standard_Real | Tol, | ||
const BRepClass_Edge & | E ) |
Intersect the line segment and the edge.