IntCurveSurface
OCCT package IntCurveSurface: IntCurveSurface_HInter, IntCurveSurface_Intersection, IntCurveSurface_IntersectionSegment,…
IntCurveSurface_HInter
Constructors(1)
Empty Constructor.
Instance methods(1)
- Perform(Curve: Adaptor3d_Curve, Polygon: IntCurveSurface_ThePolygonOfHInter, Surface: Adaptor3d_Surface): void
Compute the Intersection between the curve and the surface. The Curve is already sampled and its polygon : <Polygon> is given.
Parameters (3)CurvePolygonSurface
IntCurveSurface_Intersection
Instance methods(5)
- NbPoints(): number
returns the number of IntersectionPoint if IsDone returns True. else NotDone is raised.
- NbSegments(): number
returns the number of IntersectionSegment if IsDone returns True. else NotDone is raised.
- Segment(Index: number): IntCurveSurface_IntersectionSegment
returns the IntersectionSegment of range <Index> raises NotDone if the computation has failed or if the computation has not been done raises OutOfRange if Index is not in the range <1..NbSegment>
Parameters (1)Index
- IsParallel(): boolean
Returns true if curve is parallel or belongs surface This case is recognized only for some pairs of analytical curves and surfaces (plane - line, ...).
- Dump(): void
Dump all the fields.
IntCurveSurface_IntersectionSegment
A IntersectionSegment describes a segment of curve (w1,w2) where distance(C(w),Surface) is less than a given tolerances.
Constructors(1)
IntCurveSurface_TheCSFunctionOfHInter
Constructors(1)
- Parameters (2)
SC
Instance methods(9)
- 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
IntCurveSurface_TheExactHInter
Constructors(2)
- constructor(F: IntCurveSurface_TheCSFunctionOfHInter, TolTangency: number): IntCurveSurface_TheExactHInter
initialize the parameters to compute the solution
Parameters (2)FTolTangency
- constructor(U: number, V: number, W: number, F: IntCurveSurface_TheCSFunctionOfHInter, TolTangency: number, MarginCoef?: number): IntCurveSurface_TheExactHInter
compute the solution point with the close point MarginCoef is the coefficient for extension of UV bounds. Ex., UFirst -= MarginCoef*(ULast-UFirst)
Parameters (6)UVWFTolTangencyMarginCoef
Instance methods(7)
- Perform(U: number, V: number, W: number, Rsnld: math_FunctionSetRoot, u0: number, v0: number, u1: number, v1: number, w0: number, w1: number): void
compute the solution it's possible to write to optimize: IntImp_IntCS inter(S1,C1,Toltangency)
math_FunctionSetRootrsnld(Inter.function()) while ...{ u=... v=... w=... inter.Perform(u,v,w,rsnld) } or IntImp_IntCS inter(Toltangency) inter.SetSurface(S);math_FunctionSetRootrsnld(Inter.function()) while ...{ C=... inter.SetCurve(C); u=... v=... w=... inter.Perform(u,v,w,rsnld) }Parameters (10)UVWRsnldu0v0u1v1w0w1
- IsDone(): boolean
Returns TRUE if the creation completed without failure.
- IsEmpty(): boolean
returns the intersection point The exception NotDone is raised if IsDone is false. The exception DomainError is raised if IsEmpty is true.
- ParameterOnCurve(): number
- ParameterOnSurface(U: number, V: number): { U: number; V: number }Parameters (2)
UV
return the math function which is used to compute the intersection
IntCurveSurface_TheHCurveTool
Constructors(1)
Static methods(27)
- FirstParameter(C: Adaptor3d_Curve): numberParameters (1)
C
- LastParameter(C: Adaptor3d_Curve): numberParameters (1)
C
- Parameters (1)
C
- NbIntervals(C: Adaptor3d_Curve, S: GeomAbs_Shape): number
Returns the number of intervals for continuity . May be one if Continuity(myclass) >= .
Parameters (2)CS
- Intervals(C: Adaptor3d_Curve, T: NCollection_Array1_double, S: GeomAbs_Shape): void
Stores in <T> the parameters bounding the intervals of continuity .
The array must provide enough room to accommodate for the parameters. i.e. T.Length() >NbIntervals()Parameters (3)CT—Mutated in place; read the updated value from this argument after the call.S
- IsClosed(C: Adaptor3d_Curve): booleanParameters (1)
C
- IsPeriodic(C: Adaptor3d_Curve): booleanParameters (1)
C
- Period(C: Adaptor3d_Curve): numberParameters (1)
C
- Value(C: Adaptor3d_Curve, U: number): gp_Pnt
Computes the point of parameter U on the curve.
Parameters (2)CU
- D0(C: Adaptor3d_Curve, U: number, P: gp_Pnt): void
Computes the point of parameter U on the curve.
Parameters (3)CUP—Mutated in place; read the updated value from this argument after the call.
- D1(C: Adaptor3d_Curve, U: number, P: gp_Pnt, V: gp_Vec): void
Computes the point of parameter U on the curve with its first derivative. Raised if the continuity of the current interval is not C1.
Parameters (4)CUP—Mutated in place; read the updated value from this argument after the call.V—Mutated in place; read the updated value from this argument after the call.
- D2(C: Adaptor3d_Curve, U: number, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec): void
Returns the point P of parameter U, the first and second derivatives V1 and V2. Raised if the continuity of the current interval is not C2.
Parameters (5)CUP—Mutated in place; read the updated value from this argument after the call.V1—Mutated in place; read the updated value from this argument after the call.V2—Mutated in place; read the updated value from this argument after the call.
Returns the point P of parameter U, the first, the second and the third derivative. Raised if the continuity of the current interval is not C3.
Parameters (6)CUP—Mutated in place; read the updated value from this argument after the call.V1—Mutated in place; read the updated value from this argument after the call.V2—Mutated in place; read the updated value from this argument after the call.V3—Mutated in place; read the updated value from this argument after the call.
- DN(C: Adaptor3d_Curve, U: number, N: number): gp_Vec
The returned vector gives the value of the derivative for the order of derivation N. Raised if the continuity of the current interval is not CN. Raised if N < 1.
Parameters (3)CUN
- Resolution(C: Adaptor3d_Curve, R3d: number): number
Returns the parametric resolution corresponding to the real space resolution <R3d>.
Parameters (2)CR3d
Returns the type of the curve in the current interval: Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve.
Parameters (1)C
- Line(C: Adaptor3d_Curve): gp_LinParameters (1)
C
- Circle(C: Adaptor3d_Curve): gp_CircParameters (1)
C
- Parameters (1)
C
- Parameters (1)
C
- Parameters (1)
C
- Parameters (1)
C
- Parameters (1)
C
- NbSamples(C: Adaptor3d_Curve, U0: number, U1: number): numberParameters (3)
CU0U1
- SamplePars(C: Adaptor3d_Curve, U0: number, U1: number, Defl: number, NbMin: number): NCollection_HArray1_double
Returns sample parameters for the curve within [U0, U1] range, computed based on deflection and minimum number of points.
Parameters (5)C—the curve adaptorU0—start parameterU1—end parameterDefl—deflection toleranceNbMin—minimum number of sample points
Returnsarray of sample parameter values
- SamplePars_1(C: Adaptor3d_Curve, U0: number, U1: number, Defl: number, NbMin: number): NCollection_HArray1_double
Returns sample parameters for the curve within [U0, U1] range, computed based on deflection and minimum number of points.
Parameters (5)C—the curve adaptorU0—start parameterU1—end parameterDefl—deflection toleranceNbMin—minimum number of sample points
Returnsarray of sample parameter values
- SamplePars_2(C: Adaptor3d_Curve, U0: number, U1: number, Defl: number, NbMin: number): { Pars: NCollection_HArray1_double; [Symbol.dispose](): void }DeprecatedParameters (5)
CU0U1DeflNbMin
ReturnsA result object with fields:
Pars: owned by the returned envelope.
Dispose the returned envelope to release owned Handle fields.
IntCurveSurface_TheInterferenceOfHInter
Constructors(1)
Constructs an empty interference between Polygon and Polyhedron.
IntCurveSurface_ThePolygonOfHInter
Constructors(3)
- constructor(Curve: Adaptor3d_Curve, NbPnt: number): IntCurveSurface_ThePolygonOfHInterParameters (2)
CurveNbPnt
- constructor(Curve: Adaptor3d_Curve, Upars: NCollection_Array1_double): IntCurveSurface_ThePolygonOfHInterParameters (2)
CurveUpars
- constructor(Curve: Adaptor3d_Curve, U1: number, U2: number, NbPnt: number): IntCurveSurface_ThePolygonOfHInterParameters (4)
CurveU1U2NbPnt
Instance methods(12)
Give the bounding box of the polygon.
- DeflectionOverEstimation(): number
- SetDeflectionOverEstimation(x: number): voidParameters (1)
x
- Closed(flag: boolean): voidParameters (1)
flag
- Closed(): boolean
- NbSegments(): number
Give the number of Segments in the polyline.
- BeginOfSeg(theIndex: number): gp_Pnt
Give the point of range Index in the Polygon.
Parameters (1)theIndex
Give the point of range Index in the Polygon.
Parameters (1)theIndex
- 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.
- 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
- Dump(): void
IntCurveSurface_ThePolygonToolOfHInter
Constructors(1)
Static methods(7)
- Bounding(thePolygon: IntCurveSurface_ThePolygonOfHInter): Bnd_Box
Give the bounding box of the polygon.
Parameters (1)thePolygon
- DeflectionOverEstimation(thePolygon: IntCurveSurface_ThePolygonOfHInter): numberParameters (1)
thePolygon
- Closed(thePolygon: IntCurveSurface_ThePolygonOfHInter): booleanParameters (1)
thePolygon
- NbSegments(thePolygon: IntCurveSurface_ThePolygonOfHInter): numberParameters (1)
thePolygon
- BeginOfSeg(thePolygon: IntCurveSurface_ThePolygonOfHInter, Index: number): gp_Pnt
Give the point of range Index in the Polygon.
Parameters (2)thePolygonIndex
- EndOfSeg(thePolygon: IntCurveSurface_ThePolygonOfHInter, Index: number): gp_Pnt
Give the point of range Index in the Polygon.
Parameters (2)thePolygonIndex
- Dump(thePolygon: IntCurveSurface_ThePolygonOfHInter): voidParameters (1)
thePolygon
IntCurveSurface_ThePolyhedronToolOfHInter
Constructors(1)
IntCurveSurface_TheQuadCurvExactHInter
Constructors(1)
Provides the signed distance function : Q(w) and its first derivative dQ(w)/dw.
Parameters (2)SC
Instance methods(5)
- IsDone(): boolean
- NbRoots(): number
- Root(Index: number): numberParameters (1)
Index
- NbIntervals(): number
- Intervals(Index: number, U1: number, U2: number): { U1: number; U2: number }
U1 and U2 are the parameters of a segment on the curve.
Parameters (3)IndexU1U2
ReturnsA result object with fields:
U1: updated value from the call.U2: updated value from the call.
IntCurveSurface_TheQuadCurvFuncOfTheQuadCurvExactHInter
Constructors(1)
- constructor(Q: IntSurf_Quadric, C: Adaptor3d_Curve): IntCurveSurface_TheQuadCurvFuncOfTheQuadCurvExactHInter
Create the function.
Parameters (2)QC
Instance methods(3)
- Value(X: number, F: number): { returnValue: boolean; F: number }
Computes the value of the signed distance between the implicit surface and the point at parameter Param on the parametrised curve. Value always returns True.
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. Derivative always returns True.
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. returns True.
Parameters (3)XFD
ReturnsA result object with fields:
returnValue: the C++ return valueF: updated value from the call.D: updated value from the call.