GeomInt
OCCT package GeomInt: GeomInt, GeomInt_BSpGradient_BFGSOfMyBSplGradientOfTheComputeLineOfWLApprox,…
GeomInt
Provides intersections on between two surfaces of Geom. The result are curves from Geom.
Constructors(1)
Static methods(1)
- AdjustPeriodic(thePar: number, theParMin: number, theParMax: number, thePeriod: number, theNewPar: number, theOffset: number, theEps: number): { returnValue: boolean; theNewPar: number; theOffset: number }
Adjusts the parameter <thePar> to the range [theParMin, theParMax].
Parameters (7)thePartheParMintheParMaxthePeriodtheNewPartheOffsettheEps
ReturnsA result object with fields:
returnValue: the C++ return valuetheNewPar: updated value from the call.theOffset: updated value from the call.
GeomInt_BSpGradient_BFGSOfMyBSplGradientOfTheComputeLineOfWLApprox
Constructors(1)
- constructor(F: math_MultipleVarFunctionWithGradient, StartingPoint: math_Vector, Tolerance3d: number, Tolerance2d: number, Eps: number, NbIterations?: number): GeomInt_BSpGradient_BFGSOfMyBSplGradientOfTheComputeLineOfWLApproxParameters (6)
FStartingPointTolerance3dTolerance2dEpsNbIterations
Instance methods(1)
- IsSolutionReached(F: math_MultipleVarFunctionWithGradient): boolean
This method is called at the end of each iteration to check if the solution is found. It can be redefined in a sub-class to implement a specific test to stop the iterations.
Parameters (1)F
GeomInt_BSpParFunctionOfMyBSplGradientOfTheComputeLineOfWLApprox
Constructors(1)
- constructor(SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: number, LastPoint: number, TheConstraints: NCollection_HArray1_AppParCurves_ConstraintCouple, Parameters: math_Vector, Knots: NCollection_Array1_double, Mults: NCollection_Array1_int, NbPol: number): GeomInt_BSpParFunctionOfMyBSplGradientOfTheComputeLineOfWLApprox
initializes the fields of the function. The approximating curve has <NbPol> control points.
Parameters (8)SSPFirstPointLastPointTheConstraintsParametersKnotsMultsNbPol
Instance methods(16)
- NbVariables(): number
returns the number of variables of the function. It corresponds to the number of MultiPoints.
- Value(X: math_Vector, F: number): { returnValue: boolean; F: number }
this method computes the new approximation of the MultiLine SSP and calculates F = sum (||Pui - Bi*Pi||2) for each point of the MultiLine.
Parameters (2)XF
ReturnsA result object with fields:
returnValue: the C++ return valueF: updated value from the call.
- Gradient(X: math_Vector, G: math_Vector): boolean
returns the gradient G of the sum above for the parameters Xi.
Parameters (2)XG
- Values(X: math_Vector, F: number, G: math_Vector): { returnValue: boolean; F: number }
returns the value F=sum(||Pui - Bi*Pi||)2. returns the value G = grad(F) for the parameters Xi.
Parameters (3)XFG
ReturnsA result object with fields:
returnValue: the C++ return valueF: updated value from the call.
- NewParameters(): math_Vector
returns the new parameters of the MultiLine.
returns the MultiBSpCurve approximating the set after computing the value F or Grad(F).
- Error(IPoint: number, CurveIndex: number): number
returns the distance between the MultiPoint of range IPoint and the curve CurveIndex.
Parameters (2)IPointCurveIndex
- MaxError3d(): number
returns the maximum distance between the points and the MultiBSpCurve.
- MaxError2d(): number
returns the maximum distance between the points and the MultiBSpCurve.
returns the function matrix used to approximate the multiline.
returns the derivative function matrix used to approximate the multiline.
- Index(): math_IntegerVector
Returns the indexes of the first non null values of A and DA. The values are non null from Index(ieme point) +1 to Index(ieme point) + degree +1.
- FirstConstraint(TheConstraints: NCollection_HArray1_AppParCurves_ConstraintCouple, FirstPoint: number): AppParCurves_ConstraintParameters (2)
TheConstraintsFirstPoint
- LastConstraint(TheConstraints: NCollection_HArray1_AppParCurves_ConstraintCouple, LastPoint: number): AppParCurves_ConstraintParameters (2)
TheConstraintsLastPoint
- SetFirstLambda(l1: number): voidParameters (1)
l1
- SetLastLambda(l2: number): voidParameters (1)
l2
GeomInt_BSpParLeastSquareOfMyBSplGradientOfTheComputeLineOfWLApprox
Constructors(4)
- constructor(SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: number, LastPoint: number, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: number): GeomInt_BSpParLeastSquareOfMyBSplGradientOfTheComputeLineOfWLApprox
Initializes the fields of the object.
Parameters (6)SSPFirstPointLastPointFirstConsLastConsNbPol
- constructor(SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: number, LastPoint: number, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: number): GeomInt_BSpParLeastSquareOfMyBSplGradientOfTheComputeLineOfWLApprox
given a MultiLine, this algorithm computes the least square resolution using the Householder-QR method.
If the first and/or the last point is a constraint point, the value of the tangency or curvature is computed in the resolution. NbPol is the number of control points wanted for the approximating curves. The system to solve is the following: A X = B. Where A is the Bernstein matrix computed with the parameters, B the points coordinates and X the poles solutions.
The matrix A is the same for each coordinate x, y and z and is also the same for each MultiLine point because they are approximated in parallel(so with the same parameter, only the vector B changes).Parameters (7)SSPFirstPointLastPointFirstConsLastConsParametersNbPol
- constructor(SSP: GeomInt_TheMultiLineOfWLApprox, Knots: NCollection_Array1_double, Mults: NCollection_Array1_int, FirstPoint: number, LastPoint: number, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: number): GeomInt_BSpParLeastSquareOfMyBSplGradientOfTheComputeLineOfWLApprox
Initializes the fields of the object.
Parameters (8)SSPKnotsMultsFirstPointLastPointFirstConsLastConsNbPol
- constructor(SSP: GeomInt_TheMultiLineOfWLApprox, Knots: NCollection_Array1_double, Mults: NCollection_Array1_int, FirstPoint: number, LastPoint: number, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: number): GeomInt_BSpParLeastSquareOfMyBSplGradientOfTheComputeLineOfWLApprox
given a MultiLine, this algorithm computes the least square resolution using the Householder-QR method.
If the first and/or the last point is a constraint point, the value of the tangency or curvature is computed in the resolution. Deg is the degree wanted for the approximating curves. The system to solve is the following: A X = B. Where A is the BSpline functions matrix computed with <parameters>, B the points coordinates and X the poles solutions.
The matrix A is the same for each coordinate x, y and z and is also the same for each MultiLine point because they are approximated in parallel(so with the same parameter, only the vector B changes).Parameters (9)SSPKnotsMultsFirstPointLastPointFirstConsLastConsParametersNbPol
Instance methods(17)
- Perform(Parameters: math_Vector): void
Is used after having initialized the fields. The case "CurvaturePoint" is not treated in this method.
Parameters (1)Parameters
- Perform(Parameters: math_Vector, l1: number, l2: number): void
Is used after having initialized the fields.
Parameters (3)Parametersl1l2
- Perform(Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, l1: number, l2: number): void
Is used after having initialized the fields. <V1t> is the tangent vector at the first point. <V2t> is the tangent vector at the last point.
Parameters (5)ParametersV1tV2tl1l2
- Perform(Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, V1c: math_Vector, V2c: math_Vector, l1: number, l2: number): void
Is used after having initialized the fields. <V1t> is the tangent vector at the first point. <V2t> is the tangent vector at the last point. <V1c> is the tangent vector at the first point. <V2c> is the tangent vector at the last point.
Parameters (7)ParametersV1tV2tV1cV2cl1l2
- IsDone(): boolean
returns True if all has been correctly done.
returns the result of the approximation, i.e. all the Curves. An exception is raised if NotDone.
returns the result of the approximation, i.e. all the Curves. An exception is raised if NotDone.
returns the function matrix used to approximate the set.
returns the derivative function matrix used to approximate the set.
- ErrorGradient(Grad: math_Vector, F: number, MaxE3d: number, MaxE2d: number): { F: number; MaxE3d: number; MaxE2d: number }
returns the maximum errors between the MultiLine and the approximation curves. F is the sum of the square distances. Grad is the derivative vector of the function F.
Parameters (4)GradFMaxE3dMaxE2d
ReturnsA result object with fields:
F: updated value from the call.MaxE3d: updated value from the call.MaxE2d: updated value from the call.
returns the distances between the points of the multiline and the approximation curves.
- Error(F: number, MaxE3d: number, MaxE2d: number): { F: number; MaxE3d: number; MaxE2d: number }
returns the maximum errors between the MultiLine and the approximation curves. F is the sum of the square distances.
Parameters (3)FMaxE3dMaxE2d
ReturnsA result object with fields:
F: updated value from the call.MaxE3d: updated value from the call.MaxE2d: updated value from the call.
- FirstLambda(): number
returns the value (P2 - P1)/ V1 if the first point was a tangency point.
- LastLambda(): number
returns the value (PN - PN-1)/ VN if the last point was a tangency point.
returns the matrix of points value.
- Poles(): math_Matrix
returns the matrix of resulting control points value.
- KIndex(): math_IntegerVector
Returns the indexes of the first non null values of A and DA. The values are non null from Index(ieme point) +1 to Index(ieme point) + degree +1.
GeomInt_Gradient_BFGSOfMyGradientbisOfTheComputeLineOfWLApprox
Constructors(1)
- constructor(F: math_MultipleVarFunctionWithGradient, StartingPoint: math_Vector, Tolerance3d: number, Tolerance2d: number, Eps: number, NbIterations?: number): GeomInt_Gradient_BFGSOfMyGradientbisOfTheComputeLineOfWLApproxParameters (6)
FStartingPointTolerance3dTolerance2dEpsNbIterations
Instance methods(1)
- IsSolutionReached(F: math_MultipleVarFunctionWithGradient): boolean
This method is called at the end of each iteration to check if the solution is found. It can be redefined in a sub-class to implement a specific test to stop the iterations.
Parameters (1)F
GeomInt_Gradient_BFGSOfMyGradientOfTheComputeLineBezierOfWLApprox
Constructors(1)
- constructor(F: math_MultipleVarFunctionWithGradient, StartingPoint: math_Vector, Tolerance3d: number, Tolerance2d: number, Eps: number, NbIterations?: number): GeomInt_Gradient_BFGSOfMyGradientOfTheComputeLineBezierOfWLApproxParameters (6)
FStartingPointTolerance3dTolerance2dEpsNbIterations
Instance methods(1)
- IsSolutionReached(F: math_MultipleVarFunctionWithGradient): boolean
This method is called at the end of each iteration to check if the solution is found. It can be redefined in a sub-class to implement a specific test to stop the iterations.
Parameters (1)F
GeomInt_IntSS
Constructors(2)
- constructor(S1: Geom_Surface, S2: Geom_Surface, Tol: number, Approx?: boolean, ApproxS1?: boolean, ApproxS2?: boolean): GeomInt_IntSS
performs general intersection of two surfaces just now
Parameters (6)S1S2TolApproxApproxS1ApproxS2
Static methods(5)
- BuildPCurves(theFirst: number, theLast: number, theUmin: number, theUmax: number, theVmin: number, theVmax: number, theTol: number, theSurface: Geom_Surface, theCurve: Geom_Curve): { theTol: number; theCurve2d: Geom2d_Curve; [Symbol.dispose](): void }
creates 2D-curve on given surface from given 3D-curve
Parameters (9)theFirsttheLasttheUmintheUmaxtheVmintheVmaxtheToltheSurfacetheCurve
ReturnsA result object with fields:
theTol: updated value from the call.theCurve2d: owned by the returned envelope.
Dispose the returned envelope to release owned Handle fields.
- BuildPCurves(f: number, l: number, Tol: number, S: Geom_Surface, C: Geom_Curve): { Tol: number; C2d: Geom2d_Curve; [Symbol.dispose](): void }
creates 2D-curve on given surface from given 3D-curve
Parameters (5)flTolSC
ReturnsA result object with fields:
Tol: updated value from the call.C2d: owned by the returned envelope.
Dispose the returned envelope to release owned Handle fields.
- TrimILineOnSurfBoundaries(theC2d1: Geom2d_Curve, theC2d2: Geom2d_Curve, theBound1: Bnd_Box2d, theBound2: Bnd_Box2d, theArrayOfParameters: NCollection_DynamicArray_double): void
puts into theArrayOfParameters the parameters of intersection points of given theC2d1 and theC2d2 curves with the boundaries of the source surface.
Parameters (5)theC2d1theC2d2theBound1theBound2theArrayOfParameters—Mutated in place; read the updated value from this argument after the call.
- MakeBSpline(WL: IntPatch_WLine, ideb: number, ifin: number): Geom_CurveParameters (3)
WLidebifin
- MakeBSpline2d(theWLine: IntPatch_WLine, ideb: number, ifin: number, onFirst: boolean): Geom2d_BSplineCurveParameters (4)
theWLineidebifinonFirst
Instance methods(17)
- Perform(HS1: GeomAdaptor_Surface, HS2: GeomAdaptor_Surface, Tol: number, Approx: boolean, ApproxS1: boolean, ApproxS2: boolean): void
intersection of adapted surfaces
Parameters (6)HS1HS2TolApproxApproxS1ApproxS2
- Perform(S1: Geom_Surface, S2: Geom_Surface, Tol: number, U1: number, V1: number, U2: number, V2: number, Approx: boolean, ApproxS1: boolean, ApproxS2: boolean): void
general intersection using a starting point
Parameters (10)S1S2TolU1V1U2V2ApproxApproxS1ApproxS2
- Perform(HS1: GeomAdaptor_Surface, HS2: GeomAdaptor_Surface, Tol: number, U1: number, V1: number, U2: number, V2: number, Approx: boolean, ApproxS1: boolean, ApproxS2: boolean): void
intersection of adapted surfaces using a starting point
Parameters (10)HS1HS2TolU1V1U2V2ApproxApproxS1ApproxS2
- IsDone(): boolean
- TolReached3d(): number
- TolReached2d(): number
- NbLines(): number
- Line(Index: number): Geom_CurveParameters (1)
Index
- HasLineOnS1(Index: number): booleanParameters (1)
Index
- LineOnS1(Index: number): Geom2d_CurveParameters (1)
Index
- HasLineOnS2(Index: number): booleanParameters (1)
Index
- LineOnS2(Index: number): Geom2d_CurveParameters (1)
Index
- NbBoundaries(): number
- Boundary(Index: number): Geom_CurveParameters (1)
Index
- NbPoints(): number
- Parameters (1)
Index
- Parameters (2)
IndexOnFirst
GeomInt_LineConstructor
Splits given Line.
Constructors(1)
Empty constructor.
Instance methods(5)
- Load(D1: Adaptor3d_TopolTool, D2: Adaptor3d_TopolTool, S1: GeomAdaptor_Surface, S2: GeomAdaptor_Surface): void
Initializes me by two surfaces and corresponding tools which represent boundaries of surfaces.
Parameters (4)D1D2S1S2
- Perform(L: IntPatch_Line): void
Splits line.
Parameters (1)L
- IsDone(): boolean
Returns True if splitting was successful.
- NbParts(): number
Returns number of splits.
- Part(I: number, WFirst: number, WLast: number): { WFirst: number; WLast: number }
Return first and last parameters for given index of split.
Parameters (3)IWFirstWLast
ReturnsA result object with fields:
WFirst: updated value from the call.WLast: updated value from the call.
GeomInt_LineTool
Constructors(1)
Static methods(5)
- NbVertex(L: IntPatch_Line): numberParameters (1)
L
- Vertex(L: IntPatch_Line, I: number): IntPatch_PointParameters (2)
LI
- FirstParameter(L: IntPatch_Line): numberParameters (1)
L
- LastParameter(L: IntPatch_Line): numberParameters (1)
L
- DecompositionOfWLine(theWLine: IntPatch_WLine, theSurface1: GeomAdaptor_Surface, theSurface2: GeomAdaptor_Surface, aTolSum: number, theLConstructor: GeomInt_LineConstructor, theNewLines: NCollection_Sequence_handle_IntPatch_Line): booleanParameters (6)
theWLinetheSurface1theSurface2aTolSumtheLConstructortheNewLines
GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox
Constructors(2)
- constructor(SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: number, LastPoint: number, TheConstraints: NCollection_HArray1_AppParCurves_ConstraintCouple, Parameters: math_Vector, Knots: NCollection_Array1_double, Mults: NCollection_Array1_int, Deg: number, Tol3d: number, Tol2d: number, NbIterations?: number): GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox
Tries to minimize the sum (square(||Qui - Bi*Pi||)) where Pui describe the approximating BSpline curves'Poles and Qi the MultiLine points with a parameter ui. In this algorithm, the parameters ui are the unknowns. The tolerance required on this sum is given by Tol. The desired degree of the resulting curve is Deg.
Parameters (11)SSPFirstPointLastPointTheConstraintsParametersKnotsMultsDegTol3dTol2dNbIterations
- constructor(SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: number, LastPoint: number, TheConstraints: NCollection_HArray1_AppParCurves_ConstraintCouple, Parameters: math_Vector, Knots: NCollection_Array1_double, Mults: NCollection_Array1_int, Deg: number, Tol3d: number, Tol2d: number, NbIterations: number, lambda1: number, lambda2: number): GeomInt_MyBSplGradientOfTheComputeLineOfWLApprox
Tries to minimize the sum (square(||Qui - Bi*Pi||)) where Pui describe the approximating BSpline curves'Poles and Qi the MultiLine points with a parameter ui. In this algorithm, the parameters ui are the unknowns. The tolerance required on this sum is given by Tol. The desired degree of the resulting curve is Deg.
Parameters (13)SSPFirstPointLastPointTheConstraintsParametersKnotsMultsDegTol3dTol2dNbIterationslambda1lambda2
Instance methods(6)
- IsDone(): boolean
returns True if all has been correctly done.
returns all the BSpline curves approximating the MultiLine SSP after minimization of the parameter.
- Error(Index: number): number
returns the difference between the old and the new approximation. An exception is raised if NotDone. An exception is raised if Index<1 or Index>NbParameters.
Parameters (1)Index
- MaxError3d(): number
returns the maximum difference between the old and the new approximation.
- MaxError2d(): number
returns the maximum difference between the old and the new approximation.
- AverageError(): number
returns the average error between the old and the new approximation.
GeomInt_MyGradientbisOfTheComputeLineOfWLApprox
Constructors(1)
- constructor(SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: number, LastPoint: number, TheConstraints: NCollection_HArray1_AppParCurves_ConstraintCouple, Parameters: math_Vector, Deg: number, Tol3d: number, Tol2d: number, NbIterations?: number): GeomInt_MyGradientbisOfTheComputeLineOfWLApprox
Tries to minimize the sum (square(||Qui - Bi*Pi||)) where Pui describe the approximating Bezier curves'Poles and Qi the MultiLine points with a parameter ui. In this algorithm, the parameters ui are the unknowns. The tolerance required on this sum is given by Tol. The desired degree of the resulting curve is Deg.
Parameters (9)SSPFirstPointLastPointTheConstraintsParametersDegTol3dTol2dNbIterations
Instance methods(6)
- IsDone(): boolean
returns True if all has been correctly done.
returns all the Bezier curves approximating the MultiLine SSP after minimization of the parameter.
- Error(Index: number): number
returns the difference between the old and the new approximation. An exception is raised if NotDone. An exception is raised if Index<1 or Index>NbParameters.
Parameters (1)Index
- MaxError3d(): number
returns the maximum difference between the old and the new approximation.
- MaxError2d(): number
returns the maximum difference between the old and the new approximation.
- AverageError(): number
returns the average error between the old and the new approximation.
GeomInt_MyGradientOfTheComputeLineBezierOfWLApprox
Constructors(1)
- constructor(SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: number, LastPoint: number, TheConstraints: NCollection_HArray1_AppParCurves_ConstraintCouple, Parameters: math_Vector, Deg: number, Tol3d: number, Tol2d: number, NbIterations?: number): GeomInt_MyGradientOfTheComputeLineBezierOfWLApprox
Tries to minimize the sum (square(||Qui - Bi*Pi||)) where Pui describe the approximating Bezier curves'Poles and Qi the MultiLine points with a parameter ui. In this algorithm, the parameters ui are the unknowns. The tolerance required on this sum is given by Tol. The desired degree of the resulting curve is Deg.
Parameters (9)SSPFirstPointLastPointTheConstraintsParametersDegTol3dTol2dNbIterations
Instance methods(6)
- IsDone(): boolean
returns True if all has been correctly done.
returns all the Bezier curves approximating the MultiLine SSP after minimization of the parameter.
- Error(Index: number): number
returns the difference between the old and the new approximation. An exception is raised if NotDone. An exception is raised if Index<1 or Index>NbParameters.
Parameters (1)Index
- MaxError3d(): number
returns the maximum difference between the old and the new approximation.
- MaxError2d(): number
returns the maximum difference between the old and the new approximation.
- AverageError(): number
returns the average error between the old and the new approximation.
GeomInt_ParameterAndOrientation
Constructors(2)
- constructor(P: number, Or1: TopAbs_Orientation, Or2: TopAbs_Orientation): GeomInt_ParameterAndOrientationParameters (3)
POr1Or2
Instance methods(5)
- SetOrientation1(Or: TopAbs_Orientation): voidParameters (1)
Or
- SetOrientation2(Or: TopAbs_Orientation): voidParameters (1)
Or
- Parameter(): number
GeomInt_ParFunctionOfMyGradientbisOfTheComputeLineOfWLApprox
Constructors(1)
- constructor(SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: number, LastPoint: number, TheConstraints: NCollection_HArray1_AppParCurves_ConstraintCouple, Parameters: math_Vector, Deg: number): GeomInt_ParFunctionOfMyGradientbisOfTheComputeLineOfWLApprox
initializes the fields of the function. The approximating curve has the desired degree Deg.
Parameters (6)SSPFirstPointLastPointTheConstraintsParametersDeg
Instance methods(11)
- NbVariables(): number
returns the number of variables of the function. It corresponds to the number of MultiPoints.
- Value(X: math_Vector, F: number): { returnValue: boolean; F: number }
this method computes the new approximation of the MultiLine SSP and calculates F = sum (||Pui - Bi*Pi||2) for each point of the MultiLine.
Parameters (2)XF
ReturnsA result object with fields:
returnValue: the C++ return valueF: updated value from the call.
- Gradient(X: math_Vector, G: math_Vector): boolean
returns the gradient G of the sum above for the parameters Xi.
Parameters (2)XG
- Values(X: math_Vector, F: number, G: math_Vector): { returnValue: boolean; F: number }
returns the value F=sum(||Pui - Bi*Pi||)2. returns the value G = grad(F) for the parameters Xi.
Parameters (3)XFG
ReturnsA result object with fields:
returnValue: the C++ return valueF: updated value from the call.
- NewParameters(): math_Vector
returns the new parameters of the MultiLine.
returns the MultiCurve approximating the set after computing the value F or Grad(F).
- Error(IPoint: number, CurveIndex: number): number
returns the distance between the MultiPoint of range IPoint and the curve CurveIndex.
Parameters (2)IPointCurveIndex
- MaxError3d(): number
returns the maximum distance between the points and the MultiCurve.
- MaxError2d(): number
returns the maximum distance between the points and the MultiCurve.
- FirstConstraint(TheConstraints: NCollection_HArray1_AppParCurves_ConstraintCouple, FirstPoint: number): AppParCurves_ConstraintParameters (2)
TheConstraintsFirstPoint
- LastConstraint(TheConstraints: NCollection_HArray1_AppParCurves_ConstraintCouple, LastPoint: number): AppParCurves_ConstraintParameters (2)
TheConstraintsLastPoint
GeomInt_ParFunctionOfMyGradientOfTheComputeLineBezierOfWLApprox
Constructors(1)
- constructor(SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: number, LastPoint: number, TheConstraints: NCollection_HArray1_AppParCurves_ConstraintCouple, Parameters: math_Vector, Deg: number): GeomInt_ParFunctionOfMyGradientOfTheComputeLineBezierOfWLApprox
initializes the fields of the function. The approximating curve has the desired degree Deg.
Parameters (6)SSPFirstPointLastPointTheConstraintsParametersDeg
Instance methods(11)
- NbVariables(): number
returns the number of variables of the function. It corresponds to the number of MultiPoints.
- Value(X: math_Vector, F: number): { returnValue: boolean; F: number }
this method computes the new approximation of the MultiLine SSP and calculates F = sum (||Pui - Bi*Pi||2) for each point of the MultiLine.
Parameters (2)XF
ReturnsA result object with fields:
returnValue: the C++ return valueF: updated value from the call.
- Gradient(X: math_Vector, G: math_Vector): boolean
returns the gradient G of the sum above for the parameters Xi.
Parameters (2)XG
- Values(X: math_Vector, F: number, G: math_Vector): { returnValue: boolean; F: number }
returns the value F=sum(||Pui - Bi*Pi||)2. returns the value G = grad(F) for the parameters Xi.
Parameters (3)XFG
ReturnsA result object with fields:
returnValue: the C++ return valueF: updated value from the call.
- NewParameters(): math_Vector
returns the new parameters of the MultiLine.
returns the MultiCurve approximating the set after computing the value F or Grad(F).
- Error(IPoint: number, CurveIndex: number): number
returns the distance between the MultiPoint of range IPoint and the curve CurveIndex.
Parameters (2)IPointCurveIndex
- MaxError3d(): number
returns the maximum distance between the points and the MultiCurve.
- MaxError2d(): number
returns the maximum distance between the points and the MultiCurve.
- FirstConstraint(TheConstraints: NCollection_HArray1_AppParCurves_ConstraintCouple, FirstPoint: number): AppParCurves_ConstraintParameters (2)
TheConstraintsFirstPoint
- LastConstraint(TheConstraints: NCollection_HArray1_AppParCurves_ConstraintCouple, LastPoint: number): AppParCurves_ConstraintParameters (2)
TheConstraintsLastPoint
GeomInt_ParLeastSquareOfMyGradientbisOfTheComputeLineOfWLApprox
Constructors(4)
- constructor(SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: number, LastPoint: number, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: number): GeomInt_ParLeastSquareOfMyGradientbisOfTheComputeLineOfWLApprox
Initializes the fields of the object.
Parameters (6)SSPFirstPointLastPointFirstConsLastConsNbPol
- constructor(SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: number, LastPoint: number, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: number): GeomInt_ParLeastSquareOfMyGradientbisOfTheComputeLineOfWLApprox
given a MultiLine, this algorithm computes the least square resolution using the Householder-QR method.
If the first and/or the last point is a constraint point, the value of the tangency or curvature is computed in the resolution. NbPol is the number of control points wanted for the approximating curves. The system to solve is the following: A X = B. Where A is the Bernstein matrix computed with the parameters, B the points coordinates and X the poles solutions.
The matrix A is the same for each coordinate x, y and z and is also the same for each MultiLine point because they are approximated in parallel(so with the same parameter, only the vector B changes).Parameters (7)SSPFirstPointLastPointFirstConsLastConsParametersNbPol
- constructor(SSP: GeomInt_TheMultiLineOfWLApprox, Knots: NCollection_Array1_double, Mults: NCollection_Array1_int, FirstPoint: number, LastPoint: number, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: number): GeomInt_ParLeastSquareOfMyGradientbisOfTheComputeLineOfWLApprox
Initializes the fields of the object.
Parameters (8)SSPKnotsMultsFirstPointLastPointFirstConsLastConsNbPol
- constructor(SSP: GeomInt_TheMultiLineOfWLApprox, Knots: NCollection_Array1_double, Mults: NCollection_Array1_int, FirstPoint: number, LastPoint: number, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: number): GeomInt_ParLeastSquareOfMyGradientbisOfTheComputeLineOfWLApprox
given a MultiLine, this algorithm computes the least square resolution using the Householder-QR method.
If the first and/or the last point is a constraint point, the value of the tangency or curvature is computed in the resolution. Deg is the degree wanted for the approximating curves. The system to solve is the following: A X = B. Where A is the BSpline functions matrix computed with <parameters>, B the points coordinates and X the poles solutions.
The matrix A is the same for each coordinate x, y and z and is also the same for each MultiLine point because they are approximated in parallel(so with the same parameter, only the vector B changes).Parameters (9)SSPKnotsMultsFirstPointLastPointFirstConsLastConsParametersNbPol
Instance methods(17)
- Perform(Parameters: math_Vector): void
Is used after having initialized the fields. The case "CurvaturePoint" is not treated in this method.
Parameters (1)Parameters
- Perform(Parameters: math_Vector, l1: number, l2: number): void
Is used after having initialized the fields.
Parameters (3)Parametersl1l2
- Perform(Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, l1: number, l2: number): void
Is used after having initialized the fields. <V1t> is the tangent vector at the first point. <V2t> is the tangent vector at the last point.
Parameters (5)ParametersV1tV2tl1l2
- Perform(Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, V1c: math_Vector, V2c: math_Vector, l1: number, l2: number): void
Is used after having initialized the fields. <V1t> is the tangent vector at the first point. <V2t> is the tangent vector at the last point. <V1c> is the tangent vector at the first point. <V2c> is the tangent vector at the last point.
Parameters (7)ParametersV1tV2tV1cV2cl1l2
- IsDone(): boolean
returns True if all has been correctly done.
returns the result of the approximation, i.e. all the Curves. An exception is raised if NotDone.
returns the result of the approximation, i.e. all the Curves. An exception is raised if NotDone.
returns the function matrix used to approximate the set.
returns the derivative function matrix used to approximate the set.
- ErrorGradient(Grad: math_Vector, F: number, MaxE3d: number, MaxE2d: number): { F: number; MaxE3d: number; MaxE2d: number }
returns the maximum errors between the MultiLine and the approximation curves. F is the sum of the square distances. Grad is the derivative vector of the function F.
Parameters (4)GradFMaxE3dMaxE2d
ReturnsA result object with fields:
F: updated value from the call.MaxE3d: updated value from the call.MaxE2d: updated value from the call.
returns the distances between the points of the multiline and the approximation curves.
- Error(F: number, MaxE3d: number, MaxE2d: number): { F: number; MaxE3d: number; MaxE2d: number }
returns the maximum errors between the MultiLine and the approximation curves. F is the sum of the square distances.
Parameters (3)FMaxE3dMaxE2d
ReturnsA result object with fields:
F: updated value from the call.MaxE3d: updated value from the call.MaxE2d: updated value from the call.
- FirstLambda(): number
returns the value (P2 - P1)/ V1 if the first point was a tangency point.
- LastLambda(): number
returns the value (PN - PN-1)/ VN if the last point was a tangency point.
returns the matrix of points value.
- Poles(): math_Matrix
returns the matrix of resulting control points value.
- KIndex(): math_IntegerVector
Returns the indexes of the first non null values of A and DA. The values are non null from Index(ieme point) +1 to Index(ieme point) + degree +1.
GeomInt_ParLeastSquareOfMyGradientOfTheComputeLineBezierOfWLApprox
Constructors(4)
- constructor(SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: number, LastPoint: number, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: number): GeomInt_ParLeastSquareOfMyGradientOfTheComputeLineBezierOfWLApprox
Initializes the fields of the object.
Parameters (6)SSPFirstPointLastPointFirstConsLastConsNbPol
- constructor(SSP: GeomInt_TheMultiLineOfWLApprox, FirstPoint: number, LastPoint: number, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: number): GeomInt_ParLeastSquareOfMyGradientOfTheComputeLineBezierOfWLApprox
given a MultiLine, this algorithm computes the least square resolution using the Householder-QR method.
If the first and/or the last point is a constraint point, the value of the tangency or curvature is computed in the resolution. NbPol is the number of control points wanted for the approximating curves. The system to solve is the following: A X = B. Where A is the Bernstein matrix computed with the parameters, B the points coordinates and X the poles solutions.
The matrix A is the same for each coordinate x, y and z and is also the same for each MultiLine point because they are approximated in parallel(so with the same parameter, only the vector B changes).Parameters (7)SSPFirstPointLastPointFirstConsLastConsParametersNbPol
- constructor(SSP: GeomInt_TheMultiLineOfWLApprox, Knots: NCollection_Array1_double, Mults: NCollection_Array1_int, FirstPoint: number, LastPoint: number, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, NbPol: number): GeomInt_ParLeastSquareOfMyGradientOfTheComputeLineBezierOfWLApprox
Initializes the fields of the object.
Parameters (8)SSPKnotsMultsFirstPointLastPointFirstConsLastConsNbPol
- constructor(SSP: GeomInt_TheMultiLineOfWLApprox, Knots: NCollection_Array1_double, Mults: NCollection_Array1_int, FirstPoint: number, LastPoint: number, FirstCons: AppParCurves_Constraint, LastCons: AppParCurves_Constraint, Parameters: math_Vector, NbPol: number): GeomInt_ParLeastSquareOfMyGradientOfTheComputeLineBezierOfWLApprox
given a MultiLine, this algorithm computes the least square resolution using the Householder-QR method.
If the first and/or the last point is a constraint point, the value of the tangency or curvature is computed in the resolution. Deg is the degree wanted for the approximating curves. The system to solve is the following: A X = B. Where A is the BSpline functions matrix computed with <parameters>, B the points coordinates and X the poles solutions.
The matrix A is the same for each coordinate x, y and z and is also the same for each MultiLine point because they are approximated in parallel(so with the same parameter, only the vector B changes).Parameters (9)SSPKnotsMultsFirstPointLastPointFirstConsLastConsParametersNbPol
Instance methods(17)
- Perform(Parameters: math_Vector): void
Is used after having initialized the fields. The case "CurvaturePoint" is not treated in this method.
Parameters (1)Parameters
- Perform(Parameters: math_Vector, l1: number, l2: number): void
Is used after having initialized the fields.
Parameters (3)Parametersl1l2
- Perform(Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, l1: number, l2: number): void
Is used after having initialized the fields. <V1t> is the tangent vector at the first point. <V2t> is the tangent vector at the last point.
Parameters (5)ParametersV1tV2tl1l2
- Perform(Parameters: math_Vector, V1t: math_Vector, V2t: math_Vector, V1c: math_Vector, V2c: math_Vector, l1: number, l2: number): void
Is used after having initialized the fields. <V1t> is the tangent vector at the first point. <V2t> is the tangent vector at the last point. <V1c> is the tangent vector at the first point. <V2c> is the tangent vector at the last point.
Parameters (7)ParametersV1tV2tV1cV2cl1l2
- IsDone(): boolean
returns True if all has been correctly done.
returns the result of the approximation, i.e. all the Curves. An exception is raised if NotDone.
returns the result of the approximation, i.e. all the Curves. An exception is raised if NotDone.
returns the function matrix used to approximate the set.
returns the derivative function matrix used to approximate the set.
- ErrorGradient(Grad: math_Vector, F: number, MaxE3d: number, MaxE2d: number): { F: number; MaxE3d: number; MaxE2d: number }
returns the maximum errors between the MultiLine and the approximation curves. F is the sum of the square distances. Grad is the derivative vector of the function F.
Parameters (4)GradFMaxE3dMaxE2d
ReturnsA result object with fields:
F: updated value from the call.MaxE3d: updated value from the call.MaxE2d: updated value from the call.
returns the distances between the points of the multiline and the approximation curves.
- Error(F: number, MaxE3d: number, MaxE2d: number): { F: number; MaxE3d: number; MaxE2d: number }
returns the maximum errors between the MultiLine and the approximation curves. F is the sum of the square distances.
Parameters (3)FMaxE3dMaxE2d
ReturnsA result object with fields:
F: updated value from the call.MaxE3d: updated value from the call.MaxE2d: updated value from the call.
- FirstLambda(): number
returns the value (P2 - P1)/ V1 if the first point was a tangency point.
- LastLambda(): number
returns the value (PN - PN-1)/ VN if the last point was a tangency point.
returns the matrix of points value.
- Poles(): math_Matrix
returns the matrix of resulting control points value.
- KIndex(): math_IntegerVector
Returns the indexes of the first non null values of A and DA. The values are non null from Index(ieme point) +1 to Index(ieme point) + degree +1.
GeomInt_ResConstraintOfMyGradientbisOfTheComputeLineOfWLApprox
Constructors(1)
- constructor(SSP: GeomInt_TheMultiLineOfWLApprox, SCurv: AppParCurves_MultiCurve, FirstPoint: number, LastPoint: number, Constraints: NCollection_HArray1_AppParCurves_ConstraintCouple, Bern: math_Matrix, DerivativeBern: math_Matrix, Tolerance?: number): GeomInt_ResConstraintOfMyGradientbisOfTheComputeLineOfWLApprox
Given a MultiLine SSP with constraints points, this algorithm finds the best curve solution to approximate it. The poles from SCurv issued for example from the least squares are used as a guess solution for the uzawa algorithm. The tolerance used in the Uzawa algorithms is Tolerance. A is the Bernstein matrix associated to the MultiLine and DA is the derivative bernstein matrix.(They can come from an approximation with ParLeastSquare.) The MultiCurve is modified. New MultiPoles are given.
Parameters (8)SSPSCurvFirstPointLastPointConstraintsBernDerivativeBernTolerance
Instance methods(5)
- IsDone(): boolean
returns True if all has been correctly done.
- Duale(): math_Vector
returns the duale variables of the system.
- ConstraintDerivative(SSP: GeomInt_TheMultiLineOfWLApprox, Parameters: math_Vector, Deg: number, DA: math_Matrix): math_Matrix
Returns the derivative of the constraint matrix.
Parameters (4)SSPParametersDegDA
returns the Inverse of Cont*Transposed(Cont), where Cont is the constraint matrix for the algorithm.
GeomInt_ResConstraintOfMyGradientOfTheComputeLineBezierOfWLApprox
Constructors(1)
- constructor(SSP: GeomInt_TheMultiLineOfWLApprox, SCurv: AppParCurves_MultiCurve, FirstPoint: number, LastPoint: number, Constraints: NCollection_HArray1_AppParCurves_ConstraintCouple, Bern: math_Matrix, DerivativeBern: math_Matrix, Tolerance?: number): GeomInt_ResConstraintOfMyGradientOfTheComputeLineBezierOfWLApprox
Given a MultiLine SSP with constraints points, this algorithm finds the best curve solution to approximate it. The poles from SCurv issued for example from the least squares are used as a guess solution for the uzawa algorithm. The tolerance used in the Uzawa algorithms is Tolerance. A is the Bernstein matrix associated to the MultiLine and DA is the derivative bernstein matrix.(They can come from an approximation with ParLeastSquare.) The MultiCurve is modified. New MultiPoles are given.
Parameters (8)SSPSCurvFirstPointLastPointConstraintsBernDerivativeBernTolerance
Instance methods(5)
- IsDone(): boolean
returns True if all has been correctly done.
- Duale(): math_Vector
returns the duale variables of the system.
- ConstraintDerivative(SSP: GeomInt_TheMultiLineOfWLApprox, Parameters: math_Vector, Deg: number, DA: math_Matrix): math_Matrix
Returns the derivative of the constraint matrix.
Parameters (4)SSPParametersDegDA
returns the Inverse of Cont*Transposed(Cont), where Cont is the constraint matrix for the algorithm.
GeomInt_TheImpPrmSvSurfacesOfWLApprox
Constructors(2)
- constructor(Surf1: Adaptor3d_Surface, Surf2: IntSurf_Quadric): GeomInt_TheImpPrmSvSurfacesOfWLApproxParameters (2)
Surf1Surf2
- constructor(Surf1: IntSurf_Quadric, Surf2: Adaptor3d_Surface): GeomInt_TheImpPrmSvSurfacesOfWLApproxParameters (2)
Surf1Surf2
Instance methods(7)
- Compute(u1: number, v1: number, u2: number, v2: number, Pt: gp_Pnt, Tg: gp_Vec, Tguv1: gp_Vec2d, Tguv2: gp_Vec2d): { returnValue: boolean; u1: number; v1: number; u2: number; v2: number }
returns True if Tg,Tguv1 Tguv2 can be computed.
Parameters (8)u1v1u2v2Pt—Mutated in place; read the updated value from this argument after the call.Tg—Mutated in place; read the updated value from this argument after the call.Tguv1—Mutated in place; read the updated value from this argument after the call.Tguv2—Mutated in place; read the updated value from this argument after the call.
ReturnsA result object with fields:
returnValue: the C++ return valueu1: updated value from the call.v1: updated value from the call.u2: updated value from the call.v2: updated value from the call.
- Parameters (5)
u1v1u2v2P
- SeekPoint(u1: number, v1: number, u2: number, v2: number, Point: IntSurf_PntOn2S): boolean
computes point on curve and parameters on the surfaces
Parameters (5)u1v1u2v2Point—Mutated in place; read the updated value from this argument after the call.
- Parameters (5)
u1v1u2v2Tg
- TangencyOnSurf1(u1: number, v1: number, u2: number, v2: number, Tg: gp_Vec2d): booleanParameters (5)
u1v1u2v2Tg
- TangencyOnSurf2(u1: number, v1: number, u2: number, v2: number, Tg: gp_Vec2d): booleanParameters (5)
u1v1u2v2Tg
- FillInitialVectorOfSolution(u1: number, v1: number, u2: number, v2: number, binfu: number, bsupu: number, binfv: number, bsupv: number, X: math_Vector, TranslationU: number, TranslationV: number): { returnValue: boolean; TranslationU: number; TranslationV: number }Parameters (11)
u1v1u2v2binfubsupubinfvbsupvXTranslationUTranslationV
GeomInt_TheInt2SOfThePrmPrmSvSurfacesOfWLApprox
Constructors(2)
- constructor(S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, TolTangency: number): GeomInt_TheInt2SOfThePrmPrmSvSurfacesOfWLApprox
initialize the parameters to compute the solution point it 's possible to write to optimize: IntImp_Int2S inter(S1,S2,Func,TolTangency);
math_FunctionSetRootrsnld(inter.Function()); while ...{ Param(1)=... Param(2)=... param(3)=... inter.Perform(Param,rsnld); }Parameters (3)S1S2TolTangency
- constructor(Param: NCollection_Array1_double, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, TolTangency: number): GeomInt_TheInt2SOfThePrmPrmSvSurfacesOfWLApprox
compute the solution point with the close point
Parameters (4)ParamS1S2TolTangency
Instance methods(8)
- IsDone(): boolean
Returns TRUE if the creation completed without failure.
- IsEmpty(): boolean
Returns TRUE when there is no solution to the problem.
Returns the intersection point.
- IsTangent(): boolean
Returns True if the surfaces are tangent at the intersection point.
Returns the tangent at the intersection line.
Returns the tangent at the intersection line in the parametric space of the first surface.
Returns the tangent at the intersection line in the parametric space of the second surface.
return the intersection point which is enable for changing.
GeomInt_TheMultiLineOfWLApprox
Constructors(2)
- constructor(line: IntPatch_WLine, NbP3d: number, NbP2d: number, ApproxU1V1: boolean, ApproxU2V2: boolean, xo: number, yo: number, zo: number, u1o: number, v1o: number, u2o: number, v2o: number, P2DOnFirst: boolean, IndMin?: number, IndMax?: number): GeomInt_TheMultiLineOfWLApprox
No Extra points will be added on the current line.
Parameters (15)lineNbP3dNbP2dApproxU1V1ApproxU2V2xoyozou1ov1ou2ov2oP2DOnFirstIndMinIndMax
Instance methods(14)
- FirstPoint(): number
- LastPoint(): number
- NbP2d(): number
Returns the number of 2d points of a TheLine.
- NbP3d(): number
Returns the number of 3d points of a TheLine.
- Value(MPointIndex: number, tabPt: NCollection_Array1_gp_Pnt): void
Returns the 3d points of the multipoint <MPointIndex> when only 3d points exist.
Parameters (2)MPointIndextabPt—Mutated in place; read the updated value from this argument after the call.
- Value(MPointIndex: number, tabPt2d: NCollection_Array1_gp_Pnt2d): void
Returns the 2d points of the multipoint <MPointIndex> when only 2d points exist.
Parameters (2)MPointIndextabPt2d—Mutated in place; read the updated value from this argument after the call.
- Value(MPointIndex: number, tabPt: NCollection_Array1_gp_Pnt, tabPt2d: NCollection_Array1_gp_Pnt2d): void
returns the 3d and 2d points of the multipoint <MPointIndex>.
Parameters (3)MPointIndextabPt—Mutated in place; read the updated value from this argument after the call.tabPt2d—Mutated in place; read the updated value from this argument after the call.
- Tangency(MPointIndex: number, tabV: NCollection_Array1_gp_Vec): boolean
Returns the 3d tangency points of the multipoint <MPointIndex> only when 3d points exist.
Parameters (2)MPointIndextabV—Mutated in place; read the updated value from this argument after the call.
- Tangency(MPointIndex: number, tabV2d: NCollection_Array1_gp_Vec2d): boolean
Returns the 2d tangency points of the multipoint <MPointIndex> only when 2d points exist.
Parameters (2)MPointIndextabV2d—Mutated in place; read the updated value from this argument after the call.
- Tangency(MPointIndex: number, tabV: NCollection_Array1_gp_Vec, tabV2d: NCollection_Array1_gp_Vec2d): boolean
Returns the 3d and 2d points of the multipoint <MPointIndex>.
Parameters (3)MPointIndextabV—Mutated in place; read the updated value from this argument after the call.tabV2d—Mutated in place; read the updated value from this argument after the call.
- MakeMLBetween(Low: number, High: number, NbPointsToInsert: number): GeomInt_TheMultiLineOfWLApprox
Tries to make a sub-line between <Low> and <High> points of this line by adding <NbPointsToInsert> new points.
Parameters (3)LowHighNbPointsToInsert
- MakeMLOneMorePoint(Low: number, High: number, indbad: number, OtherLine: GeomInt_TheMultiLineOfWLApprox): boolean
Tries to make a sub-line between <Low> and <High> points of this line by adding one more point between (indbad-1)-th and indbad-th points.
Parameters (4)LowHighindbadOtherLine—Mutated in place; read the updated value from this argument after the call.
- Dump(): void
Dump of the current multi-line.
GeomInt_TheMultiLineToolOfWLApprox
Constructors(1)
Static methods(17)
- FirstPoint(ML: GeomInt_TheMultiLineOfWLApprox): number
Returns the number of multipoints of the TheMultiLine.
Parameters (1)ML
- LastPoint(ML: GeomInt_TheMultiLineOfWLApprox): number
Returns the number of multipoints of the TheMultiLine.
Parameters (1)ML
- NbP2d(ML: GeomInt_TheMultiLineOfWLApprox): number
Returns the number of 2d points of a TheMultiLine.
Parameters (1)ML
- NbP3d(ML: GeomInt_TheMultiLineOfWLApprox): number
Returns the number of 3d points of a TheMultiLine.
Parameters (1)ML
- Value(ML: GeomInt_TheMultiLineOfWLApprox, MPointIndex: number, tabPt: NCollection_Array1_gp_Pnt): void
returns the 3d points of the multipoint <MPointIndex> when only 3d points exist.
Parameters (3)MLMPointIndextabPt—Mutated in place; read the updated value from this argument after the call.
- Value(ML: GeomInt_TheMultiLineOfWLApprox, MPointIndex: number, tabPt2d: NCollection_Array1_gp_Pnt2d): void
returns the 2d points of the multipoint <MPointIndex> when only 2d points exist.
Parameters (3)MLMPointIndextabPt2d—Mutated in place; read the updated value from this argument after the call.
- Value(ML: GeomInt_TheMultiLineOfWLApprox, MPointIndex: number, tabPt: NCollection_Array1_gp_Pnt, tabPt2d: NCollection_Array1_gp_Pnt2d): void
returns the 3d and 2d points of the multipoint <MPointIndex>.
Parameters (4)MLMPointIndextabPt—Mutated in place; read the updated value from this argument after the call.tabPt2d—Mutated in place; read the updated value from this argument after the call.
- Tangency(ML: GeomInt_TheMultiLineOfWLApprox, MPointIndex: number, tabV: NCollection_Array1_gp_Vec): boolean
returns the 3d points of the multipoint <MPointIndex> when only 3d points exist.
Parameters (3)MLMPointIndextabV—Mutated in place; read the updated value from this argument after the call.
- Tangency(ML: GeomInt_TheMultiLineOfWLApprox, MPointIndex: number, tabV2d: NCollection_Array1_gp_Vec2d): boolean
returns the 2d tangency points of the multipoint <MPointIndex> only when 2d points exist.
Parameters (3)MLMPointIndextabV2d—Mutated in place; read the updated value from this argument after the call.
- Tangency(ML: GeomInt_TheMultiLineOfWLApprox, MPointIndex: number, tabV: NCollection_Array1_gp_Vec, tabV2d: NCollection_Array1_gp_Vec2d): boolean
returns the 3d and 2d points of the multipoint <MPointIndex>.
Parameters (4)MLMPointIndextabV—Mutated in place; read the updated value from this argument after the call.tabV2d—Mutated in place; read the updated value from this argument after the call.
- Curvature(ML: GeomInt_TheMultiLineOfWLApprox, MPointIndex: number, tabV: NCollection_Array1_gp_Vec): boolean
returns the 3d curvature of the multipoint <MPointIndex> when only 3d points exist.
Parameters (3)MLMPointIndextabV—Mutated in place; read the updated value from this argument after the call.
- Curvature(ML: GeomInt_TheMultiLineOfWLApprox, MPointIndex: number, tabV2d: NCollection_Array1_gp_Vec2d): boolean
returns the 2d curvature points of the multipoint <MPointIndex> only when 2d points exist.
Parameters (3)MLMPointIndextabV2d—Mutated in place; read the updated value from this argument after the call.
- Curvature(ML: GeomInt_TheMultiLineOfWLApprox, MPointIndex: number, tabV: NCollection_Array1_gp_Vec, tabV2d: NCollection_Array1_gp_Vec2d): boolean
returns the 3d and 2d curvature of the multipoint <MPointIndex>.
Parameters (4)MLMPointIndextabV—Mutated in place; read the updated value from this argument after the call.tabV2d—Mutated in place; read the updated value from this argument after the call.
- MakeMLBetween(ML: GeomInt_TheMultiLineOfWLApprox, I1: number, I2: number, NbPMin: number): GeomInt_TheMultiLineOfWLApprox
Is called if WhatStatus returned "PointsAdded".
Parameters (4)MLI1I2NbPMin
- MakeMLOneMorePoint(ML: GeomInt_TheMultiLineOfWLApprox, I1: number, I2: number, indbad: number, OtherLine: GeomInt_TheMultiLineOfWLApprox): boolean
Is called when the Bezier curve contains a loop.
Parameters (5)MLI1I2indbadOtherLine—Mutated in place; read the updated value from this argument after the call.
- WhatStatus(ML: GeomInt_TheMultiLineOfWLApprox, I1: number, I2: number): Approx_StatusParameters (3)
MLI1I2
- Dump(ML: GeomInt_TheMultiLineOfWLApprox): void
Dump of the current multi-line.
Parameters (1)ML
GeomInt_ThePrmPrmSvSurfacesOfWLApprox
Constructors(1)
- constructor(Surf1: Adaptor3d_Surface, Surf2: Adaptor3d_Surface): GeomInt_ThePrmPrmSvSurfacesOfWLApproxParameters (2)
Surf1Surf2
Instance methods(6)
- Compute(u1: number, v1: number, u2: number, v2: number, Pt: gp_Pnt, Tg: gp_Vec, Tguv1: gp_Vec2d, Tguv2: gp_Vec2d): { returnValue: boolean; u1: number; v1: number; u2: number; v2: number }
returns True if Tg,Tguv1 Tguv2 can be computed.
Parameters (8)u1v1u2v2Pt—Mutated in place; read the updated value from this argument after the call.Tg—Mutated in place; read the updated value from this argument after the call.Tguv1—Mutated in place; read the updated value from this argument after the call.Tguv2—Mutated in place; read the updated value from this argument after the call.
ReturnsA result object with fields:
returnValue: the C++ return valueu1: updated value from the call.v1: updated value from the call.u2: updated value from the call.v2: updated value from the call.
- Parameters (5)
u1v1u2v2P
- SeekPoint(u1: number, v1: number, u2: number, v2: number, Point: IntSurf_PntOn2S): boolean
computes point on curve and parameters on the surfaces
Parameters (5)u1v1u2v2Point—Mutated in place; read the updated value from this argument after the call.
- Parameters (5)
u1v1u2v2Tg
- TangencyOnSurf1(u1: number, v1: number, u2: number, v2: number, Tg: gp_Vec2d): booleanParameters (5)
u1v1u2v2Tg
- TangencyOnSurf2(u1: number, v1: number, u2: number, v2: number, Tg: gp_Vec2d): booleanParameters (5)
u1v1u2v2Tg
GeomInt_TheZerImpFuncOfTheImpPrmSvSurfacesOfWLApprox
Constructors(3)
- Parameters (1)
IS
- constructor(PS: Adaptor3d_Surface, IS: IntSurf_Quadric): GeomInt_TheZerImpFuncOfTheImpPrmSvSurfacesOfWLApproxParameters (2)
PSIS
Instance methods(16)
- Set(PS: Adaptor3d_Surface): voidParameters (1)
PS
- Set(Tolerance: number): voidParameters (1)
Tolerance
- SetImplicitSurface(IS: IntSurf_Quadric): voidParameters (1)
IS
- NbVariables(): number
Returns the number of variables of the function.
- NbEquations(): number
Returns the number of equations of the function.
- 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
- Root(): number
- Tolerance(): number
Returns the value Tol so that if std::abs(Func.Root())<Tol the function is considered null.
- IsTangent(): boolean
GeomInt_WLApprox
Constructors(1)
Static methods(1)
- Parameters(Line: GeomInt_TheMultiLineOfWLApprox, firstP: number, lastP: number, Par: Approx_ParametrizationType, TheParameters: math_Vector): voidParameters (5)
LinefirstPlastPParTheParameters
Instance methods(6)
- SetParameters(Tol3d: number, Tol2d: number, DegMin: number, DegMax: number, NbIterMax: number, NbPntMax?: number, ApproxWithTangency?: boolean, Parametrization?: Approx_ParametrizationType): voidParameters (8)
Tol3dTol2dDegMinDegMaxNbIterMaxNbPntMaxApproxWithTangencyParametrization
- TolReached3d(): number
- TolReached2d(): number
- IsDone(): boolean
- NbMultiCurves(): number
- Value(Index: number): AppParCurves_MultiBSpCurveParameters (1)
Index