Geom2dInt
OCCT package Geom2dInt: Geom2dInt_ExactIntersectionPointOfTheIntPCurvePCurveOfGInter, Geom2dInt_Geom2dCurveTool, Geom2dInt_GInter,…
Geom2dInt_ExactIntersectionPointOfTheIntPCurvePCurveOfGInter
Constructors(1)
- constructor(C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, Tol: number): Geom2dInt_ExactIntersectionPointOfTheIntPCurvePCurveOfGInterParameters (3)
C1C2Tol
Instance methods(5)
- Perform(Poly1: Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter, Poly2: Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter, NumSegOn1: number, NumSegOn2: number, ParamOnSeg1: number, ParamOnSeg2: number): { NumSegOn1: number; NumSegOn2: number; ParamOnSeg1: number; ParamOnSeg2: number }Parameters (6)
Poly1Poly2NumSegOn1NumSegOn2ParamOnSeg1ParamOnSeg2
- Perform(Uo: number, Vo: number, UInf: number, VInf: number, USup: number, VSup: number): voidParameters (6)
UoVoUInfVInfUSupVSup
- NbRoots(): number
- Roots(U: number, V: number): { U: number; V: number }Parameters (2)
UV
- AnErrorOccurred(): boolean
Geom2dInt_Geom2dCurveTool
This class provides a Geom2dCurveTool as < Geom2dCurveTool from IntCurve > from a Tool as < Geom2dCurveTool from Adaptor3d > .
Constructors(1)
Static methods(22)
- Parameters (1)
C
Returns the Lin2d from gp corresponding to the curve C. This method is called only when TheType returns GeomAbs_Line.
Parameters (1)C
Returns the Circ2d from gp corresponding to the curve C. This method is called only when TheType returns GeomAbs_Circle.
Parameters (1)C
Returns the Elips2d from gp corresponding to the curve C. This method is called only when TheType returns GeomAbs_Ellipse.
Parameters (1)C
Returns the Parab2d from gp corresponding to the curve C. This method is called only when TheType returns GeomAbs_Parabola.
Parameters (1)C
Returns the Hypr2d from gp corresponding to the curve C. This method is called only when TheType returns GeomAbs_Hyperbola.
Parameters (1)C
- EpsX(C: Adaptor2d_Curve2d): numberParameters (1)
C
- EpsX(C: Adaptor2d_Curve2d, Eps_XYZ: number): numberParameters (2)
CEps_XYZ
- NbSamples(C: Adaptor2d_Curve2d): numberParameters (1)
C
- NbSamples(C: Adaptor2d_Curve2d, U0: number, U1: number): numberParameters (3)
CU0U1
- FirstParameter(C: Adaptor2d_Curve2d): numberParameters (1)
C
- LastParameter(C: Adaptor2d_Curve2d): numberParameters (1)
C
- Value(C: Adaptor2d_Curve2d, X: number): gp_Pnt2dParameters (2)
CX
- D0(C: Adaptor2d_Curve2d, U: number, P: gp_Pnt2d): voidParameters (3)
CUP
- D1(C: Adaptor2d_Curve2d, U: number, P: gp_Pnt2d, T: gp_Vec2d): voidParameters (4)
CUPT
- D2(C: Adaptor2d_Curve2d, U: number, P: gp_Pnt2d, T: gp_Vec2d, N: gp_Vec2d): voidParameters (5)
CUPTN
- Parameters (6)
CUPTNV
- DN(C: Adaptor2d_Curve2d, U: number, N: number): gp_Vec2dParameters (3)
CUN
- NbIntervals(C: Adaptor2d_Curve2d): number
output the number of interval of continuity C2 of the curve
Parameters (1)C
- Intervals(C: Adaptor2d_Curve2d, Tab: NCollection_Array1_double): void
compute Tab.
Parameters (2)CTab—Mutated in place; read the updated value from this argument after the call.
- GetInterval(C: Adaptor2d_Curve2d, Index: number, Tab: NCollection_Array1_double, U1: number, U2: number): { U1: number; U2: number }
output the bounds of interval of index <Index> used if Type == Composite.
Parameters (5)CIndexTabU1U2
ReturnsA result object with fields:
U1: updated value from the call.U2: updated value from the call.
- Degree(C: Adaptor2d_Curve2d): numberParameters (1)
C
Geom2dInt_GInter
Constructors(7)
Empty constructor.
- constructor(C: Adaptor2d_Curve2d, TolConf: number, Tol: number): Geom2dInt_GInter
Self Intersection of a curve.
Parameters (3)CTolConfTol
- constructor(C: Adaptor2d_Curve2d, D: IntRes2d_Domain, TolConf: number, Tol: number): Geom2dInt_GInter
Self Intersection of a curve with a domain.
Parameters (4)CDTolConfTol
- constructor(C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, TolConf: number, Tol: number): Geom2dInt_GInter
Intersection between 2 curves.
Parameters (4)C1C2TolConfTol
- constructor(C1: Adaptor2d_Curve2d, D1: IntRes2d_Domain, C2: Adaptor2d_Curve2d, TolConf: number, Tol: number): Geom2dInt_GInter
Intersection between 2 curves.
Parameters (5)C1D1C2TolConfTol
- constructor(C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): Geom2dInt_GInter
Intersection between 2 curves.
Parameters (5)C1C2D2TolConfTol
- constructor(C1: Adaptor2d_Curve2d, D1: IntRes2d_Domain, C2: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): Geom2dInt_GInter
Intersection between 2 curves.
Parameters (6)C1D1C2D2TolConfTol
Instance methods(9)
- Perform(C1: Adaptor2d_Curve2d, TolConf: number, Tol: number): void
Intersection between 2 curves.
Parameters (3)C1TolConfTol
- Perform(C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, TolConf: number, Tol: number): void
Intersection between 2 curves.
Parameters (4)C1C2TolConfTol
- Perform(C1: Adaptor2d_Curve2d, D1: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between 2 curves.
Parameters (4)C1D1TolConfTol
- Perform(C1: Adaptor2d_Curve2d, D1: IntRes2d_Domain, C2: Adaptor2d_Curve2d, TolConf: number, Tol: number): void
Intersection between 2 curves.
Parameters (5)C1D1C2TolConfTol
- Perform(C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between 2 curves.
Parameters (5)C1C2D2TolConfTol
- Perform(C1: Adaptor2d_Curve2d, D1: IntRes2d_Domain, C2: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between 2 curves.
Parameters (6)C1D1C2D2TolConfTol
- ComputeDomain(C1: Adaptor2d_Curve2d, TolDomain: number): IntRes2d_Domain
Create a domain from a curve.
Parameters (2)C1TolDomain
- SetMinNbSamples(theMinNbSamples: number): void
Set / get minimum number of points in polygon intersection.
Parameters (1)theMinNbSamples
- GetMinNbSamples(): number
Geom2dInt_IntConicCurveOfGInter
Constructors(6)
Empty constructor.
- constructor(L: gp_Lin2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): Geom2dInt_IntConicCurveOfGInter
Intersection between a line and a parametric curve.
Parameters (6)LD1PCurveD2TolConfTol
- constructor(C: gp_Circ2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): Geom2dInt_IntConicCurveOfGInter
Intersection between a line and a parametric curve.
Parameters (6)CD1PCurveD2TolConfTol
- constructor(E: gp_Elips2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): Geom2dInt_IntConicCurveOfGInter
Intersection between an ellipse and a parametric curve.
Parameters (6)ED1PCurveD2TolConfTol
- constructor(Prb: gp_Parab2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): Geom2dInt_IntConicCurveOfGInter
Intersection between a parabola and a parametric curve.
Parameters (6)PrbD1PCurveD2TolConfTol
- constructor(H: gp_Hypr2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): Geom2dInt_IntConicCurveOfGInter
Intersection between the main branch of an hyperbola and a parametric curve.
Parameters (6)HD1PCurveD2TolConfTol
Instance methods(5)
- Perform(L: gp_Lin2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between a line and a parametric curve.
Parameters (6)LD1PCurveD2TolConfTol
- Perform(C: gp_Circ2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between a line and a parametric curve.
Parameters (6)CD1PCurveD2TolConfTol
- Perform(E: gp_Elips2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between an ellipse and a parametric curve.
Parameters (6)ED1PCurveD2TolConfTol
- Perform(Prb: gp_Parab2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between a parabola and a parametric curve.
Parameters (6)PrbD1PCurveD2TolConfTol
- Perform(H: gp_Hypr2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between the main branch of an hyperbola and a parametric curve.
Parameters (6)HD1PCurveD2TolConfTol
Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter
Constructors(1)
- constructor(IT: IntCurve_IConicTool, PC: Adaptor2d_Curve2d): Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter
Constructor of the class.
Parameters (2)ITPC
Instance methods(3)
- Value(X: number, F: number): { returnValue: boolean; F: number }
Computes the value of the signed distance between the implicit curve and the point at parameter Param on the parametrised curve.
Parameters (2)XF
ReturnsA result object with fields:
returnValue: the C++ return valueF: updated value from the call.
- Derivative(X: number, D: number): { returnValue: boolean; D: number }
Computes the derivative of the previous function at parameter Param.
Parameters (2)XD
ReturnsA result object with fields:
returnValue: the C++ return valueD: updated value from the call.
- Values(X: number, F: number, D: number): { returnValue: boolean; F: number; D: number }
Computes the value and the derivative of the function.
Parameters (3)XFD
ReturnsA result object with fields:
returnValue: the C++ return valueF: updated value from the call.D: updated value from the call.
Geom2dInt_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfGInter
Constructors(1)
- constructor(curve1: Adaptor2d_Curve2d, curve2: Adaptor2d_Curve2d): Geom2dInt_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfGInterParameters (2)
curve1curve2
Instance methods(5)
- NbVariables(): number
returns 2.
- NbEquations(): number
returns 2.
- Value(X: math_Vector, F: math_Vector): boolean
computes the values <F> of the Functions for the variable <X>. returns True if the computation was done successfully, False otherwise.
Parameters (2)XF
- Derivatives(X: math_Vector, D: math_Matrix): boolean
returns the values <D> of the derivatives for the variable <X>. returns True if the computation was done successfully, False otherwise.
Parameters (2)XD
- Values(X: math_Vector, F: math_Vector, D: math_Matrix): boolean
returns the values <F> of the functions and the derivatives <D> for the variable <X>. returns True if the computation was done successfully, False otherwise.
Parameters (3)XFD
Geom2dInt_TheIntConicCurveOfGInter
Constructors(6)
Empty constructor.
- constructor(L: gp_Lin2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): Geom2dInt_TheIntConicCurveOfGInter
Intersection between a line and a parametric curve.
Parameters (6)LD1PCurveD2TolConfTol
- constructor(C: gp_Circ2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): Geom2dInt_TheIntConicCurveOfGInter
Intersection between a line and a parametric curve.
Parameters (6)CD1PCurveD2TolConfTol
- constructor(E: gp_Elips2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): Geom2dInt_TheIntConicCurveOfGInter
Intersection between an ellipse and a parametric curve.
Parameters (6)ED1PCurveD2TolConfTol
- constructor(Prb: gp_Parab2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): Geom2dInt_TheIntConicCurveOfGInter
Intersection between a parabola and a parametric curve.
Parameters (6)PrbD1PCurveD2TolConfTol
- constructor(H: gp_Hypr2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): Geom2dInt_TheIntConicCurveOfGInter
Intersection between the main branch of an hyperbola and a parametric curve.
Parameters (6)HD1PCurveD2TolConfTol
Instance methods(5)
- Perform(L: gp_Lin2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between a line and a parametric curve.
Parameters (6)LD1PCurveD2TolConfTol
- Perform(C: gp_Circ2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between a line and a parametric curve.
Parameters (6)CD1PCurveD2TolConfTol
- Perform(E: gp_Elips2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between an ellipse and a parametric curve.
Parameters (6)ED1PCurveD2TolConfTol
- Perform(Prb: gp_Parab2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between a parabola and a parametric curve.
Parameters (6)PrbD1PCurveD2TolConfTol
- Perform(H: gp_Hypr2d, D1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, D2: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between the main branch of an hyperbola and a parametric curve.
Parameters (6)HD1PCurveD2TolConfTol
Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter
Constructors(2)
Empty constructor.
- constructor(ITool: IntCurve_IConicTool, Dom1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, Dom2: IntRes2d_Domain, TolConf: number, Tol: number): Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter
Intersection between an implicit curve and a parametrised curve. The exception ConstructionError is raised if the domain of the parametrised curve does not verify HasFirstPoint and HasLastPoint return True.
Parameters (6)IToolDom1PCurveDom2TolConfTol
Instance methods(4)
- Perform(ITool: IntCurve_IConicTool, Dom1: IntRes2d_Domain, PCurve: Adaptor2d_Curve2d, Dom2: IntRes2d_Domain, TolConf: number, Tol: number): void
Intersection between an implicit curve and a parametrised curve. The exception ConstructionError is raised if the domain of the parametrised curve does not verify HasFirstPoint and HasLastPoint return True.
Parameters (6)IToolDom1PCurveDom2TolConfTol
- FindU(parameter: number, point: gp_Pnt2d, TheParCurev: Adaptor2d_Curve2d, IntCurve_IConicTool: IntCurve_IConicTool): numberParameters (4)
parameterpointTheParCurevIntCurve_IConicTool
- FindV(parameter: number, point: gp_Pnt2d, IntCurve_IConicTool: IntCurve_IConicTool, ParCurve: Adaptor2d_Curve2d, TheParCurveDomain: IntRes2d_Domain, V0: number, V1: number, Tolerance: number): numberParameters (8)
parameterpointIntCurve_IConicToolParCurveTheParCurveDomainV0V1Tolerance
- And_Domaine_Objet1_Intersections(IntCurve_IConicTool: IntCurve_IConicTool, TheParCurve: Adaptor2d_Curve2d, TheImpCurveDomain: IntRes2d_Domain, TheParCurveDomain: IntRes2d_Domain, NbResultats: number, Inter2_And_Domain2: NCollection_Array1_double, Inter1: NCollection_Array1_double, Resultat1: NCollection_Array1_double, Resultat2: NCollection_Array1_double, EpsNul: number): { NbResultats: number }Parameters (10)
IntCurve_IConicToolTheParCurveTheImpCurveDomainTheParCurveDomainNbResultatsInter2_And_Domain2Inter1Resultat1Resultat2EpsNul
Geom2dInt_TheIntPCurvePCurveOfGInter
Constructors(1)
Instance methods(4)
- Perform(Curve1: Adaptor2d_Curve2d, Domain1: IntRes2d_Domain, Curve2: Adaptor2d_Curve2d, Domain2: IntRes2d_Domain, TolConf: number, Tol: number): voidParameters (6)
Curve1Domain1Curve2Domain2TolConfTol
- Perform(Curve1: Adaptor2d_Curve2d, Domain1: IntRes2d_Domain, TolConf: number, Tol: number): voidParameters (4)
Curve1Domain1TolConfTol
- SetMinNbSamples(theMinNbSamples: number): void
Set / get minimum number of points in polygon for intersection.
Parameters (1)theMinNbSamples
- GetMinNbSamples(): number
Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter
Constructors(1)
- constructor(Curve: Adaptor2d_Curve2d, NbPnt: number, Domain: IntRes2d_Domain, Tol: number): Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter
Compute a polygon on the domain of the curve.
Parameters (4)CurveNbPntDomainTol
Instance methods(13)
- ComputeWithBox(Curve: Adaptor2d_Curve2d, OtherBox: Bnd_Box2d): void
The current polygon is modified if most of the points of the polygon are outside the box <OtherBox>. In this situation, bounds are computed to build a polygon inside or near the OtherBox.
Parameters (2)CurveOtherBox
- DeflectionOverEstimation(): number
Returns the tolerance of the polygon.
- SetDeflectionOverEstimation(x: number): voidParameters (1)
x
- Closed(clos: boolean): voidParameters (1)
clos
- Closed(): boolean
Returns True if the polyline is closed.
- NbSegments(): number
Give the number of Segments in the polyline.
Returns the points of the segment <Index> in the Polygon.
Parameters (3)theIndextheBegin—Mutated in place; read the updated value from this argument after the call.theEnd—Mutated in place; read the updated value from this argument after the call.
- InfParameter(): number
Returns the parameter (On the curve) of the first point of the Polygon.
- SupParameter(): number
Returns the parameter (On the curve) of the last point of the Polygon.
- AutoIntersectionIsPossible(): boolean
- ApproxParamOnCurve(Index: number, ParamOnLine: number): number
Give an approximation of the parameter on the curve according to the discretization of the Curve.
Parameters (2)IndexParamOnLine
- CalculRegion(x: number, y: number, x1: number, x2: number, y1: number, y2: number): numberParameters (6)
xyx1x2y1y2
- Dump(): void
Geom2dInt_TheProjPCurOfGInter
Constructors(1)
Static methods(2)
- FindParameter(C: Adaptor2d_Curve2d, Pnt: gp_Pnt2d, Tol: number): number
Returns the parameter V of the point on the parametric curve corresponding to the Point Pnt. The Correspondence between Pnt and the point P(V) on the parametric curve must be coherent with the way of determination of the signed distance between a point and the implicit curve. Tol is the tolerance on the distance between a point and the parametrised curve. In that case, no bounds are given. The research of the right parameter has to be made on the natural parametric domain of the curve.
Parameters (3)CPntTol
- FindParameter(C: Adaptor2d_Curve2d, Pnt: gp_Pnt2d, LowParameter: number, HighParameter: number, Tol: number): number
Returns the parameter V of the point on the parametric curve corresponding to the Point Pnt.
The Correspondence between Pnt and the point P(V) on the parametric curve must be coherent with the way of determination of the signed distance between a point and the implicit curve. Tol is the tolerance on the distance between a point and the parametrised curve. LowParameter and HighParameter give the boundaries of the interval in which the parameter certainly lies. These parameters are given to implement a more efficient algorithm. So, it is not necessary to check that the returned value verifies LowParameter <= Value <= HighParameter.Parameters (5)CPntLowParameterHighParameterTol
Geom2dHatch
OCCT package Geom2dHatch: Geom2dHatch_Classifier, Geom2dHatch_Element, Geom2dHatch_FClass2dOfClassifier, Geom2dHatch_Hatcher, and 2 more bound classes.
GeomAPI
OCCT package GeomAPI: GeomAPI, GeomAPI_ExtremaCurveCurve, GeomAPI_ExtremaCurveSurface, GeomAPI_ExtremaSurfaceSurface, and 7 more bound classes.