Adaptor3d
OCCT package Adaptor3d: Adaptor3d_Curve, Adaptor3d_CurveOnSurface, Adaptor3d_HSurfaceTool, Adaptor3d_HVertex, and 4 more bound classes.
Adaptor3d_Curve
Root class for 3D curves on which geometric algorithms work. An adapted curve is an interface between the services provided by a curve and those required of the curve by algorithms which use it. Two derived concrete classes are provided:
GeomAdaptor_Curvefor a curve from the Geom packageAdaptor3d_CurveOnSurfacefor a curve lying on a surface from the Geom package.
Polynomial coefficients of BSpline curves used for their evaluation are cached for better performance. Therefore these evaluations are not thread-safe and parallel evaluations need to be prevented.
Constructors(1)
Static methods(2)
- get_type_name(): string
Instance methods(36)
Shallow copy of adaptor.
- FirstParameter(): number
- LastParameter(): number
- NbIntervals(S: GeomAbs_Shape): number
Returns the number of intervals for continuity . May be one if Continuity(me) >= .
Parameters (1)S
- Intervals(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 (2)T—Mutated in place; read the updated value from this argument after the call.S
- Trim(First: number, Last: number, Tol: number): Adaptor3d_Curve
Returns a curve equivalent of <me> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last>.
Parameters (3)FirstLastTol
- IsClosed(): boolean
- IsPeriodic(): boolean
- Period(): number
Computes the point of parameter U on the curve.
Parameters (1)theU
Computes the point of parameter U on the curve.
Parameters (2)theUtheP—Mutated in place; read the updated value from this argument after the call.
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 (3)theUtheP—Mutated in place; read the updated value from this argument after the call.theV—Mutated in place; read the updated value from this argument after the call.
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 (4)theUtheP—Mutated in place; read the updated value from this argument after the call.theV1—Mutated in place; read the updated value from this argument after the call.theV2—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 (5)theUtheP—Mutated in place; read the updated value from this argument after the call.theV1—Mutated in place; read the updated value from this argument after the call.theV2—Mutated in place; read the updated value from this argument after the call.theV3—Mutated in place; read the updated value from this argument after the call.
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 (2)theUtheN
- Resolution(R3d: number): number
Returns the parametric resolution corresponding to the real space resolution <R3d>.
Parameters (1)R3d
Returns the type of the curve in the current interval: Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve.
- Degree(): number
- IsRational(): boolean
- NbPoles(): number
- NbKnots(): number
Computes the point of parameter U on the curve. Raises an exception on failure.
Parameters (1)theU
- EvalD1(theU: number): Geom_Curve_ResD1
Computes the point and first derivative at parameter U. Raises an exception on failure.
Parameters (1)theU
- EvalD2(theU: number): Geom_Curve_ResD2
Computes the point and first two derivatives at parameter U. Raises an exception on failure.
Parameters (1)theU
- EvalD3(theU: number): Geom_Curve_ResD3
Computes the point and first three derivatives at parameter U. Raises an exception on failure.
Parameters (1)theU
Computes the Nth derivative at parameter U. Raises an exception on failure.
Parameters (2)theUtheN
Adaptor3d_CurveOnSurface
An interface between the services provided by a curve lying on a surface from the package Geom and those required of the curve by algorithms which use it. The curve is defined as a 2D curve from the Geom2d package, in the parametric space of the surface.
Constructors(3)
- Parameters (1)
S
Creates a CurveOnSurface from the 2d curve
and the surface .Parameters (2)CS
Static methods(2)
- get_type_name(): string
Instance methods(36)
Shallow copy of adaptor.
- Load(S: Adaptor3d_Surface): void
Changes the surface.
Parameters (1)S
- Load(C: Adaptor2d_Curve2d): void
Changes the 2d curve.
Parameters (1)C
- Load(C: Adaptor2d_Curve2d, S: Adaptor3d_Surface): void
Load both curve and surface.
Parameters (2)CS
- FirstParameter(): number
- LastParameter(): number
- NbIntervals(S: GeomAbs_Shape): number
Returns the number of intervals for continuity . May be one if Continuity(me) >= .
Parameters (1)S
- Intervals(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 (2)T—Mutated in place; read the updated value from this argument after the call.S
- Trim(First: number, Last: number, Tol: number): Adaptor3d_Curve
Returns a curve equivalent of <me> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last>.
Parameters (3)FirstLastTol
- IsClosed(): boolean
- IsPeriodic(): boolean
- Period(): number
Point evaluation. Raises an exception on failure.
Parameters (1)theU
- EvalD1(theU: number): Geom_Curve_ResD1
D1 evaluation. Raises an exception on failure.
Parameters (1)theU
- EvalD2(theU: number): Geom_Curve_ResD2
D2 evaluation. Raises an exception on failure.
Parameters (1)theU
- EvalD3(theU: number): Geom_Curve_ResD3
D3 evaluation. Raises an exception on failure.
Parameters (1)theU
DN evaluation. Raises an exception on failure.
Parameters (2)theUtheN
- Resolution(R3d: number): number
Returns the parametric resolution corresponding to the real space resolution <R3d>.
Parameters (1)R3d
Returns the type of the curve in the current interval: Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve.
- Degree(): number
- IsRational(): boolean
- NbPoles(): number
- NbKnots(): number
Adaptor3d_HSurfaceTool
Constructors(1)
Static methods(42)
- FirstUParameter(theSurf: Adaptor3d_Surface): numberParameters (1)
theSurf
- FirstVParameter(theSurf: Adaptor3d_Surface): numberParameters (1)
theSurf
- LastUParameter(theSurf: Adaptor3d_Surface): numberParameters (1)
theSurf
- LastVParameter(theSurf: Adaptor3d_Surface): numberParameters (1)
theSurf
- NbUIntervals(theSurf: Adaptor3d_Surface, theSh: GeomAbs_Shape): numberParameters (2)
theSurftheSh
- NbVIntervals(theSurf: Adaptor3d_Surface, theSh: GeomAbs_Shape): numberParameters (2)
theSurftheSh
- UIntervals(theSurf: Adaptor3d_Surface, theTab: NCollection_Array1_double, theSh: GeomAbs_Shape): voidParameters (3)
theSurftheTabtheSh
- VIntervals(theSurf: Adaptor3d_Surface, theTab: NCollection_Array1_double, theSh: GeomAbs_Shape): voidParameters (3)
theSurftheTabtheSh
- UTrim(theSurf: Adaptor3d_Surface, theFirst: number, theLast: number, theTol: number): Adaptor3d_Surface
If <First> >= <Last>.
Parameters (4)theSurftheFirsttheLasttheTol
- VTrim(theSurf: Adaptor3d_Surface, theFirst: number, theLast: number, theTol: number): Adaptor3d_Surface
If <First> >= <Last>.
Parameters (4)theSurftheFirsttheLasttheTol
- IsUClosed(theSurf: Adaptor3d_Surface): booleanParameters (1)
theSurf
- IsVClosed(theSurf: Adaptor3d_Surface): booleanParameters (1)
theSurf
- IsUPeriodic(theSurf: Adaptor3d_Surface): booleanParameters (1)
theSurf
- UPeriod(theSurf: Adaptor3d_Surface): numberParameters (1)
theSurf
- IsVPeriodic(theSurf: Adaptor3d_Surface): booleanParameters (1)
theSurf
- VPeriod(theSurf: Adaptor3d_Surface): numberParameters (1)
theSurf
- Value(theSurf: Adaptor3d_Surface, theU: number, theV: number): gp_PntParameters (3)
theSurftheUtheV
- D0(theSurf: Adaptor3d_Surface, theU: number, theV: number, thePnt: gp_Pnt): voidParameters (4)
theSurftheUtheVthePnt
- D1(theSurf: Adaptor3d_Surface, theU: number, theV: number, thePnt: gp_Pnt, theD1U: gp_Vec, theD1V: gp_Vec): voidParameters (6)
theSurftheUtheVthePnttheD1UtheD1V
- D2(theSurf: Adaptor3d_Surface, theU: number, theV: number, thePnt: gp_Pnt, theD1U: gp_Vec, theD1V: gp_Vec, theD2U: gp_Vec, theD2V: gp_Vec, theD2UV: gp_Vec): voidParameters (9)
theSurftheUtheVthePnttheD1UtheD1VtheD2UtheD2VtheD2UV
- D3(theSurf: Adaptor3d_Surface, theU: number, theV: number, thePnt: gp_Pnt, theD1U: gp_Vec, theD1V: gp_Vec, theD2U: gp_Vec, theD2V: gp_Vec, theD2UV: gp_Vec, theD3U: gp_Vec, theD3V: gp_Vec, theD3UUV: gp_Vec, theD3UVV: gp_Vec): voidParameters (13)
theSurftheUtheVthePnttheD1UtheD1VtheD2UtheD2VtheD2UVtheD3UtheD3VtheD3UUVtheD3UVV
- DN(theSurf: Adaptor3d_Surface, theU: number, theV: number, theNU: number, theNV: number): gp_VecParameters (5)
theSurftheUtheVtheNUtheNV
- UResolution(theSurf: Adaptor3d_Surface, theR3d: number): numberParameters (2)
theSurftheR3d
- VResolution(theSurf: Adaptor3d_Surface, theR3d: number): numberParameters (2)
theSurftheR3d
- GetType(theSurf: Adaptor3d_Surface): GeomAbs_SurfaceTypeParameters (1)
theSurf
- Plane(theSurf: Adaptor3d_Surface): gp_PlnParameters (1)
theSurf
- Cylinder(theSurf: Adaptor3d_Surface): gp_CylinderParameters (1)
theSurf
- Cone(theSurf: Adaptor3d_Surface): gp_ConeParameters (1)
theSurf
- Torus(theSurf: Adaptor3d_Surface): gp_TorusParameters (1)
theSurf
- Sphere(theSurf: Adaptor3d_Surface): gp_SphereParameters (1)
theSurf
- Bezier(theSurf: Adaptor3d_Surface): Geom_BezierSurfaceParameters (1)
theSurf
- BSpline(theSurf: Adaptor3d_Surface): Geom_BSplineSurfaceParameters (1)
theSurf
- AxeOfRevolution(theSurf: Adaptor3d_Surface): gp_Ax1Parameters (1)
theSurf
- Direction(theSurf: Adaptor3d_Surface): gp_DirParameters (1)
theSurf
- BasisCurve(theSurf: Adaptor3d_Surface): Adaptor3d_CurveParameters (1)
theSurf
- BasisSurface(theSurf: Adaptor3d_Surface): Adaptor3d_SurfaceParameters (1)
theSurf
- OffsetValue(theSurf: Adaptor3d_Surface): numberParameters (1)
theSurf
- IsSurfG1(theSurf: Adaptor3d_Surface, theAlongU: boolean, theAngTol?: number): booleanParameters (3)
theSurftheAlongUtheAngTol
- NbSamplesU(S: Adaptor3d_Surface): numberParameters (1)
S
- NbSamplesU(S: Adaptor3d_Surface, u1: number, u2: number): numberParameters (3)
Su1u2
- NbSamplesV(S: Adaptor3d_Surface): numberParameters (1)
S
- NbSamplesV(argNo0: Adaptor3d_Surface, v1: number, v2: number): numberParameters (3)
argNo0v1v2
Adaptor3d_HVertex
Constructors(2)
- constructor(P: gp_Pnt2d, Ori: TopAbs_Orientation, Resolution: number): Adaptor3d_HVertexParameters (3)
POriResolution
Static methods(2)
- get_type_name(): string
Instance methods(6)
- Parameter(C: Adaptor2d_Curve2d): numberParameters (1)
C
- Resolution(C: Adaptor2d_Curve2d): number
Parametric resolution (2d).
Parameters (1)C
- IsSame(Other: Adaptor3d_HVertex): booleanParameters (1)
Other
Adaptor3d_InterFunc
Used to find the points U(t) = U0 or V(t) = V0 in order to determine the Cn discontinuities of an Adpator_CurveOnSurface relatively to the discontinuities of the surface. Used to find the roots of the functions.
Constructors(1)
- constructor(C: Adaptor2d_Curve2d, FixVal: number, Fix: number): Adaptor3d_InterFunc
build the function U(t)=FixVal if Fix =1 or V(t)=FixVal if Fix=2
Parameters (3)CFixValFix
Instance methods(3)
- Value(X: number, F: number): { returnValue: boolean; F: number }
computes the value <F>of the function for the variable <X>. Returns True if the calculation were successfully done, False otherwise.
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 <D> of the function for the variable <X>. Returns True if the calculation were successfully done, False otherwise.
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 <F> and the derivative <D> of the function for the variable <X>. Returns True if the calculation were successfully done, False otherwise.
Parameters (3)XFD
ReturnsA result object with fields:
returnValue: the C++ return valueF: updated value from the call.D: updated value from the call.
Adaptor3d_IsoCurve
Defines an isoparametric curve on a surface. The type of isoparametric curve (U or V) is defined with the enumeration IsoType from GeomAbs if NoneIso is given an error is raised.
Constructors(4)
The iso is set to NoneIso.
The surface is loaded. The iso is set to NoneIso.
Parameters (1)S
- constructor(S: Adaptor3d_Surface, Iso: GeomAbs_IsoType, Param: number): Adaptor3d_IsoCurve
Creates an IsoCurve curve. Iso defines the type (isoU or isoU) Param defines the value of the iso. The bounds of the iso are the bounds of the surface.
Parameters (3)SIsoParam
- constructor(S: Adaptor3d_Surface, Iso: GeomAbs_IsoType, Param: number, WFirst: number, WLast: number): Adaptor3d_IsoCurve
Create an IsoCurve curve. Iso defines the type (isoU or isov). Param defines the value of the iso. WFirst,WLast define the bounds of the iso.
Parameters (5)SIsoParamWFirstWLast
Static methods(2)
- get_type_name(): string
Instance methods(35)
Shallow copy of adaptor.
- Load(S: Adaptor3d_Surface): void
Changes the surface. The iso is reset to NoneIso.
Parameters (1)S
- Load(Iso: GeomAbs_IsoType, Param: number): void
Changes the iso on the current surface.
Parameters (2)IsoParam
- Load(Iso: GeomAbs_IsoType, Param: number, WFirst: number, WLast: number): void
Changes the iso on the current surface.
Parameters (4)IsoParamWFirstWLast
- Parameter(): number
- FirstParameter(): number
- LastParameter(): number
- NbIntervals(S: GeomAbs_Shape): number
Returns the number of intervals for continuity . May be one if Continuity(me) >= .
Parameters (1)S
- Intervals(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 (2)T—Mutated in place; read the updated value from this argument after the call.S
- Trim(First: number, Last: number, Tol: number): Adaptor3d_Curve
Returns a curve equivalent of <me> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last>.
Parameters (3)FirstLastTol
- IsClosed(): boolean
- IsPeriodic(): boolean
- Period(): number
Computes the point of parameter theU on the curve.
Parameters (1)theU
- EvalD1(theU: number): Geom_Curve_ResD1
Computes the point of parameter theU on the curve with its first derivative. Raised if the continuity of the current interval is not C1.
Parameters (1)theU
- EvalD2(theU: number): Geom_Curve_ResD2
Returns the point and the first and second derivatives at parameter theU. Raised if the continuity of the current interval is not C2.
Parameters (1)theU
- EvalD3(theU: number): Geom_Curve_ResD3
Returns the point and the first, second and third derivatives at parameter theU. Raised if the continuity of the current interval is not C3.
Parameters (1)theU
Returns the derivative of order theN at parameter theU. Raised if the continuity of the current interval is not CN. Raised if theN < 1.
Parameters (2)theUtheN
- Resolution(R3d: number): number
Returns the parametric resolution corresponding to the real space resolution <R3d>.
Parameters (1)R3d
Returns the type of the curve in the current interval: Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve.
- Degree(): number
- IsRational(): boolean
- NbPoles(): number
- NbKnots(): number
Adaptor3d_Surface
Root class for surfaces on which geometric algorithms work. An adapted surface is an interface between the services provided by a surface and those required of the surface by algorithms which use it. A derived concrete class is provided: GeomAdaptor_Surface for a surface from the Geom package. The Surface class describes the standard behaviour of a surface for generic algorithms.
The Surface can be decomposed in intervals of any continuity in U and V using the method NbIntervals. A current interval can be set. Most of the methods apply to the current interval. Warning: All the methods are virtual and implemented with a raise to allow to redefined only the methods really used.
Polynomial coefficients of BSpline surfaces used for their evaluation are cached for better performance. Therefore these evaluations are not thread-safe and parallel evaluations need to be prevented.
Constructors(1)
Static methods(2)
- get_type_name(): string
Instance methods(54)
Shallow copy of adaptor.
- FirstUParameter(): number
- LastUParameter(): number
- FirstVParameter(): number
- LastVParameter(): number
- NbUIntervals(S: GeomAbs_Shape): number
Returns the number of U intervals for continuity . May be one if UContinuity(me) >= .
Parameters (1)S
- NbVIntervals(S: GeomAbs_Shape): number
Returns the number of V intervals for continuity . May be one if VContinuity(me) >= .
Parameters (1)S
- UIntervals(T: NCollection_Array1_double, S: GeomAbs_Shape): void
Returns the intervals with the requested continuity in the U direction.
Parameters (2)T—Mutated in place; read the updated value from this argument after the call.S
- VIntervals(T: NCollection_Array1_double, S: GeomAbs_Shape): void
Returns the intervals with the requested continuity in the V direction.
Parameters (2)T—Mutated in place; read the updated value from this argument after the call.S
- UTrim(First: number, Last: number, Tol: number): Adaptor3d_Surface
Returns a surface trimmed in the U direction equivalent of <me> between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last>.
Parameters (3)FirstLastTol
- VTrim(First: number, Last: number, Tol: number): Adaptor3d_Surface
Returns a surface trimmed in the V direction between parameters <First> and <Last>. <Tol> is used to test for 3d points confusion. If <First> >= <Last>.
Parameters (3)FirstLastTol
- IsUClosed(): boolean
- IsVClosed(): boolean
- IsUPeriodic(): boolean
- UPeriod(): number
- IsVPeriodic(): boolean
- VPeriod(): number
Computes the point of parameters U,V on the surface. Tip: use
GeomLib::NormEstim()to calculate surface normal at specified (U, V) point.Parameters (2)theUtheV
Computes the point of parameters U,V on the surface.
Parameters (3)theUtheVtheP—Mutated in place; read the updated value from this argument after the call.
Computes the point and the first derivatives on the surface. Raised if the continuity of the current intervals is not C1.
Tip: useGeomLib::NormEstim()to calculate surface normal at specified (U, V) point.Parameters (5)theUtheVtheP—Mutated in place; read the updated value from this argument after the call.theD1U—Mutated in place; read the updated value from this argument after the call.theD1V—Mutated in place; read the updated value from this argument after the call.
- D2(theU: number, theV: number, theP: gp_Pnt, theD1U: gp_Vec, theD1V: gp_Vec, theD2U: gp_Vec, theD2V: gp_Vec, theD2UV: gp_Vec): void
Computes the point, the first and second derivatives on the surface. Raised if the continuity of the current intervals is not C2.
Parameters (8)theUtheVtheP—Mutated in place; read the updated value from this argument after the call.theD1U—Mutated in place; read the updated value from this argument after the call.theD1V—Mutated in place; read the updated value from this argument after the call.theD2U—Mutated in place; read the updated value from this argument after the call.theD2V—Mutated in place; read the updated value from this argument after the call.theD2UV—Mutated in place; read the updated value from this argument after the call.
- D3(theU: number, theV: number, theP: gp_Pnt, theD1U: gp_Vec, theD1V: gp_Vec, theD2U: gp_Vec, theD2V: gp_Vec, theD2UV: gp_Vec, theD3U: gp_Vec, theD3V: gp_Vec, theD3UUV: gp_Vec, theD3UVV: gp_Vec): void
Computes the point, the first, second and third derivatives on the surface. Raised if the continuity of the current intervals is not C3.
Parameters (12)theUtheVtheP—Mutated in place; read the updated value from this argument after the call.theD1U—Mutated in place; read the updated value from this argument after the call.theD1V—Mutated in place; read the updated value from this argument after the call.theD2U—Mutated in place; read the updated value from this argument after the call.theD2V—Mutated in place; read the updated value from this argument after the call.theD2UV—Mutated in place; read the updated value from this argument after the call.theD3U—Mutated in place; read the updated value from this argument after the call.theD3V—Mutated in place; read the updated value from this argument after the call.theD3UUV—Mutated in place; read the updated value from this argument after the call.theD3UVV—Mutated in place; read the updated value from this argument after the call.
Computes the derivative of order Nu in the direction U and Nv in the direction V at the point P(U, V). Raised if the current U interval is not not CNu and the current V interval is not CNv. Raised if Nu + Nv < 1 or Nu < 0 or Nv < 0.
Parameters (4)theUtheVtheNutheNv
- UResolution(R3d: number): number
Returns the parametric U resolution corresponding to the real space resolution <R3d>.
Parameters (1)R3d
- VResolution(R3d: number): number
Returns the parametric V resolution corresponding to the real space resolution <R3d>.
Parameters (1)R3d
Returns the type of the surface: Plane, Cylinder, Cone, Sphere, Torus, BezierSurface, BSplineSurface, SurfaceOfRevolution, SurfaceOfExtrusion, OtherSurface.
- UDegree(): number
- NbUPoles(): number
- VDegree(): number
- NbVPoles(): number
- NbUKnots(): number
- NbVKnots(): number
- IsURational(): boolean
- IsVRational(): boolean
- OffsetValue(): number
Computes the point of parameters (U, V) on the surface. Raises an exception on failure.
Parameters (2)theUtheV
- EvalD1(theU: number, theV: number): Geom_Surface_ResD1
Computes the point and first partial derivatives at (U, V). Raises an exception on failure.
Parameters (2)theUtheV
- EvalD2(theU: number, theV: number): Geom_Surface_ResD2
Computes the point and partial derivatives up to 2nd order at (U, V). Raises an exception on failure.
Parameters (2)theUtheV
- EvalD3(theU: number, theV: number): Geom_Surface_ResD3
Computes the point and partial derivatives up to 3rd order at (U, V). Raises an exception on failure.
Parameters (2)theUtheV
Computes the derivative of order Nu in U and Nv in V at (U, V). Raises an exception on failure.
Parameters (4)theUtheVtheNutheNv
Adaptor3d_TopolTool
This class provides a default topological tool, based on the Umin,Vmin,Umax,Vmax of an HSurface from Adaptor3d. All methods and fields may be redefined when inheriting from this class. This class is used to instantiate algorithms as Intersection, outlines,...
Constructors(2)
- constructor(Surface: Adaptor3d_Surface): Adaptor3d_TopolToolParameters (1)
Surface
Static methods(3)
- GetConeApexParam(theC: gp_Cone, theU: number, theV: number): { theU: number; theV: number }
Computes the cone's apex parameters.
Parameters (3)theC—conical surfacetheU—U parameter of cone's apextheV—V parameter of cone's apex
ReturnsA result object with fields:
theU: U parameter of cone's apextheV: V parameter of cone's apex
- get_type_name(): string
Instance methods(32)
- Initialize(): void
- Initialize(S: Adaptor3d_Surface): voidParameters (1)
S
- Initialize(Curve: Adaptor2d_Curve2d): voidParameters (1)
Curve
- Init(): void
- More(): boolean
- Next(): void
- InitVertexIterator(): void
- MoreVertex(): boolean
- NextVertex(): void
- Classify(P: gp_Pnt2d, Tol: number, ReacdreOnPeriodic?: boolean): TopAbs_StateParameters (3)
PTolReacdreOnPeriodic
- IsThePointOn(P: gp_Pnt2d, Tol: number, ReacdreOnPeriodic?: boolean): booleanParameters (3)
PTolReacdreOnPeriodic
If the function returns the orientation of the arc. If the orientation is FORWARD or REVERSED, the arc is a "real" limit of the surface. If the orientation is INTERNAL or EXTERNAL, the arc is considered as an arc on the surface.
Parameters (1)C
Returns the orientation of the vertex V. The vertex has been found with an exploration on a given arc. The orientation is the orientation of the vertex on this arc.
Parameters (1)V
- Identical(V1: Adaptor3d_HVertex, V2: Adaptor3d_HVertex): boolean
Returns True if the vertices V1 and V2 are identical. This method does not take the orientation of the vertices in account.
Parameters (2)V1V2
- Has3d(): boolean
answers if arcs and vertices may have 3d representations, so that we could use Tol3d and Pnt methods.
- Tol3d(C: Adaptor2d_Curve2d): number
returns 3d tolerance of the arc C
Parameters (1)C
- Tol3d(V: Adaptor3d_HVertex): number
returns 3d tolerance of the vertex V
Parameters (1)V
- Pnt(V: Adaptor3d_HVertex): gp_Pnt
returns 3d point of the vertex V
Parameters (1)V
- ComputeSamplePoints(): void
- NbSamplesU(): number
compute the sample-points for the intersections algorithms
- NbSamplesV(): number
compute the sample-points for the intersections algorithms
- NbSamples(): number
compute the sample-points for the intersections algorithms
- UParameters(theArray: NCollection_Array1_double): void
return the set of U parameters on the surface obtained by the method SamplePnts
Parameters (1)theArray—Mutated in place; read the updated value from this argument after the call.
- VParameters(theArray: NCollection_Array1_double): void
return the set of V parameters on the surface obtained by the method SamplePnts
Parameters (1)theArray—Mutated in place; read the updated value from this argument after the call.
- SamplePoint(Index: number, P2d: gp_Pnt2d, P3d: gp_Pnt): voidParameters (3)
IndexP2dP3d
- DomainIsInfinite(): boolean
- SamplePnts(theDefl: number, theNUmin: number, theNVmin: number): void
Compute the sample-points for the intersections algorithms by adaptive algorithm for BSpline surfaces. For other surfaces algorithm is the same as in method
ComputeSamplePoints(), but only fill arrays of U and V sample parameters;.Parameters (3)theDefl—a required deflectiontheNUmin—minimal nb points for UtheNVmin—minimal nb points for V
- BSplSamplePnts(theDefl: number, theNUmin: number, theNVmin: number): void
Compute the sample-points for the intersections algorithms by adaptive algorithm for BSpline surfaces - is used in SamplePnts.
Parameters (3)theDefl—required deflectiontheNUmin—minimal nb points for UtheNVmin—minimal nb points for V
- IsUniformSampling(): boolean
Returns true if provide uniform sampling of points.