Open CASCADE Technology 7.8.0
|
Provides methods to intersect two conics. The exception ConstructionError is raised in constructors or in Perform methods when a domain (Domain from IntRes2d) is not correct, i-e when a Circle (Circ2d from gp) or an Ellipse (i-e Elips2d from gp) do not have a closed domain (use the SetEquivalentParameters method for a domain on a circle or an ellipse). More...
#include <IntCurve_IntConicConic.hxx>
Public Member Functions | |
IntCurve_IntConicConic () | |
Empty Constructor. | |
IntCurve_IntConicConic (const gp_Lin2d &L1, const IntRes2d_Domain &D1, const gp_Lin2d &L2, const IntRes2d_Domain &D2, const Standard_Real TolConf, const Standard_Real Tol) | |
Intersection between 2 lines from gp. | |
void | Perform (const gp_Lin2d &L1, const IntRes2d_Domain &D1, const gp_Lin2d &L2, const IntRes2d_Domain &D2, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between 2 lines from gp. | |
IntCurve_IntConicConic (const gp_Lin2d &L, const IntRes2d_Domain &DL, const gp_Circ2d &C, const IntRes2d_Domain &DC, const Standard_Real TolConf, const Standard_Real Tol) | |
Intersection between a line and a circle. The exception ConstructionError is raised if the method IsClosed of the domain of the circle returns False. | |
void | Perform (const gp_Lin2d &L, const IntRes2d_Domain &DL, const gp_Circ2d &C, const IntRes2d_Domain &DC, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between a line and a circle. The exception ConstructionError is raised if the method IsClosed of the domain of the circle returns False. | |
IntCurve_IntConicConic (const gp_Lin2d &L, const IntRes2d_Domain &DL, const gp_Elips2d &E, const IntRes2d_Domain &DE, const Standard_Real TolConf, const Standard_Real Tol) | |
Intersection between a line and an ellipse. The exception ConstructionError is raised if the method IsClosed of the domain of the ellipse returns False. | |
void | Perform (const gp_Lin2d &L, const IntRes2d_Domain &DL, const gp_Elips2d &E, const IntRes2d_Domain &DE, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between a line and an ellipse. The exception ConstructionError is raised if the method IsClosed of the domain of the ellipse returns False. | |
IntCurve_IntConicConic (const gp_Lin2d &L, const IntRes2d_Domain &DL, const gp_Parab2d &P, const IntRes2d_Domain &DP, const Standard_Real TolConf, const Standard_Real Tol) | |
Intersection between a line and a parabola from gp. | |
void | Perform (const gp_Lin2d &L, const IntRes2d_Domain &DL, const gp_Parab2d &P, const IntRes2d_Domain &DP, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between a line and a parabola from gp. | |
IntCurve_IntConicConic (const gp_Lin2d &L, const IntRes2d_Domain &DL, const gp_Hypr2d &H, const IntRes2d_Domain &DH, const Standard_Real TolConf, const Standard_Real Tol) | |
Intersection between a line and an hyperbola. | |
void | Perform (const gp_Lin2d &L, const IntRes2d_Domain &DL, const gp_Hypr2d &H, const IntRes2d_Domain &DH, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between a line and an hyperbola. | |
IntCurve_IntConicConic (const gp_Circ2d &C1, const IntRes2d_Domain &D1, const gp_Circ2d &C2, const IntRes2d_Domain &D2, const Standard_Real TolConf, const Standard_Real Tol) | |
Intersection between 2 circles from gp. The exception ConstructionError is raised if the method IsClosed of one of the domain returns False. | |
void | Perform (const gp_Circ2d &C1, const IntRes2d_Domain &D1, const gp_Circ2d &C2, const IntRes2d_Domain &D2, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between 2 circles from gp. The exception ConstructionError is raised if the method IsClosed of the domain of one of the circle returns False. | |
IntCurve_IntConicConic (const gp_Circ2d &C, const IntRes2d_Domain &DC, const gp_Elips2d &E, const IntRes2d_Domain &DE, const Standard_Real TolConf, const Standard_Real Tol) | |
Intersection between a circle and an ellipse. The exception ConstructionError is raised if the method IsClosed of one the domain returns False. | |
void | Perform (const gp_Circ2d &C, const IntRes2d_Domain &DC, const gp_Elips2d &E, const IntRes2d_Domain &DE, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between a circle and an ellipse. The exception ConstructionError is raised if the method IsClosed of one the domain returns False. | |
IntCurve_IntConicConic (const gp_Circ2d &C, const IntRes2d_Domain &DC, const gp_Parab2d &P, const IntRes2d_Domain &DP, const Standard_Real TolConf, const Standard_Real Tol) | |
Intersection between a circle and a parabola. The exception ConstructionError is raised if the method IsClosed of the domain of the circle returns False. | |
void | Perform (const gp_Circ2d &C, const IntRes2d_Domain &DC, const gp_Parab2d &P, const IntRes2d_Domain &DP, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between a circle and a parabola. The exception ConstructionError is raised if the method IsClosed of the domain of the circle returns False. | |
IntCurve_IntConicConic (const gp_Circ2d &C, const IntRes2d_Domain &DC, const gp_Hypr2d &H, const IntRes2d_Domain &DH, const Standard_Real TolConf, const Standard_Real Tol) | |
Intersection between a circle and an hyperbola. The exception ConstructionError is raised if the method IsClosed of the domain of the circle returns False. | |
void | Perform (const gp_Circ2d &C, const IntRes2d_Domain &DC, const gp_Hypr2d &H, const IntRes2d_Domain &DH, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between a circle and an hyperbola. The exception ConstructionError is raised if the method IsClosed of the domain of the circle returns False. | |
IntCurve_IntConicConic (const gp_Elips2d &E1, const IntRes2d_Domain &D1, const gp_Elips2d &E2, const IntRes2d_Domain &D2, const Standard_Real TolConf, const Standard_Real Tol) | |
Intersection between 2 ellipses. The exception ConstructionError is raised if the method IsClosed of one of the domain returns False. | |
void | Perform (const gp_Elips2d &E1, const IntRes2d_Domain &D1, const gp_Elips2d &E2, const IntRes2d_Domain &D2, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between 2 ellipses. The exception ConstructionError is raised if the method IsClosed of one of the domain returns False. | |
IntCurve_IntConicConic (const gp_Elips2d &E, const IntRes2d_Domain &DE, const gp_Parab2d &P, const IntRes2d_Domain &DP, const Standard_Real TolConf, const Standard_Real Tol) | |
Intersection between an ellipse and a parabola. The exception ConstructionError is raised if the method IsClosed of the domain of the ellipse returns False. | |
void | Perform (const gp_Elips2d &E, const IntRes2d_Domain &DE, const gp_Parab2d &P, const IntRes2d_Domain &DP, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between an ellipse and a parabola. The exception ConstructionError is raised if the method IsClosed of the domain of the ellipse returns False. | |
IntCurve_IntConicConic (const gp_Elips2d &E, const IntRes2d_Domain &DE, const gp_Hypr2d &H, const IntRes2d_Domain &DH, const Standard_Real TolConf, const Standard_Real Tol) | |
Intersection between an ellipse and an hyperbola. The exception ConstructionError is raised if the method IsClosed of the domain of the ellipse returns False. | |
void | Perform (const gp_Elips2d &E, const IntRes2d_Domain &DE, const gp_Hypr2d &H, const IntRes2d_Domain &DH, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between an ellipse and an hyperbola. The exception ConstructionError is raised if the method IsClosed of the domain of the ellipse returns False. | |
IntCurve_IntConicConic (const gp_Parab2d &P1, const IntRes2d_Domain &D1, const gp_Parab2d &P2, const IntRes2d_Domain &D2, const Standard_Real TolConf, const Standard_Real Tol) | |
Intersection between 2 parabolas. | |
void | Perform (const gp_Parab2d &P1, const IntRes2d_Domain &D1, const gp_Parab2d &P2, const IntRes2d_Domain &D2, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between 2 parabolas. | |
IntCurve_IntConicConic (const gp_Parab2d &P, const IntRes2d_Domain &DP, const gp_Hypr2d &H, const IntRes2d_Domain &DH, const Standard_Real TolConf, const Standard_Real Tol) | |
Intersection between a parabola and an hyperbola. | |
void | Perform (const gp_Parab2d &P, const IntRes2d_Domain &DP, const gp_Hypr2d &H, const IntRes2d_Domain &DH, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between a parabola and an hyperbola. | |
IntCurve_IntConicConic (const gp_Hypr2d &H1, const IntRes2d_Domain &D1, const gp_Hypr2d &H2, const IntRes2d_Domain &D2, const Standard_Real TolConf, const Standard_Real Tol) | |
Intersection between 2 hyperbolas. | |
void | Perform (const gp_Hypr2d &H1, const IntRes2d_Domain &D1, const gp_Hypr2d &H2, const IntRes2d_Domain &D2, const Standard_Real TolConf, const Standard_Real Tol) |
Intersection between 2 hyperbolas. | |
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 |
Provides methods to intersect two conics. The exception ConstructionError is raised in constructors or in Perform methods when a domain (Domain from IntRes2d) is not correct, i-e when a Circle (Circ2d from gp) or an Ellipse (i-e Elips2d from gp) do not have a closed domain (use the SetEquivalentParameters method for a domain on a circle or an ellipse).
IntCurve_IntConicConic::IntCurve_IntConicConic | ( | ) |
Empty Constructor.
IntCurve_IntConicConic::IntCurve_IntConicConic | ( | const gp_Lin2d & | L1, |
const IntRes2d_Domain & | D1, | ||
const gp_Lin2d & | L2, | ||
const IntRes2d_Domain & | D2, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between 2 lines from gp.
IntCurve_IntConicConic::IntCurve_IntConicConic | ( | const gp_Lin2d & | L, |
const IntRes2d_Domain & | DL, | ||
const gp_Circ2d & | C, | ||
const IntRes2d_Domain & | DC, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between a line and a circle. The exception ConstructionError is raised if the method IsClosed of the domain of the circle returns False.
IntCurve_IntConicConic::IntCurve_IntConicConic | ( | const gp_Lin2d & | L, |
const IntRes2d_Domain & | DL, | ||
const gp_Elips2d & | E, | ||
const IntRes2d_Domain & | DE, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between a line and an ellipse. The exception ConstructionError is raised if the method IsClosed of the domain of the ellipse returns False.
IntCurve_IntConicConic::IntCurve_IntConicConic | ( | const gp_Lin2d & | L, |
const IntRes2d_Domain & | DL, | ||
const gp_Parab2d & | P, | ||
const IntRes2d_Domain & | DP, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between a line and a parabola from gp.
IntCurve_IntConicConic::IntCurve_IntConicConic | ( | const gp_Lin2d & | L, |
const IntRes2d_Domain & | DL, | ||
const gp_Hypr2d & | H, | ||
const IntRes2d_Domain & | DH, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between a line and an hyperbola.
IntCurve_IntConicConic::IntCurve_IntConicConic | ( | const gp_Circ2d & | C1, |
const IntRes2d_Domain & | D1, | ||
const gp_Circ2d & | C2, | ||
const IntRes2d_Domain & | D2, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between 2 circles from gp. The exception ConstructionError is raised if the method IsClosed of one of the domain returns False.
IntCurve_IntConicConic::IntCurve_IntConicConic | ( | const gp_Circ2d & | C, |
const IntRes2d_Domain & | DC, | ||
const gp_Elips2d & | E, | ||
const IntRes2d_Domain & | DE, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between a circle and an ellipse. The exception ConstructionError is raised if the method IsClosed of one the domain returns False.
IntCurve_IntConicConic::IntCurve_IntConicConic | ( | const gp_Circ2d & | C, |
const IntRes2d_Domain & | DC, | ||
const gp_Parab2d & | P, | ||
const IntRes2d_Domain & | DP, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between a circle and a parabola. The exception ConstructionError is raised if the method IsClosed of the domain of the circle returns False.
IntCurve_IntConicConic::IntCurve_IntConicConic | ( | const gp_Circ2d & | C, |
const IntRes2d_Domain & | DC, | ||
const gp_Hypr2d & | H, | ||
const IntRes2d_Domain & | DH, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between a circle and an hyperbola. The exception ConstructionError is raised if the method IsClosed of the domain of the circle returns False.
IntCurve_IntConicConic::IntCurve_IntConicConic | ( | const gp_Elips2d & | E1, |
const IntRes2d_Domain & | D1, | ||
const gp_Elips2d & | E2, | ||
const IntRes2d_Domain & | D2, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between 2 ellipses. The exception ConstructionError is raised if the method IsClosed of one of the domain returns False.
IntCurve_IntConicConic::IntCurve_IntConicConic | ( | const gp_Elips2d & | E, |
const IntRes2d_Domain & | DE, | ||
const gp_Parab2d & | P, | ||
const IntRes2d_Domain & | DP, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between an ellipse and a parabola. The exception ConstructionError is raised if the method IsClosed of the domain of the ellipse returns False.
IntCurve_IntConicConic::IntCurve_IntConicConic | ( | const gp_Elips2d & | E, |
const IntRes2d_Domain & | DE, | ||
const gp_Hypr2d & | H, | ||
const IntRes2d_Domain & | DH, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between an ellipse and an hyperbola. The exception ConstructionError is raised if the method IsClosed of the domain of the ellipse returns False.
IntCurve_IntConicConic::IntCurve_IntConicConic | ( | const gp_Parab2d & | P1, |
const IntRes2d_Domain & | D1, | ||
const gp_Parab2d & | P2, | ||
const IntRes2d_Domain & | D2, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between 2 parabolas.
IntCurve_IntConicConic::IntCurve_IntConicConic | ( | const gp_Parab2d & | P, |
const IntRes2d_Domain & | DP, | ||
const gp_Hypr2d & | H, | ||
const IntRes2d_Domain & | DH, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between a parabola and an hyperbola.
IntCurve_IntConicConic::IntCurve_IntConicConic | ( | const gp_Hypr2d & | H1, |
const IntRes2d_Domain & | D1, | ||
const gp_Hypr2d & | H2, | ||
const IntRes2d_Domain & | D2, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between 2 hyperbolas.
void IntCurve_IntConicConic::Perform | ( | const gp_Circ2d & | C, |
const IntRes2d_Domain & | DC, | ||
const gp_Elips2d & | E, | ||
const IntRes2d_Domain & | DE, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between a circle and an ellipse. The exception ConstructionError is raised if the method IsClosed of one the domain returns False.
void IntCurve_IntConicConic::Perform | ( | const gp_Circ2d & | C, |
const IntRes2d_Domain & | DC, | ||
const gp_Hypr2d & | H, | ||
const IntRes2d_Domain & | DH, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between a circle and an hyperbola. The exception ConstructionError is raised if the method IsClosed of the domain of the circle returns False.
void IntCurve_IntConicConic::Perform | ( | const gp_Circ2d & | C, |
const IntRes2d_Domain & | DC, | ||
const gp_Parab2d & | P, | ||
const IntRes2d_Domain & | DP, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between a circle and a parabola. The exception ConstructionError is raised if the method IsClosed of the domain of the circle returns False.
void IntCurve_IntConicConic::Perform | ( | const gp_Circ2d & | C1, |
const IntRes2d_Domain & | D1, | ||
const gp_Circ2d & | C2, | ||
const IntRes2d_Domain & | D2, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between 2 circles from gp. The exception ConstructionError is raised if the method IsClosed of the domain of one of the circle returns False.
void IntCurve_IntConicConic::Perform | ( | const gp_Elips2d & | E, |
const IntRes2d_Domain & | DE, | ||
const gp_Hypr2d & | H, | ||
const IntRes2d_Domain & | DH, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between an ellipse and an hyperbola. The exception ConstructionError is raised if the method IsClosed of the domain of the ellipse returns False.
void IntCurve_IntConicConic::Perform | ( | const gp_Elips2d & | E, |
const IntRes2d_Domain & | DE, | ||
const gp_Parab2d & | P, | ||
const IntRes2d_Domain & | DP, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between an ellipse and a parabola. The exception ConstructionError is raised if the method IsClosed of the domain of the ellipse returns False.
void IntCurve_IntConicConic::Perform | ( | const gp_Elips2d & | E1, |
const IntRes2d_Domain & | D1, | ||
const gp_Elips2d & | E2, | ||
const IntRes2d_Domain & | D2, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between 2 ellipses. The exception ConstructionError is raised if the method IsClosed of one of the domain returns False.
void IntCurve_IntConicConic::Perform | ( | const gp_Hypr2d & | H1, |
const IntRes2d_Domain & | D1, | ||
const gp_Hypr2d & | H2, | ||
const IntRes2d_Domain & | D2, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between 2 hyperbolas.
void IntCurve_IntConicConic::Perform | ( | const gp_Lin2d & | L, |
const IntRes2d_Domain & | DL, | ||
const gp_Circ2d & | C, | ||
const IntRes2d_Domain & | DC, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between a line and a circle. The exception ConstructionError is raised if the method IsClosed of the domain of the circle returns False.
void IntCurve_IntConicConic::Perform | ( | const gp_Lin2d & | L, |
const IntRes2d_Domain & | DL, | ||
const gp_Elips2d & | E, | ||
const IntRes2d_Domain & | DE, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between a line and an ellipse. The exception ConstructionError is raised if the method IsClosed of the domain of the ellipse returns False.
void IntCurve_IntConicConic::Perform | ( | const gp_Lin2d & | L, |
const IntRes2d_Domain & | DL, | ||
const gp_Hypr2d & | H, | ||
const IntRes2d_Domain & | DH, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between a line and an hyperbola.
void IntCurve_IntConicConic::Perform | ( | const gp_Lin2d & | L, |
const IntRes2d_Domain & | DL, | ||
const gp_Parab2d & | P, | ||
const IntRes2d_Domain & | DP, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between a line and a parabola from gp.
void IntCurve_IntConicConic::Perform | ( | const gp_Lin2d & | L1, |
const IntRes2d_Domain & | D1, | ||
const gp_Lin2d & | L2, | ||
const IntRes2d_Domain & | D2, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between 2 lines from gp.
void IntCurve_IntConicConic::Perform | ( | const gp_Parab2d & | P, |
const IntRes2d_Domain & | DP, | ||
const gp_Hypr2d & | H, | ||
const IntRes2d_Domain & | DH, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between a parabola and an hyperbola.
void IntCurve_IntConicConic::Perform | ( | const gp_Parab2d & | P1, |
const IntRes2d_Domain & | D1, | ||
const gp_Parab2d & | P2, | ||
const IntRes2d_Domain & | D2, | ||
const Standard_Real | TolConf, | ||
const Standard_Real | Tol | ||
) |
Intersection between 2 parabolas.