GeomFill
OCCT package GeomFill: GeomFill, GeomFill_ApproxStyle, GeomFill_AppSurf, GeomFill_AppSweep, and 55 more bound classes.
GeomFill
Tools and Data to filling Surface and Sweep Surfaces.
Constructors(1)
Static methods(8)
- Surface(Curve1: Geom_Curve, Curve2: Geom_Curve): Geom_Surface
Builds a ruled surface between the two curves, Curve1 and Curve2.
Parameters (2)Curve1Curve2
- GetCircle(TConv: Convert_ParameterisationType, ns1: gp_Vec, ns2: gp_Vec, nplan: gp_Vec, pt1: gp_Pnt, pt2: gp_Pnt, Rayon: number, Center: gp_Pnt, Poles: NCollection_Array1_gp_Pnt, Weigths: NCollection_Array1_double): voidParameters (10)
TConvns1ns2nplanpt1pt2RayonCenterPolesWeigths
- GetCircle(TConv: Convert_ParameterisationType, ns1: gp_Vec, ns2: gp_Vec, dn1w: gp_Vec, dn2w: gp_Vec, nplan: gp_Vec, dnplan: gp_Vec, pts1: gp_Pnt, pts2: gp_Pnt, tang1: gp_Vec, tang2: gp_Vec, Rayon: number, DRayon: number, Center: gp_Pnt, DCenter: gp_Vec, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double): booleanParameters (19)
TConvns1ns2dn1wdn2wnplandnplanpts1pts2tang1tang2RayonDRayonCenterDCenterPolesDPolesWeigthsDWeigths
- GetCircle(TConv: Convert_ParameterisationType, ns1: gp_Vec, ns2: gp_Vec, dn1w: gp_Vec, dn2w: gp_Vec, d2n1w: gp_Vec, d2n2w: gp_Vec, nplan: gp_Vec, dnplan: gp_Vec, d2nplan: gp_Vec, pts1: gp_Pnt, pts2: gp_Pnt, tang1: gp_Vec, tang2: gp_Vec, Dtang1: gp_Vec, Dtang2: gp_Vec, Rayon: number, DRayon: number, D2Rayon: number, Center: gp_Pnt, DCenter: gp_Vec, D2Center: gp_Vec, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, D2Poles: NCollection_Array1_gp_Vec, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double, D2Weigths: NCollection_Array1_double): booleanParameters (28)
TConvns1ns2dn1wdn2wd2n1wd2n2wnplandnpland2nplanpts1pts2tang1tang2Dtang1Dtang2RayonDRayonD2RayonCenterDCenterD2CenterPolesDPolesD2PolesWeigthsDWeigthsD2Weigths
- Knots(TypeConv: Convert_ParameterisationType, TKnots: NCollection_Array1_double): voidParameters (2)
TypeConvTKnots
- Mults(TypeConv: Convert_ParameterisationType, TMults: NCollection_Array1_int): voidParameters (2)
TypeConvTMults
- GetMinimalWeights(TConv: Convert_ParameterisationType, AngleMin: number, AngleMax: number, Weigths: NCollection_Array1_double): voidParameters (4)
TConvAngleMinAngleMaxWeigths
- GetTolerance(TConv: Convert_ParameterisationType, AngleMin: number, Radius: number, AngularTol: number, SpatialTol: number): number
Used by the generical classes to determine Tolerance for approximation.
Parameters (5)TConvAngleMinRadiusAngularTolSpatialTol
GeomFill_ApproxStyle
Properties(2)
GeomFill_AppSurf
Approximate a BSplineSurface passing by all the curves described in the SectionGenerator.
Constructors(2)
- constructor(Degmin: number, Degmax: number, Tol3d: number, Tol2d: number, NbIt: number, KnownParameters?: boolean): GeomFill_AppSurfParameters (6)
DegminDegmaxTol3dTol2dNbItKnownParameters
Instance methods(30)
- Init(Degmin: number, Degmax: number, Tol3d: number, Tol2d: number, NbIt: number, KnownParameters?: boolean): voidParameters (6)
DegminDegmaxTol3dTol2dNbItKnownParameters
- SetParType(ParType: Approx_ParametrizationType): void
Define the type of parametrization used in the approximation.
Parameters (1)ParType
- SetContinuity(C: GeomAbs_Shape): void
Define the Continuity used in the approximation.
Parameters (1)C
- SetCriteriumWeight(W1: number, W2: number, W3: number): void
define the Weights associed to the criterium used in the optimization.
if Wi <= 0Parameters (3)W1W2W3
returns the type of parametrization used in the approximation
returns the Continuity used in the approximation
- CriteriumWeight(W1: number, W2: number, W3: number): { W1: number; W2: number; W3: number }
returns the Weights (as percent) associed to the criterium used in the optimization.
Parameters (3)W1W2W3
ReturnsA result object with fields:
W1: updated value from the call.W2: updated value from the call.W3: updated value from the call.
- Perform(Lin: GeomFill_Line, SecGen: GeomFill_SectionGenerator, SpApprox: boolean): voidParameters (3)
LinSecGenSpApprox
- Perform(Lin: GeomFill_Line, SecGen: GeomFill_SectionGenerator, NbMaxP: number): voidParameters (3)
LinSecGenNbMaxP
- PerformSmoothing(Lin: GeomFill_Line, SecGen: GeomFill_SectionGenerator): voidParameters (2)
LinSecGen
- IsDone(): boolean
- SurfShape(UDegree: number, VDegree: number, NbUPoles: number, NbVPoles: number, NbUKnots: number, NbVKnots: number): { UDegree: number; VDegree: number; NbUPoles: number; NbVPoles: number; NbUKnots: number; NbVKnots: number }Parameters (6)
UDegreeVDegreeNbUPolesNbVPolesNbUKnotsNbVKnots
- Surface(TPoles: NCollection_Array2_gp_Pnt, TWeights: NCollection_Array2_double, TUKnots: NCollection_Array1_double, TVKnots: NCollection_Array1_double, TUMults: NCollection_Array1_int, TVMults: NCollection_Array1_int): voidParameters (6)
TPolesTWeightsTUKnotsTVKnotsTUMultsTVMults
- UDegree(): number
- VDegree(): number
- NbCurves2d(): number
- Curves2dShape(Degree: number, NbPoles: number, NbKnots: number): { Degree: number; NbPoles: number; NbKnots: number }Parameters (3)
DegreeNbPolesNbKnots
- Curve2d(Index: number, TPoles: NCollection_Array1_gp_Pnt2d, TKnots: NCollection_Array1_double, TMults: NCollection_Array1_int): voidParameters (4)
IndexTPolesTKnotsTMults
- Curves2dDegree(): number
- Curve2dPoles(Index: number): NCollection_Array1_gp_Pnt2dParameters (1)
Index
- TolReached(Tol3d: number, Tol2d: number): { Tol3d: number; Tol2d: number }Parameters (2)
Tol3dTol2d
- TolCurveOnSurf(Index: number): numberParameters (1)
Index
GeomFill_AppSweep
Approximate a sweep surface passing by all the curves described in the SweepSectionGenerator.
Constructors(2)
- constructor(Degmin: number, Degmax: number, Tol3d: number, Tol2d: number, NbIt: number, KnownParameters?: boolean): GeomFill_AppSweepParameters (6)
DegminDegmaxTol3dTol2dNbItKnownParameters
Instance methods(26)
- SetParType(ParType: Approx_ParametrizationType): void
Define the type of parametrization used in the approximation.
Parameters (1)ParType
- SetContinuity(C: GeomAbs_Shape): void
Define the Continuity used in the approximation.
Parameters (1)C
- SetCriteriumWeight(W1: number, W2: number, W3: number): void
define the Weights associed to the criterium used in the optimization.
if Wi <= 0Parameters (3)W1W2W3
returns the type of parametrization used in the approximation
returns the Continuity used in the approximation
- CriteriumWeight(W1: number, W2: number, W3: number): { W1: number; W2: number; W3: number }
returns the Weights (as percent) associed to the criterium used in the optimization.
Parameters (3)W1W2W3
ReturnsA result object with fields:
W1: updated value from the call.W2: updated value from the call.W3: updated value from the call.
- IsDone(): boolean
- SurfShape(UDegree: number, VDegree: number, NbUPoles: number, NbVPoles: number, NbUKnots: number, NbVKnots: number): { UDegree: number; VDegree: number; NbUPoles: number; NbVPoles: number; NbUKnots: number; NbVKnots: number }Parameters (6)
UDegreeVDegreeNbUPolesNbVPolesNbUKnotsNbVKnots
- Surface(TPoles: NCollection_Array2_gp_Pnt, TWeights: NCollection_Array2_double, TUKnots: NCollection_Array1_double, TVKnots: NCollection_Array1_double, TUMults: NCollection_Array1_int, TVMults: NCollection_Array1_int): voidParameters (6)
TPolesTWeightsTUKnotsTVKnotsTUMultsTVMults
- UDegree(): number
- VDegree(): number
- NbCurves2d(): number
- Curves2dShape(Degree: number, NbPoles: number, NbKnots: number): { Degree: number; NbPoles: number; NbKnots: number }Parameters (3)
DegreeNbPolesNbKnots
- Curve2d(Index: number, TPoles: NCollection_Array1_gp_Pnt2d, TKnots: NCollection_Array1_double, TMults: NCollection_Array1_int): voidParameters (4)
IndexTPolesTKnotsTMults
- Curves2dDegree(): number
- Curve2dPoles(Index: number): NCollection_Array1_gp_Pnt2dParameters (1)
Index
- TolReached(Tol3d: number, Tol2d: number): { Tol3d: number; Tol2d: number }Parameters (2)
Tol3dTol2d
- TolCurveOnSurf(Index: number): numberParameters (1)
Index
GeomFill_BezierCurves
This class provides an algorithm for constructing a Bezier surface filled from contiguous Bezier curves which form its boundaries. The algorithm accepts two, three or four Bezier curves as the boundaries of the target surface. A range of filling styles - more or less rounded, more or less flat - is available. A BezierCurves object provides a framework for:
- defining the boundaries, and the filling style of the surface
- implementing the construction algorithm
- consulting the result. Warning Some problems may show up with rational curves.
Constructors(4)
Constructs an empty framework for building a Bezier surface from contiguous Bezier curves. You use the Init function to define the boundaries of the surface.
- constructor(C1: Geom_BezierCurve, C2: Geom_BezierCurve, Type: GeomFill_FillingStyle): GeomFill_BezierCurves
Constructs a framework for building a Bezier surface from the two contiguous Bezier curves, C1 and C2 Raises Standard_ConstructionError if the curves are not contiguous.
Parameters (3)C1C2Type
- constructor(C1: Geom_BezierCurve, C2: Geom_BezierCurve, C3: Geom_BezierCurve, Type: GeomFill_FillingStyle): GeomFill_BezierCurves
Constructs a framework for building a Bezier surface from the three contiguous Bezier curves, C1, C2 and C3 Raises Standard_ConstructionError if the curves are not contiguous.
Parameters (4)C1C2C3Type
- constructor(C1: Geom_BezierCurve, C2: Geom_BezierCurve, C3: Geom_BezierCurve, C4: Geom_BezierCurve, Type: GeomFill_FillingStyle): GeomFill_BezierCurves
Constructs a framework for building a Bezier surface from the four contiguous Bezier curves, C1, C2, C3 and C4 Raises Standard_ConstructionError if the curves are not contiguous.
Parameters (5)C1C2C3C4Type
Instance methods(4)
- Init(C1: Geom_BezierCurve, C2: Geom_BezierCurve, C3: Geom_BezierCurve, C4: Geom_BezierCurve, Type: GeomFill_FillingStyle): void
if the curves cannot be joined
Parameters (5)C1C2C3C4Type
- Init(C1: Geom_BezierCurve, C2: Geom_BezierCurve, C3: Geom_BezierCurve, Type: GeomFill_FillingStyle): void
if the curves cannot be joined
Parameters (4)C1C2C3Type
- Init(C1: Geom_BezierCurve, C2: Geom_BezierCurve, Type: GeomFill_FillingStyle): void
Initializes or reinitializes this algorithm with two, three, or four curves - C1, C2, C3, and C4 - and Type, one of the following filling styles:
GeomFill_Stretch- the style with the flattest patchGeomFill_Coons- a rounded style of patch with less depth than that of CurvedGeomFill_Curved- the style with the most rounded patch. Exceptions Standard_ConstructionError if the curves are not contiguous.
Parameters (3)C1C2Type
Returns the Bezier surface resulting from the computation performed by this algorithm.
GeomFill_Boundary
Root class to define a boundary which will form part of a contour around a gap requiring filling. Any new type of constrained boundary must inherit this class. The GeomFill package provides two classes to define constrained boundaries:
GeomFill_SimpleBoundto define an unattached boundaryGeomFill_BoundWithSurfto define a boundary attached to a surface. These objects are used to define the boundaries for aGeomFill_ConstrainedFillingframework.
Static methods(2)
- get_type_name(): string
Instance methods(14)
- Parameters (1)
U
- Parameters (3)
UPV
- HasNormals(): boolean
- Parameters (1)
U
- Parameters (3)
UNDN
- Reparametrize(First: number, Last: number, HasDF: boolean, HasDL: boolean, DF: number, DL: number, Rev: boolean): voidParameters (7)
FirstLastHasDFHasDLDFDLRev
- Parameters (2)
PFirstPLast
- Bounds(First: number, Last: number): { First: number; Last: number }Parameters (2)
FirstLast
- IsDegenerated(): boolean
- Tol3d(): number
- Tol3d(Tol: number): voidParameters (1)
Tol
- Tolang(): number
- Tolang(Tol: number): voidParameters (1)
Tol
GeomFill_BoundWithSurf
Defines a 3d curve as a boundary for a GeomFill_ConstrainedFilling algorithm. This curve is attached to an existing surface. Defines a constrained boundary for filling the computations are done with a CurveOnSurf and a normals field defined by the normalized normal to the surface along the PCurve. Contains fields to allow a reparametrization of curve and normals field.
Constructors(1)
- constructor(CurveOnSurf: Adaptor3d_CurveOnSurface, Tol3d: number, Tolang: number): GeomFill_BoundWithSurf
Constructs a boundary object defined by the 3d curve CurveOnSurf. The surface to be filled along this boundary will be in the tolerance range defined by Tol3d. What's more, at each point of CurveOnSurf, the angle between the normal to the surface to be filled along this boundary, and the normal to the surface on which CurveOnSurf lies, must not be greater than TolAng. This object is to be used as a boundary for a
GeomFill_ConstrainedFillingframework. Warning CurveOnSurf is an adapted curve, that is, an object which is an interface between:- the services provided by a curve lying on a surface from the package Geom
- and those required of the curve by the computation algorithm which uses it.
The adapted curve is created in the following way:occ::handle<Geom_Surface>mySurface = ... ;occ::handle<Geom2d_Curve>myParamCurve = ... ; // where myParamCurve is a 2D curve in the parametric space of the surface mySurfaceocc::handle<GeomAdaptor_Surface>Surface = newGeomAdaptor_Surface(mySurface);occ::handle<Geom2dAdaptor_Curve>ParamCurve = newGeom2dAdaptor_Curve(myParamCurve); CurveOnSurf =Adaptor3d_CurveOnSurface(ParamCurve,Surface); The boundary is then constructed with the CurveOnSurf object: double Tol = ... ; double TolAng = ... ; myBoundary =GeomFill_BoundWithSurf( CurveOnSurf, Tol, TolAng );
Parameters (3)CurveOnSurfTol3dTolang
Static methods(2)
- get_type_name(): string
Instance methods(9)
- Parameters (1)
U
- Parameters (3)
UPV
- HasNormals(): boolean
- Parameters (1)
U
- Parameters (3)
UNDN
- Reparametrize(First: number, Last: number, HasDF: boolean, HasDL: boolean, DF: number, DL: number, Rev: boolean): voidParameters (7)
FirstLastHasDFHasDLDFDLRev
- Bounds(First: number, Last: number): { First: number; Last: number }Parameters (2)
FirstLast
- IsDegenerated(): boolean
GeomFill_BSplineCurves
An algorithm for constructing a BSpline surface filled from contiguous BSpline curves which form its boundaries. The algorithm accepts two, three or four BSpline curves as the boundaries of the target surface. A range of filling styles - more or less rounded, more or less flat - is available. A BSplineCurves object provides a framework for:
- defining the boundaries, and the filling style of the surface
- implementing the construction algorithm
- consulting the result. Warning Some problems may show up with rational curves.
Constructors(4)
Constructs a default BSpline surface framework.
- constructor(C1: Geom_BSplineCurve, C2: Geom_BSplineCurve, Type: GeomFill_FillingStyle): GeomFill_BSplineCurves
Constructs a framework for building a BSpline surface from either.
- the four contiguous BSpline curves, C1, C2, C3 and C4, or
- the three contiguous BSpline curves, C1, C2 and C3, or
- the two contiguous BSpline curves, C1 and C2. The type of filling style Type to be used is one of:
GeomFill_Stretch- the style with the flattest patchGeomFill_Coons- a rounded style of patch with less depth than that of CurvedGeomFill_Curved- the style with the most rounded patch.Constructs a framework for building a BSpline surface common to the two BSpline curves, C1 and C2. Exceptions Standard_ConstructionError if the curves are not contiguous.
Parameters (3)C1C2Type
- constructor(C1: Geom_BSplineCurve, C2: Geom_BSplineCurve, C3: Geom_BSplineCurve, Type: GeomFill_FillingStyle): GeomFill_BSplineCurvesParameters (4)
C1C2C3Type
- constructor(C1: Geom_BSplineCurve, C2: Geom_BSplineCurve, C3: Geom_BSplineCurve, C4: Geom_BSplineCurve, Type: GeomFill_FillingStyle): GeomFill_BSplineCurvesParameters (5)
C1C2C3C4Type
Instance methods(4)
- Init(C1: Geom_BSplineCurve, C2: Geom_BSplineCurve, C3: Geom_BSplineCurve, C4: Geom_BSplineCurve, Type: GeomFill_FillingStyle): void
if the curves cannot be joined
Parameters (5)C1C2C3C4Type
- Init(C1: Geom_BSplineCurve, C2: Geom_BSplineCurve, C3: Geom_BSplineCurve, Type: GeomFill_FillingStyle): void
if the curves cannot be joined
Parameters (4)C1C2C3Type
- Init(C1: Geom_BSplineCurve, C2: Geom_BSplineCurve, Type: GeomFill_FillingStyle): void
Initializes or reinitializes this algorithm with two, three, or four curves - C1, C2, C3, and C4 - and Type, one of the following filling styles:
GeomFill_Stretch- the style with the flattest patchGeomFill_Coons- a rounded style of patch with less depth than that of CurvedGeomFill_Curved- the style with the most rounded patch. Exceptions Standard_ConstructionError if the curves are not contiguous.
Parameters (3)C1C2Type
Returns the BSpline surface Surface resulting from the computation performed by this algorithm.
GeomFill_CircularBlendFunc
Circular Blend Function to approximate by SweepApproximation from Approx.
Constructors(1)
- constructor(Path: Adaptor3d_Curve, Curve1: Adaptor3d_Curve, Curve2: Adaptor3d_Curve, Radius: number, Polynomial?: boolean): GeomFill_CircularBlendFunc
Create a Blend with a constant radius with 2 guide-line. <FShape> sets the type of fillet surface. The default value is Convert_TgtThetaOver2 (classical nurbs representation of circles). ChFi3d_QuasiAngular corresponds to a nurbs representation of circles which parameterisation matches the circle one. ChFi3d_Polynomial corresponds to a polynomial representation of circles.
Parameters (5)PathCurve1Curve2RadiusPolynomial
Static methods(2)
- get_type_name(): string
Instance methods(17)
- D0(Param: number, First: number, Last: number, Poles: NCollection_Array1_gp_Pnt, Poles2d: NCollection_Array1_gp_Pnt2d, Weigths: NCollection_Array1_double): boolean
compute the section for v = param
Parameters (6)ParamFirstLastPoles—Mutated in place; read the updated value from this argument after the call.Poles2d—Mutated in place; read the updated value from this argument after the call.Weigths—Mutated in place; read the updated value from this argument after the call.
- D1(Param: number, First: number, Last: number, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double): boolean
compute the first derivative in v direction of the section for v = param
Parameters (9)ParamFirstLastPoles—Mutated in place; read the updated value from this argument after the call.DPoles—Mutated in place; read the updated value from this argument after the call.Poles2d—Mutated in place; read the updated value from this argument after the call.DPoles2d—Mutated in place; read the updated value from this argument after the call.Weigths—Mutated in place; read the updated value from this argument after the call.DWeigths—Mutated in place; read the updated value from this argument after the call.
- D2(Param: number, First: number, Last: number, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, D2Poles: NCollection_Array1_gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d, D2Poles2d: NCollection_Array1_gp_Vec2d, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double, D2Weigths: NCollection_Array1_double): boolean
compute the second derivative in v direction of the section for v = param
Parameters (12)ParamFirstLastPoles—Mutated in place; read the updated value from this argument after the call.DPoles—Mutated in place; read the updated value from this argument after the call.D2Poles—Mutated in place; read the updated value from this argument after the call.Poles2d—Mutated in place; read the updated value from this argument after the call.DPoles2d—Mutated in place; read the updated value from this argument after the call.D2Poles2d—Mutated in place; read the updated value from this argument after the call.Weigths—Mutated in place; read the updated value from this argument after the call.DWeigths—Mutated in place; read the updated value from this argument after the call.D2Weigths—Mutated in place; read the updated value from this argument after the call.
- Nb2dCurves(): number
get the number of 2d curves to approximate.
- SectionShape(NbPoles: number, NbKnots: number, Degree: number): { NbPoles: number; NbKnots: number; Degree: number }
get the format of an section
Parameters (3)NbPolesNbKnotsDegree
ReturnsA result object with fields:
NbPoles: updated value from the call.NbKnots: updated value from the call.Degree: updated value from the call.
- Knots(TKnots: NCollection_Array1_double): void
get the Knots of the section
Parameters (1)TKnots—Mutated in place; read the updated value from this argument after the call.
- Mults(TMults: NCollection_Array1_int): void
get the Multplicities of the section
Parameters (1)TMults—Mutated in place; read the updated value from this argument after the call.
- IsRational(): boolean
Returns if the section is rational or not.
- 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
- SetInterval(First: number, Last: number): void
Sets the bounds of the parametric interval on the fonction This determines the derivatives in these values if the function is not Cn.
Parameters (2)FirstLast
- GetTolerance(BoundTol: number, SurfTol: number, AngleTol: number, Tol3d: NCollection_Array1_double): void
Returns the tolerance to reach in approximation to respect BoundTol error at the Boundary AngleTol tangent error at the Boundary (in radian) SurfTol error inside the surface.
Parameters (4)BoundTolSurfTolAngleTolTol3d—Mutated in place; read the updated value from this argument after the call.
- SetTolerance(Tol3d: number, Tol2d: number): void
Is useful, if (me) has to be run numerical algorithm to perform D0, D1 or D2.
Parameters (2)Tol3dTol2d
Get the barycentre of Surface. A very poor estimation is sufficient. This information is useful to perform well conditioned rational approximation.
- MaximalSection(): number
Returns the length of the maximum section. This information is useful to perform well conditioned rational approximation.
- GetMinimalWeight(Weigths: NCollection_Array1_double): void
Compute the minimal value of weight for each poles of all sections. This information is useful to perform well conditioned rational approximation.
Parameters (1)Weigths—Mutated in place; read the updated value from this argument after the call.
GeomFill_ConstantBiNormal
Defined a Trihedron Law where the BiNormal, is fixed.
Constructors(1)
- constructor(BiNormal: gp_Dir): GeomFill_ConstantBiNormalParameters (1)
BiNormal
Static methods(2)
- get_type_name(): string
Instance methods(11)
- SetCurve(C: Adaptor3d_Curve): boolean
initialize curve of trihedron law
Parameters (1)C
Returnstrue in case if execution end correctly
Computes Triedrhon on curve at parameter .
Parameters (4)ParamTangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.
- D1(Param: number, Tangent: gp_Vec, DTangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec): boolean
Computes Triedrhon and derivative Trihedron on curve at parameter Warning: It used only for C1 or C2 approximation.
Parameters (7)ParamTangent—Mutated in place; read the updated value from this argument after the call.DTangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.DNormal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.DBiNormal—Mutated in place; read the updated value from this argument after the call.
- D2(Param: number, Tangent: gp_Vec, DTangent: gp_Vec, D2Tangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, D2Normal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec, D2BiNormal: gp_Vec): boolean
compute Trihedron on curve first and second derivatives. Warning: It used only for C2 approximation
Parameters (10)ParamTangent—Mutated in place; read the updated value from this argument after the call.DTangent—Mutated in place; read the updated value from this argument after the call.D2Tangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.DNormal—Mutated in place; read the updated value from this argument after the call.D2Normal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.DBiNormal—Mutated in place; read the updated value from this argument after the call.D2BiNormal—Mutated in place; read the updated value from this argument after the call.
- 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
- GetAverageLaw(ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec): void
Gets average value of Tangent(t) and Normal(t) it is useful to make fast approximation of rational surfaces.
Parameters (3)ATangent—Mutated in place; read the updated value from this argument after the call.ANormal—Mutated in place; read the updated value from this argument after the call.ABiNormal—Mutated in place; read the updated value from this argument after the call.
- IsConstant(): boolean
Says if the law is Constant.
- IsOnlyBy3dCurve(): boolean
Return True.
GeomFill_ConstrainedFilling
An algorithm for constructing a BSpline surface filled from a series of boundaries which serve as path constraints and optionally, as tangency constraints. The algorithm accepts three or four curves as the boundaries of the target surface. The only FillingStyle used is Coons. A ConstrainedFilling object provides a framework for:
- defining the boundaries of the surface
- implementing the construction algorithm
- consulting the result. Warning This surface filling algorithm is specifically designed to be used in connection with fillets. Satisfactory results cannot be guaranteed for other uses.
Constructors(1)
- constructor(MaxDeg: number, MaxSeg: number): GeomFill_ConstrainedFilling
Constructs an empty framework for filling a surface from boundaries. The boundaries of the surface will be defined, and the surface will be built by using the function Init. The surface will respect the following constraints:
- its degree will not be greater than MaxDeg
- the maximum number of segments MaxSeg which BSpline surfaces can have.
Parameters (2)MaxDegMaxSeg
Instance methods(11)
- Init(B1: GeomFill_Boundary, B2: GeomFill_Boundary, B3: GeomFill_Boundary, NoCheck: boolean): voidParameters (4)
B1B2B3NoCheck
- Init(B1: GeomFill_Boundary, B2: GeomFill_Boundary, B3: GeomFill_Boundary, B4: GeomFill_Boundary, NoCheck: boolean): void
Constructs a BSpline surface filled from the series of boundaries B1, B2, B3 and, if need be, B4, which serve:
- as path constraints
- and optionally, as tangency constraints if they are
GeomFill_BoundWithSurfcurves. The boundaries may be given in any order: they are classified and if necessary, reversed and reparameterized. The surface will also respect the following constraints: - its degree will not be greater than the maximum degree defined at the time of construction of this framework, and
- the maximum number of segments MaxSeg which BSpline surfaces can have
Parameters (5)B1B2B3B4NoCheck
- SetDomain(l: number, B: GeomFill_BoundWithSurf): void
Allows to modify domain on which the blending function associated to the constrained boundary B will propag the influence of the field of tangency. Can be useful to reduce influence of boundaries on which the Coons compatibility conditions are not respected. l is a relative value of the parametric range of B. Default value for l is 1 (used in Init). Warning: Must be called after Init with a constrained boundary used in the call to Init.
Parameters (2)lB
- ReBuild(): void
Computes the new poles of the surface using the new blending functions set by several calls to SetDomain.
- Boundary(I: number): GeomFill_Boundary
Returns the bound of index i after sort.
Parameters (1)I
Returns the BSpline surface after computation of the fill by this framework.
- Eval(W: number, Ord: number, Result: number): { returnValue: number; Result: number }
Internal use for Advmath approximation call.
Parameters (3)WOrdResult
ReturnsA result object with fields:
returnValue: the C++ return valueResult: updated value from the call.
- CheckCoonsAlgPatch(I: number): void
Computes the fields of tangents on 30 points along the bound I, these are not the constraint tangents but gives an idea of the coonsAlgPatch regularity.
Parameters (1)I
- CheckTgteField(I: number): void
Computes the fields of tangents and normals on 30 points along the bound I, draw them, and computes the max dot product that must be near than 0.
Parameters (1)I
- CheckApprox(I: number): void
Computes values and normals along the bound I and compare them to the approx result curves (bound and tgte field) , draw the normals and tangents.
Parameters (1)I
- CheckResult(I: number): void
Computes values and normals along the bound I on both constraint surface and result surface, draw the normals, and computes the max distance between values and the max angle between normals.
Parameters (1)I
GeomFill_Coons
Constructors(3)
- constructor(P1: NCollection_Array1_gp_Pnt, P2: NCollection_Array1_gp_Pnt, P3: NCollection_Array1_gp_Pnt, P4: NCollection_Array1_gp_Pnt): GeomFill_CoonsParameters (4)
P1P2P3P4
- constructor(P1: NCollection_Array1_gp_Pnt, P2: NCollection_Array1_gp_Pnt, P3: NCollection_Array1_gp_Pnt, P4: NCollection_Array1_gp_Pnt, W1: NCollection_Array1_double, W2: NCollection_Array1_double, W3: NCollection_Array1_double, W4: NCollection_Array1_double): GeomFill_CoonsParameters (8)
P1P2P3P4W1W2W3W4
Instance methods(2)
- Init(P1: NCollection_Array1_gp_Pnt, P2: NCollection_Array1_gp_Pnt, P3: NCollection_Array1_gp_Pnt, P4: NCollection_Array1_gp_Pnt): voidParameters (4)
P1P2P3P4
- Init(P1: NCollection_Array1_gp_Pnt, P2: NCollection_Array1_gp_Pnt, P3: NCollection_Array1_gp_Pnt, P4: NCollection_Array1_gp_Pnt, W1: NCollection_Array1_double, W2: NCollection_Array1_double, W3: NCollection_Array1_double, W4: NCollection_Array1_double): voidParameters (8)
P1P2P3P4W1W2W3W4
GeomFill_CoonsAlgPatch
Provides evaluation methods on an algorithmic patch (based on 4 Curves) defined by its boundaries and blending functions.
Constructors(1)
- constructor(B1: GeomFill_Boundary, B2: GeomFill_Boundary, B3: GeomFill_Boundary, B4: GeomFill_Boundary): GeomFill_CoonsAlgPatch
Constructs the algorithmic patch. By Default the constructed blending functions are linear. Warning: No control is done on the bounds. B1/B3 and B2/B4 must be same range and well oriented.
Parameters (4)B1B2B3B4
Static methods(2)
- get_type_name(): string
Instance methods(10)
- Func(): { f1: Law_Function; f2: Law_Function; [Symbol.dispose](): void }
Give the blending functions.
ReturnsA result object with fields:
f1: owned by the returned envelope.f2: owned by the returned envelope.
Dispose the returned envelope to release owned Handle fields.
- Func(I: number): Law_FunctionParameters (1)
I
- SetFunc(f1: Law_Function, f2: Law_Function): void
Set the blending functions.
Parameters (2)f1f2
Computes the value on the algorithmic patch at parameters U and V.
Parameters (2)UV
Computes the d/dU partial derivative on the algorithmic patch at parameters U and V.
Parameters (2)UV
Computes the d/dV partial derivative on the algorithmic patch at parameters U and V.
Parameters (2)UV
Computes the d2/dUdV partial derivative on the algorithmic patch made with linear blending functions at parameter U and V.
Parameters (2)UV
- Parameters (1)
I
- Bound(I: number): GeomFill_BoundaryParameters (1)
I
GeomFill_CornerState
Class (should be a structure) storing the information about continuity, normals parallelism, coons conditions and bounds tangents angle on the corner of contour to be filled.
Constructors(1)
Instance methods(10)
- Gap(): number
- Gap(G: number): voidParameters (1)
G
- TgtAng(): number
- TgtAng(Ang: number): voidParameters (1)
Ang
- HasConstraint(): boolean
- Constraint(): void
- NorAng(): number
- NorAng(Ang: number): voidParameters (1)
Ang
- IsToKill(Scal: number): { returnValue: boolean; Scal: number }Parameters (1)
Scal
- DoKill(Scal: number): voidParameters (1)
Scal
GeomFill_CorrectedFrenet
Defined an Corrected Frenet Trihedron Law It is like Frenet with an Torsion's minimization.
Constructors(2)
- constructor(ForEvaluation: boolean): GeomFill_CorrectedFrenetParameters (1)
ForEvaluation
Static methods(2)
- get_type_name(): string
Instance methods(13)
- SetCurve(C: Adaptor3d_Curve): boolean
initialize curve of frenet law
Parameters (1)C
Returnstrue in case if execution end correctly
- SetInterval(First: number, Last: number): void
Sets the bounds of the parametric interval on the function This determines the derivatives in these values if the function is not Cn.
Parameters (2)FirstLast
compute Triedrhon on curve at parameter
Parameters (4)ParamTangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.
- D1(Param: number, Tangent: gp_Vec, DTangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec): boolean
compute Triedrhon and derivative Trihedron on curve at parameter Warning : It used only for C1 or C2 approximation
Parameters (7)ParamTangent—Mutated in place; read the updated value from this argument after the call.DTangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.DNormal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.DBiNormal—Mutated in place; read the updated value from this argument after the call.
- D2(Param: number, Tangent: gp_Vec, DTangent: gp_Vec, D2Tangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, D2Normal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec, D2BiNormal: gp_Vec): boolean
compute Trihedron on curve first and second derivatives. Warning : It used only for C2 approximation
Parameters (10)ParamTangent—Mutated in place; read the updated value from this argument after the call.DTangent—Mutated in place; read the updated value from this argument after the call.D2Tangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.DNormal—Mutated in place; read the updated value from this argument after the call.D2Normal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.DBiNormal—Mutated in place; read the updated value from this argument after the call.D2BiNormal—Mutated in place; read the updated value from this argument after the call.
- 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
Tries to define the best trihedron mode for the curve. It can be:
- Frenet
- CorrectedFrenet
- DiscreteTrihedron Warning: the CorrectedFrenet must be constructed with option ForEvaluation = True, the curve must be set by method SetCurve.
- GetAverageLaw(ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec): void
Get average value of Tangent(t) and Normal(t) it is useful to make fast approximation of rational surfaces.
Parameters (3)ATangent—Mutated in place; read the updated value from this argument after the call.ANormal—Mutated in place; read the updated value from this argument after the call.ABiNormal—Mutated in place; read the updated value from this argument after the call.
- IsConstant(): boolean
Say if the law is Constant.
- IsOnlyBy3dCurve(): boolean
Return True.
GeomFill_CurveAndTrihedron
Define location law with an TrihedronLaw and an curve Definition Location is: transformed section coordinates in (Curve(v)), (Normal(v), BiNormal(v), Tangente(v))) systems are the same like section shape coordinates in (O,(OX, OY, OZ)) system.
Constructors(1)
- constructor(Trihedron: GeomFill_TrihedronLaw): GeomFill_CurveAndTrihedronParameters (1)
Trihedron
Static methods(2)
- get_type_name(): string
Instance methods(19)
- SetCurve(C: Adaptor3d_Curve): boolean
initialize curve of trihedron law
Parameters (1)C
Returnstrue in case if execution end correctly
Set a transformation Matrix like the law M(t) become Mat * M(t).
Parameters (1)Transfo
compute Location and 2d points
Parameters (3)ParamM—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.
- D0(Param: number, M: gp_Mat, V: gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d): boolean
compute Location and 2d points
Parameters (4)ParamM—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.Poles2d—Mutated in place; read the updated value from this argument after the call.
- D1(Param: number, M: gp_Mat, V: gp_Vec, DM: gp_Mat, DV: gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d): boolean
compute location 2d points and associated first derivatives. Warning : It used only for C1 or C2 approximation
Parameters (7)ParamM—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.DM—Mutated in place; read the updated value from this argument after the call.DV—Mutated in place; read the updated value from this argument after the call.Poles2d—Mutated in place; read the updated value from this argument after the call.DPoles2d—Mutated in place; read the updated value from this argument after the call.
- D2(Param: number, M: gp_Mat, V: gp_Vec, DM: gp_Mat, DV: gp_Vec, D2M: gp_Mat, D2V: gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d, D2Poles2d: NCollection_Array1_gp_Vec2d): boolean
compute location 2d points and associated first and second derivatives. Warning : It used only for C2 approximation
Parameters (10)ParamM—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.DM—Mutated in place; read the updated value from this argument after the call.DV—Mutated in place; read the updated value from this argument after the call.D2M—Mutated in place; read the updated value from this argument after the call.D2V—Mutated in place; read the updated value from this argument after the call.Poles2d—Mutated in place; read the updated value from this argument after the call.DPoles2d—Mutated in place; read the updated value from this argument after the call.D2Poles2d—Mutated in place; read the updated value from this argument after the call.
- 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
- SetInterval(First: number, Last: number): void
Sets the bounds of the parametric interval on the function This determines the derivatives in these values if the function is not Cn.
Parameters (2)FirstLast
- GetInterval(First: number, Last: number): { First: number; Last: number }
Gets the bounds of the parametric interval on the function.
Parameters (2)FirstLast
ReturnsA result object with fields:
First: updated value from the call.Last: updated value from the call.
- GetDomain(First: number, Last: number): { First: number; Last: number }
Gets the bounds of the function parametric domain. Warning: This domain it is not modified by the SetValue method.
Parameters (2)FirstLast
ReturnsA result object with fields:
First: updated value from the call.Last: updated value from the call.
- GetMaximalNorm(): number
Get the maximum Norm of the matrix-location part. It is usful to find a good Tolerance to approx M(t).
- GetAverageLaw(AM: gp_Mat, AV: gp_Vec): void
Get average value of M(t) and V(t) it is useful to make fast approximation of rational surfaces.
Parameters (2)AM—Mutated in place; read the updated value from this argument after the call.AV—Mutated in place; read the updated value from this argument after the call.
- IsTranslation(Error: number): { returnValue: boolean; Error: number }
Say if the Location
Law, is an translation of Location The default implementation is " returns False ".Parameters (1)Error
ReturnsA result object with fields:
returnValue: the C++ return valueError: updated value from the call.
- IsRotation(Error: number): { returnValue: boolean; Error: number }
Say if the Location
Law, is a rotation of Location The default implementation is " returns False ".Parameters (1)Error
ReturnsA result object with fields:
returnValue: the C++ return valueError: updated value from the call.
- Parameters (1)
Center
GeomFill_Curved
Constructors(5)
- Parameters (2)
P1P2
- constructor(P1: NCollection_Array1_gp_Pnt, P2: NCollection_Array1_gp_Pnt, P3: NCollection_Array1_gp_Pnt, P4: NCollection_Array1_gp_Pnt): GeomFill_CurvedParameters (4)
P1P2P3P4
- constructor(P1: NCollection_Array1_gp_Pnt, P2: NCollection_Array1_gp_Pnt, W1: NCollection_Array1_double, W2: NCollection_Array1_double): GeomFill_CurvedParameters (4)
P1P2W1W2
- constructor(P1: NCollection_Array1_gp_Pnt, P2: NCollection_Array1_gp_Pnt, P3: NCollection_Array1_gp_Pnt, P4: NCollection_Array1_gp_Pnt, W1: NCollection_Array1_double, W2: NCollection_Array1_double, W3: NCollection_Array1_double, W4: NCollection_Array1_double): GeomFill_CurvedParameters (8)
P1P2P3P4W1W2W3W4
Instance methods(4)
- Init(P1: NCollection_Array1_gp_Pnt, P2: NCollection_Array1_gp_Pnt): voidParameters (2)
P1P2
- Init(P1: NCollection_Array1_gp_Pnt, P2: NCollection_Array1_gp_Pnt, P3: NCollection_Array1_gp_Pnt, P4: NCollection_Array1_gp_Pnt): voidParameters (4)
P1P2P3P4
- Init(P1: NCollection_Array1_gp_Pnt, P2: NCollection_Array1_gp_Pnt, W1: NCollection_Array1_double, W2: NCollection_Array1_double): voidParameters (4)
P1P2W1W2
- Init(P1: NCollection_Array1_gp_Pnt, P2: NCollection_Array1_gp_Pnt, P3: NCollection_Array1_gp_Pnt, P4: NCollection_Array1_gp_Pnt, W1: NCollection_Array1_double, W2: NCollection_Array1_double, W3: NCollection_Array1_double, W4: NCollection_Array1_double): voidParameters (8)
P1P2P3P4W1W2W3W4
GeomFill_Darboux
Defines Darboux case of Frenet Trihedron Law.
Constructors(1)
Static methods(2)
- get_type_name(): string
Instance methods(10)
compute Triedrhon on curve at parameter
Parameters (4)ParamTangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.
- D1(Param: number, Tangent: gp_Vec, DTangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec): boolean
compute Triedrhon and derivative Trihedron on curve at parameter Warning : It used only for C1 or C2 approximation
Parameters (7)ParamTangent—Mutated in place; read the updated value from this argument after the call.DTangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.DNormal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.DBiNormal—Mutated in place; read the updated value from this argument after the call.
- D2(Param: number, Tangent: gp_Vec, DTangent: gp_Vec, D2Tangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, D2Normal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec, D2BiNormal: gp_Vec): boolean
compute Trihedron on curve first and second derivatives. Warning : It used only for C2 approximation
Parameters (10)ParamTangent—Mutated in place; read the updated value from this argument after the call.DTangent—Mutated in place; read the updated value from this argument after the call.D2Tangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.DNormal—Mutated in place; read the updated value from this argument after the call.D2Normal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.DBiNormal—Mutated in place; read the updated value from this argument after the call.D2BiNormal—Mutated in place; read the updated value from this argument after the call.
- 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
- GetAverageLaw(ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec): void
Get average value of Tangent(t) and Normal(t) it is useful to make fast approximation of rational surfaces.
Parameters (3)ATangent—Mutated in place; read the updated value from this argument after the call.ANormal—Mutated in place; read the updated value from this argument after the call.ABiNormal—Mutated in place; read the updated value from this argument after the call.
- IsConstant(): boolean
Say if the law is Constant.
- IsOnlyBy3dCurve(): boolean
Return False.
GeomFill_DegeneratedBound
Description of a degenerated boundary (a point). Class defining a degenerated boundary for a constrained filling with a point and no other constraint. Only used to simulate an ordinary bound, may not be useful and desapear soon.
Constructors(1)
- constructor(Point: gp_Pnt, First: number, Last: number, Tol3d: number, Tolang: number): GeomFill_DegeneratedBoundParameters (5)
PointFirstLastTol3dTolang
Static methods(2)
- get_type_name(): string
Instance methods(6)
- Parameters (1)
U
- Parameters (3)
UPV
- Reparametrize(First: number, Last: number, HasDF: boolean, HasDL: boolean, DF: number, DL: number, Rev: boolean): voidParameters (7)
FirstLastHasDFHasDLDFDLRev
- Bounds(First: number, Last: number): { First: number; Last: number }Parameters (2)
FirstLast
- IsDegenerated(): boolean
GeomFill_DiscreteTrihedron
Defined Discrete Trihedron Law. The requirement for path curve is only G1. The result is C0-continuous surface that can be later approximated to C1.
Constructors(1)
Static methods(2)
- get_type_name(): string
Instance methods(12)
- Init(): void
- SetCurve(C: Adaptor3d_Curve): boolean
initialize curve of trihedron law
Parameters (1)C
Returnstrue in case if execution end correctly
compute Trihedron on curve at parameter
Parameters (4)ParamTangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.
- D1(Param: number, Tangent: gp_Vec, DTangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec): boolean
compute Trihedron and derivative Trihedron on curve at parameter Warning : It used only for C1 or C2 approximation For the moment it returns null values for DTangent, DNormal and DBiNormal.
Parameters (7)ParamTangent—Mutated in place; read the updated value from this argument after the call.DTangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.DNormal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.DBiNormal—Mutated in place; read the updated value from this argument after the call.
- D2(Param: number, Tangent: gp_Vec, DTangent: gp_Vec, D2Tangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, D2Normal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec, D2BiNormal: gp_Vec): boolean
compute Trihedron on curve first and second derivatives. Warning : It used only for C2 approximation For the moment it returns null values for DTangent, DNormal DBiNormal, D2Tangent, D2Normal, D2BiNormal.
Parameters (10)ParamTangent—Mutated in place; read the updated value from this argument after the call.DTangent—Mutated in place; read the updated value from this argument after the call.D2Tangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.DNormal—Mutated in place; read the updated value from this argument after the call.D2Normal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.DBiNormal—Mutated in place; read the updated value from this argument after the call.D2BiNormal—Mutated in place; read the updated value from this argument after the call.
- 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
- GetAverageLaw(ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec): void
Get average value of Tangent(t) and Normal(t) it is usful to make fast approximation of rational surfaces.
Parameters (3)ATangent—Mutated in place; read the updated value from this argument after the call.ANormal—Mutated in place; read the updated value from this argument after the call.ABiNormal—Mutated in place; read the updated value from this argument after the call.
- IsConstant(): boolean
Say if the law is Constant.
- IsOnlyBy3dCurve(): boolean
Return True.
GeomFill_DraftTrihedron
Constructors(1)
- constructor(BiNormal: gp_Vec, Angle: number): GeomFill_DraftTrihedronParameters (2)
BiNormalAngle
Static methods(2)
- get_type_name(): string
Instance methods(11)
- SetAngle(Angle: number): voidParameters (1)
Angle
compute Triedrhon and derivative Trihedron on curve at parameter Warning: It used only for C1 or C2 approximation
Parameters (4)ParamTangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.
- D1(Param: number, Tangent: gp_Vec, DTangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec): boolean
compute Trihedron on curve first and second derivatives. Warning: It used only for C2 approximation
Parameters (7)ParamTangent—Mutated in place; read the updated value from this argument after the call.DTangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.DNormal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.DBiNormal—Mutated in place; read the updated value from this argument after the call.
- D2(Param: number, Tangent: gp_Vec, DTangent: gp_Vec, D2Tangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, D2Normal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec, D2BiNormal: gp_Vec): boolean
compute Trihedron on curve first and second derivatives. Warning : It used only for C2 approximation
Parameters (10)ParamTangent—Mutated in place; read the updated value from this argument after the call.DTangent—Mutated in place; read the updated value from this argument after the call.D2Tangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.DNormal—Mutated in place; read the updated value from this argument after the call.D2Normal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.DBiNormal—Mutated in place; read the updated value from this argument after the call.D2BiNormal—Mutated in place; read the updated value from this argument after the call.
- 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
- GetAverageLaw(ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec): void
Get average value of Tangent(t) and Normal(t) it is useful to make fast approximation of rational surfaces.
Parameters (3)ATangent—Mutated in place; read the updated value from this argument after the call.ANormal—Mutated in place; read the updated value from this argument after the call.ABiNormal—Mutated in place; read the updated value from this argument after the call.
- IsConstant(): boolean
Say if the law is Constant.
- IsOnlyBy3dCurve(): boolean
Return True.
GeomFill_EvolvedSection
Define an Constant Section Law.
Constructors(1)
Make an SectionLaw with a Curve and a real
Law.Parameters (2)CL
Static methods(2)
- get_type_name(): string
Instance methods(22)
- D0(Param: number, Poles: NCollection_Array1_gp_Pnt, Weigths: NCollection_Array1_double): boolean
compute the section for v = param
Parameters (3)ParamPoles—Mutated in place; read the updated value from this argument after the call.Weigths—Mutated in place; read the updated value from this argument after the call.
- D1(Param: number, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double): boolean
compute the first derivative in v direction of the section for v = param Warning : It used only for C1 or C2 approximation
Parameters (5)ParamPoles—Mutated in place; read the updated value from this argument after the call.DPoles—Mutated in place; read the updated value from this argument after the call.Weigths—Mutated in place; read the updated value from this argument after the call.DWeigths—Mutated in place; read the updated value from this argument after the call.
- D2(Param: number, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, D2Poles: NCollection_Array1_gp_Vec, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double, D2Weigths: NCollection_Array1_double): boolean
compute the second derivative in v direction of the section for v = param Warning : It used only for C2 approximation
Parameters (7)ParamPoles—Mutated in place; read the updated value from this argument after the call.DPoles—Mutated in place; read the updated value from this argument after the call.D2Poles—Mutated in place; read the updated value from this argument after the call.Weigths—Mutated in place; read the updated value from this argument after the call.DWeigths—Mutated in place; read the updated value from this argument after the call.D2Weigths—Mutated in place; read the updated value from this argument after the call.
give if possible an bspline Surface, like iso-v are the section. If it is not possible this methode have to get an Null Surface. Is it the default implementation.
- SectionShape(NbPoles: number, NbKnots: number, Degree: number): { NbPoles: number; NbKnots: number; Degree: number }
get the format of an section
Parameters (3)NbPolesNbKnotsDegree
ReturnsA result object with fields:
NbPoles: updated value from the call.NbKnots: updated value from the call.Degree: updated value from the call.
- Knots(TKnots: NCollection_Array1_double): void
get the Knots of the section
Parameters (1)TKnots—Mutated in place; read the updated value from this argument after the call.
- Mults(TMults: NCollection_Array1_int): void
get the Multplicities of the section
Parameters (1)TMults—Mutated in place; read the updated value from this argument after the call.
- IsRational(): boolean
Returns if the sections are rational or not.
- IsUPeriodic(): boolean
Returns if the sections are periodic or not.
- IsVPeriodic(): boolean
Returns if the law isperiodic or not.
- 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
- SetInterval(First: number, Last: number): void
Sets the bounds of the parametric interval on the function This determines the derivatives in these values if the function is not Cn.
Parameters (2)FirstLast
- GetInterval(First: number, Last: number): { First: number; Last: number }
Gets the bounds of the parametric interval on the function.
Parameters (2)FirstLast
ReturnsA result object with fields:
First: updated value from the call.Last: updated value from the call.
- GetDomain(First: number, Last: number): { First: number; Last: number }
Gets the bounds of the function parametric domain. Warning: This domain it is not modified by the SetValue method.
Parameters (2)FirstLast
ReturnsA result object with fields:
First: updated value from the call.Last: updated value from the call.
- GetTolerance(BoundTol: number, SurfTol: number, AngleTol: number, Tol3d: NCollection_Array1_double): void
Returns the tolerances associated at each poles to reach in approximation, to satisfy: BoundTol error at the Boundary AngleTol tangent error at the Boundary (in radian) SurfTol error inside the surface.
Parameters (4)BoundTolSurfTolAngleTolTol3d—Mutated in place; read the updated value from this argument after the call.
Get the barycentre of Surface. An very poor estimation is sufficient. This information is useful to perform well conditioned rational approximation. Warning: Used only if <me> IsRational.
- MaximalSection(): number
Returns the length of the greater section. This information is useful to G1's control. Warning: With an little value, approximation can be slower.
- GetMinimalWeight(Weigths: NCollection_Array1_double): void
Compute the minimal value of weight for each poles in all sections. This information is useful to control error in rational approximation. Warning: Used only if <me> IsRational.
Parameters (1)Weigths—Mutated in place; read the updated value from this argument after the call.
- IsConstant(Error: number): { returnValue: boolean; Error: number }
return True If the
LawisConstantParameters (1)Error
ReturnsA result object with fields:
returnValue: the C++ return valueError: updated value from the call.
Return the constant Section if <me> IsConstant.
GeomFill_Filling
Root class for Filling;.
Constructors(1)
Instance methods(5)
- NbUPoles(): number
- NbVPoles(): number
- Poles(Poles: NCollection_Array2_gp_Pnt): voidParameters (1)
Poles
- isRational(): boolean
- Weights(Weights: NCollection_Array2_double): voidParameters (1)
Weights
GeomFill_FillingStyle
Properties(3)
GeomFill_Fixed
Defined an constant TrihedronLaw.
Constructors(1)
- constructor(Tangent: gp_Vec, Normal: gp_Vec): GeomFill_FixedParameters (2)
TangentNormal
Static methods(2)
- get_type_name(): string
Instance methods(9)
compute Triedrhon on curve at parameter
Parameters (4)ParamTangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.
- D1(Param: number, Tangent: gp_Vec, DTangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec): boolean
compute Triedrhon and derivative Trihedron on curve at parameter Warning : It used only for C1 or C2 approximation
Parameters (7)ParamTangent—Mutated in place; read the updated value from this argument after the call.DTangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.DNormal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.DBiNormal—Mutated in place; read the updated value from this argument after the call.
- D2(Param: number, Tangent: gp_Vec, DTangent: gp_Vec, D2Tangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, D2Normal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec, D2BiNormal: gp_Vec): boolean
compute Trihedron on curve first and second derivatives. Warning : It used only for C2 approximation
Parameters (10)ParamTangent—Mutated in place; read the updated value from this argument after the call.DTangent—Mutated in place; read the updated value from this argument after the call.D2Tangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.DNormal—Mutated in place; read the updated value from this argument after the call.D2Normal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.DBiNormal—Mutated in place; read the updated value from this argument after the call.D2BiNormal—Mutated in place; read the updated value from this argument after the call.
- 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
- GetAverageLaw(ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec): void
Get average value of Tangent(t) and Normal(t) it is useful to make fast approximation of rational surfaces.
Parameters (3)ATangent—Mutated in place; read the updated value from this argument after the call.ANormal—Mutated in place; read the updated value from this argument after the call.ABiNormal—Mutated in place; read the updated value from this argument after the call.
- IsConstant(): boolean
Return True.
GeomFill_Frenet
Defined Frenet Trihedron Law.
Constructors(1)
Static methods(2)
- get_type_name(): string
Instance methods(12)
- Init(): void
- SetCurve(C: Adaptor3d_Curve): boolean
initialize curve of frenet law
Parameters (1)C
Returnstrue
compute Triedrhon on curve at parameter
Parameters (4)ParamTangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.
- D1(Param: number, Tangent: gp_Vec, DTangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec): boolean
compute Triedrhon and derivative Trihedron on curve at parameter Warning: It used only for C1 or C2 approximation
Parameters (7)ParamTangent—Mutated in place; read the updated value from this argument after the call.DTangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.DNormal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.DBiNormal—Mutated in place; read the updated value from this argument after the call.
- D2(Param: number, Tangent: gp_Vec, DTangent: gp_Vec, D2Tangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, D2Normal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec, D2BiNormal: gp_Vec): boolean
compute Trihedron on curve first and second derivatives. Warning: It used only for C2 approximation
Parameters (10)ParamTangent—Mutated in place; read the updated value from this argument after the call.DTangent—Mutated in place; read the updated value from this argument after the call.D2Tangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.DNormal—Mutated in place; read the updated value from this argument after the call.D2Normal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.DBiNormal—Mutated in place; read the updated value from this argument after the call.D2BiNormal—Mutated in place; read the updated value from this argument after the call.
- 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
- GetAverageLaw(ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec): void
Get average value of Tangent(t) and Normal(t) it is useful to make fast approximation of rational surfaces.
Parameters (3)ATangent—Mutated in place; read the updated value from this argument after the call.ANormal—Mutated in place; read the updated value from this argument after the call.ABiNormal—Mutated in place; read the updated value from this argument after the call.
- IsConstant(): boolean
Say if the law is Constant.
- IsOnlyBy3dCurve(): boolean
Return True.
GeomFill_FunctionDraft
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
- DerivT(C: Adaptor3d_Curve, Param: number, W: number, dN: gp_Vec, teta: number, F: math_Vector): boolean
returns the values <F> of the T derivatives for the parameter Param.
Parameters (6)CParamWdNtetaF
- Deriv2T(C: Adaptor3d_Curve, Param: number, W: number, d2N: gp_Vec, teta: number, F: math_Vector): boolean
returns the values <F> of the T2 derivatives for the parameter Param.
Parameters (6)CParamWd2NtetaF
- DerivTX(dN: gp_Vec, teta: number, D: math_Matrix): boolean
returns the values <D> of the TX derivatives for the parameter Param.
Parameters (3)dNtetaD
- Deriv2X(X: math_Vector, T: GeomFill_Tensor): boolean
returns the values <T> of the X2 derivatives for the parameter Param.
Parameters (2)XT
GeomFill_FunctionGuide
Constructors(1)
- constructor(S: GeomFill_SectionLaw, Guide: Adaptor3d_Curve, ParamOnLaw?: number): GeomFill_FunctionGuideParameters (3)
SGuideParamOnLaw
Instance methods(7)
- Parameters (4)
ParamCentreDirXDir
- 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
returns the values <F> of the T derivatives for the parameter Param .
Parameters (4)XDCentreDDirDFDT
GeomFill_Generator
Create a surface using generating lines. Inherits profiler. The surface will be a BSplineSurface passing by all the curves described in the generator. The VDegree of the resulting surface is 1.
Constructors(1)
Instance methods(2)
- Perform(PTol: number): void
Converts all curves to BSplineCurves. Set them to the common profile. Compute the surface (degv = 1). <PTol> is used to compare 2 knots.
Parameters (1)PTol
GeomFill_Gordon
High-level Gordon surface construction from arbitrary curve networks.
A Gordon surface (transfinite interpolation) constructs a smooth B-spline surface from a network of intersecting profile (V) and guide (U) curves using the Boolean sum formula: S = S_profiles + S_guides - S_tensor
This generalizes the existing GeomFill_Coons (4-boundary patch) to N x M curve networks.
This class accepts arbitrary Geom_Curve inputs, handles conversion to BSpline, intersection detection, network sorting, curve reparametrization for compatibility, then delegates to GeomFill_GordonBuilder for the core mathematical construction.
Usage:
Limitations:
- Non-rational curves only
Constructors(1)
Creates an empty Gordon surface algorithm.
Instance methods(6)
- Init(theProfiles: NCollection_Array1_handle_Geom_Curve, theGuides: NCollection_Array1_handle_Geom_Curve, theTolerance: number): void
Initializes the algorithm with profile and guide curves.
Parameters (3)theProfiles—array of profile curves (V-direction sections, must be >= 2)theGuides—array of guide curves (U-direction sections, must be >= 2)theTolerance—geometric tolerance for intersection detection
- Perform(): void
Performs the Gordon surface construction.
- SetParallelMode(theToUseParallel: boolean): void
Enables/disables parallel processing in internal stages. By default, single-thread mode is used.
Parameters (1)theToUseParallel
- IsParallelMode(): boolean
Returns true if internal parallel processing is enabled.
- IsDone(): boolean
Returns true if the surface was successfully constructed.
Returns the resulting Gordon B-spline surface.
GeomFill_GordonBuilder
Core mathematical kernel for Gordon surface construction via the Boolean sum method.
Accepts pre-compatible BSpline curves (same degree and knot vector within each direction) and intersection parameters. Builds three intermediate surfaces (skin profiles, skin guides, tensor product) then computes the Boolean sum: S_gordon = S_profiles + S_guides - S_tensor
This class can be used independently when curves are already compatible, or via GeomFill_Gordon which handles curve preparation.
Supports closed (periodic) curve networks when the first and last curves in a direction are geometrically identical. The closedness flags enable C2-continuous periodic interpolation during skinning.
Limitations:
- Non-rational curves only
Constructors(1)
Creates an empty Gordon builder.
Instance methods(9)
- Init(theProfiles: NCollection_Array1_handle_Geom_BSplineCurve, theGuides: NCollection_Array1_handle_Geom_BSplineCurve, theProfileParams: NCollection_Array1_double, theGuideParams: NCollection_Array1_double, theTolerance: number, theIsUClosed?: boolean, theIsVClosed?: boolean): void
Initializes the builder with compatible BSpline curves and intersection parameters.
Parameters (7)theProfiles—array of profile curves (V-direction sections), must share the same degree and knot vectortheGuides—array of guide curves (U-direction sections), must share the same degree and knot vectortheProfileParams—parameter values at which profiles are positioned (in V-direction), size must equal theProfiles.Length()theGuideParams—parameter values at which guides are positioned (in U-direction), size must equal theGuides.Length()theTolerance—geometric tolerance for validationtheIsUClosed—if true, the U-direction (guides) forms a closed looptheIsVClosed—if true, the V-direction (profiles) forms a closed loop
- Perform(): void
Performs the Gordon surface construction.
- SetParallelMode(theToUseParallel: boolean): void
Enables/disables parallel processing in internal stages. By default, single-thread mode is used.
Parameters (1)theToUseParallel
- IsParallelMode(): boolean
Returns true if internal parallel processing is enabled.
- IsDone(): boolean
Returns true if the surface was successfully constructed.
Returns the resulting Gordon surface.
Returnshandle to the constructed B-spline surface
Returns the intermediate surface skinned through profiles.
Returns the intermediate surface skinned through guides.
Returns the intermediate tensor product surface.
GeomFill_GuideTrihedronAC
Trihedron in the case of a sweeping along a guide curve. defined by curviline absciss.
Constructors(1)
- Parameters (1)
guide
Static methods(2)
- get_type_name(): string
Instance methods(14)
- SetCurve(C: Adaptor3d_Curve): boolean
initialize curve of trihedron law
Parameters (1)C
Returnstrue
compute Triedrhon on curve at parameter
Parameters (4)ParamTangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.
- D1(Param: number, Tangent: gp_Vec, DTangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec): boolean
compute Triedrhon and derivative Trihedron on curve at parameter Warning : It used only for C1 or C2 approximation
Parameters (7)ParamTangent—Mutated in place; read the updated value from this argument after the call.DTangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.DNormal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.DBiNormal—Mutated in place; read the updated value from this argument after the call.
- D2(Param: number, Tangent: gp_Vec, DTangent: gp_Vec, D2Tangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, D2Normal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec, D2BiNormal: gp_Vec): boolean
compute Trihedron on curve first and second derivatives. Warning : It used only for C2 approximation
Parameters (10)ParamTangent—Mutated in place; read the updated value from this argument after the call.DTangent—Mutated in place; read the updated value from this argument after the call.D2Tangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.DNormal—Mutated in place; read the updated value from this argument after the call.D2Normal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.DBiNormal—Mutated in place; read the updated value from this argument after the call.D2BiNormal—Mutated in place; read the updated value from this argument after the call.
- 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
- SetInterval(First: number, Last: number): void
Sets the bounds of the parametric interval on the function This determines the derivatives in these values if the function is not Cn.
Parameters (2)FirstLast
- GetAverageLaw(ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec): void
Get average value of M(t) and V(t) it is useful to make fast approximation of rational surfaces.
Parameters (3)ATangent—Mutated in place; read the updated value from this argument after the call.ANormal—Mutated in place; read the updated value from this argument after the call.ABiNormal—Mutated in place; read the updated value from this argument after the call.
- IsConstant(): boolean
Say if the law is Constant.
- IsOnlyBy3dCurve(): boolean
Say if the law is defined, only by the 3d Geometry of the set Curve Return False by Default.
- Origine(Param1: number, Param2: number): voidParameters (2)
Param1Param2
GeomFill_GuideTrihedronPlan
Trihedron in the case of sweeping along a guide curve defined by the orthogonal plan on the trajectory.
Constructors(1)
- constructor(theGuide: Adaptor3d_Curve): GeomFill_GuideTrihedronPlanParameters (1)
theGuide
Static methods(2)
- get_type_name(): string
Instance methods(15)
- SetCurve(C: Adaptor3d_Curve): boolean
initialize curve of trihedron law
Parameters (1)C
Returnstrue in case if execution end correctly
Give a status to the
LawReturns PipeOk (default implementation).compute Triedrhon on curve at parameter
Parameters (4)ParamTangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.
- D1(Param: number, Tangent: gp_Vec, DTangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec): boolean
compute Triedrhon and derivative Trihedron on curve at parameter Warning : It used only for C1 or C2 approximation
Parameters (7)ParamTangent—Mutated in place; read the updated value from this argument after the call.DTangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.DNormal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.DBiNormal—Mutated in place; read the updated value from this argument after the call.
- D2(Param: number, Tangent: gp_Vec, DTangent: gp_Vec, D2Tangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, D2Normal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec, D2BiNormal: gp_Vec): boolean
compute Trihedron on curve first and second derivatives. Warning : It used only for C2 approximation
Parameters (10)ParamTangent—Mutated in place; read the updated value from this argument after the call.DTangent—Mutated in place; read the updated value from this argument after the call.D2Tangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.DNormal—Mutated in place; read the updated value from this argument after the call.D2Normal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.DBiNormal—Mutated in place; read the updated value from this argument after the call.D2BiNormal—Mutated in place; read the updated value from this argument after the call.
- SetInterval(First: number, Last: number): void
Sets the bounds of the parametric interval on the function This determines the derivatives in these values if the function is not Cn.
Parameters (2)FirstLast
- 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
- GetAverageLaw(ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec): void
Get average value of M(t) and V(t) it is useful to make fast approximation of rational surfaces.
Parameters (3)ATangent—Mutated in place; read the updated value from this argument after the call.ANormal—Mutated in place; read the updated value from this argument after the call.ABiNormal—Mutated in place; read the updated value from this argument after the call.
- IsConstant(): boolean
Say if the law is Constant.
- IsOnlyBy3dCurve(): boolean
Say if the law is defined, only by the 3d Geometry of the set Curve Return False by Default.
- Origine(Param1: number, Param2: number): voidParameters (2)
Param1Param2
GeomFill_Line
class for instantiation of AppBlend
Constructors(2)
- constructor(NbPoints: number): GeomFill_LineParameters (1)
NbPoints
Static methods(2)
- get_type_name(): string
Instance methods(3)
GeomFill_LocationDraft
Constructors(1)
- constructor(Direction: gp_Dir, Angle: number): GeomFill_LocationDraftParameters (2)
DirectionAngle
Static methods(2)
- get_type_name(): string
Instance methods(27)
- SetStopSurf(Surf: Adaptor3d_Surface): voidParameters (1)
Surf
- SetAngle(Angle: number): voidParameters (1)
Angle
- SetCurve(C: Adaptor3d_Curve): boolean
calculation of poles on locking surfaces (the intersection between the generatrixand the surface at the cross - section points myNbPts)
Parameters (1)C
Returnstrue in case if execution end correctly
Set a transformation Matrix like the law M(t) become Mat * M(t).
Parameters (1)Transfo
compute Location
Parameters (3)ParamM—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.
- D0(Param: number, M: gp_Mat, V: gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d): boolean
compute Location and 2d points
Parameters (4)ParamM—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.Poles2d—Mutated in place; read the updated value from this argument after the call.
- D1(Param: number, M: gp_Mat, V: gp_Vec, DM: gp_Mat, DV: gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d): boolean
compute location 2d points and associated first derivatives. Warning : It used only for C1 or C2 approximation
Parameters (7)ParamM—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.DM—Mutated in place; read the updated value from this argument after the call.DV—Mutated in place; read the updated value from this argument after the call.Poles2d—Mutated in place; read the updated value from this argument after the call.DPoles2d—Mutated in place; read the updated value from this argument after the call.
- D2(Param: number, M: gp_Mat, V: gp_Vec, DM: gp_Mat, DV: gp_Vec, D2M: gp_Mat, D2V: gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d, D2Poles2d: NCollection_Array1_gp_Vec2d): boolean
compute location 2d points and associated first and second derivatives. Warning : It used only for C2 approximation
Parameters (10)ParamM—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.DM—Mutated in place; read the updated value from this argument after the call.DV—Mutated in place; read the updated value from this argument after the call.D2M—Mutated in place; read the updated value from this argument after the call.D2V—Mutated in place; read the updated value from this argument after the call.Poles2d—Mutated in place; read the updated value from this argument after the call.DPoles2d—Mutated in place; read the updated value from this argument after the call.D2Poles2d—Mutated in place; read the updated value from this argument after the call.
- HasFirstRestriction(): boolean
Say if the first restriction is defined in this class. If it is true the first element of poles array in D0,D1,D2... Correspond to this restriction. Returns false (default implementation).
- HasLastRestriction(): boolean
Say if the last restriction is defined in this class. If it is true the last element of poles array in D0,D1,D2... Correspond to this restriction. Returns false (default implementation).
- TraceNumber(): number
Give the number of trace (Curves 2d which are not restriction) Returns 1 (default implementation).
- NbIntervals(S: GeomAbs_Shape): number
Returnsthe 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
- SetInterval(First: number, Last: number): void
Sets the bounds of the parametric interval on the function This determines the derivatives in these values if the function is not Cn.
Parameters (2)FirstLast
- GetInterval(First: number, Last: number): { First: number; Last: number }
Gets the bounds of the parametric interval on the function.
Parameters (2)FirstLast
ReturnsA result object with fields:
First: updated value from the call.Last: updated value from the call.
- GetDomain(First: number, Last: number): { First: number; Last: number }
Gets the bounds of the function parametric domain. Warning: This domain it is not modified by the SetValue method.
Parameters (2)FirstLast
ReturnsA result object with fields:
First: updated value from the call.Last: updated value from the call.
- Resolution(Index: number, Tol: number, TolU: number, TolV: number): { TolU: number; TolV: number }
Returns the resolutions in the sub-space 2d <Index> This information is useful to find a good tolerance in 2d approximation. Warning: Used only if Nb2dCurve > 0.
Parameters (4)IndexTolTolUTolV
ReturnsA result object with fields:
TolU: updated value from the call.TolV: updated value from the call.
- GetMaximalNorm(): number
Get the maximum Norm of the matrix-location part. It is usful to find a good Tolerance to approx M(t).
- GetAverageLaw(AM: gp_Mat, AV: gp_Vec): void
Get average value of M(t) and V(t) it is useful to make fast approximation of rational surfaces.
Parameters (2)AM—Mutated in place; read the updated value from this argument after the call.AV—Mutated in place; read the updated value from this argument after the call.
- IsTranslation(Error: number): { returnValue: boolean; Error: number }
Say if the Location
Law, is an translation of Location The default implementation is " returns False ".Parameters (1)Error
ReturnsA result object with fields:
returnValue: the C++ return valueError: updated value from the call.
- IsRotation(Error: number): { returnValue: boolean; Error: number }
Say if the Location
Law, is a rotation of Location The default implementation is " returns False ".Parameters (1)Error
ReturnsA result object with fields:
returnValue: the C++ return valueError: updated value from the call.
- Parameters (1)
Center
- IsIntersec(): boolean
Say if the generatrice interset the surface.
GeomFill_LocationGuide
Constructors(1)
- Parameters (1)
Triedre
Static methods(2)
- get_type_name(): string
Instance methods(31)
- Set(Section: GeomFill_SectionLaw, rotat: boolean, SFirst: number, SLast: number, PrecAngle: number, LastAngle: number): { LastAngle: number }Parameters (6)
SectionrotatSFirstSLastPrecAngleLastAngle
- EraseRotation(): void
- SetCurve(C: Adaptor3d_Curve): boolean
calculating poles on a surface (courbe guide / the surface of rotation in points myNbPts)
Parameters (1)C
Returnstrue
Set a transformation Matrix like the law M(t) become Mat * M(t).
Parameters (1)Transfo
compute Location
Parameters (3)ParamM—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.
- D0(Param: number, M: gp_Mat, V: gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d): boolean
compute Location and 2d points
Parameters (4)ParamM—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.Poles2d—Mutated in place; read the updated value from this argument after the call.
- D1(Param: number, M: gp_Mat, V: gp_Vec, DM: gp_Mat, DV: gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d): boolean
compute location 2d points and associated first derivatives. Warning : It used only for C1 or C2 approximation
Parameters (7)ParamM—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.DM—Mutated in place; read the updated value from this argument after the call.DV—Mutated in place; read the updated value from this argument after the call.Poles2d—Mutated in place; read the updated value from this argument after the call.DPoles2d—Mutated in place; read the updated value from this argument after the call.
- D2(Param: number, M: gp_Mat, V: gp_Vec, DM: gp_Mat, DV: gp_Vec, D2M: gp_Mat, D2V: gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d, D2Poles2d: NCollection_Array1_gp_Vec2d): boolean
compute location 2d points and associated first and second derivatives. Warning : It used only for C2 approximation
Parameters (10)ParamM—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.DM—Mutated in place; read the updated value from this argument after the call.DV—Mutated in place; read the updated value from this argument after the call.D2M—Mutated in place; read the updated value from this argument after the call.D2V—Mutated in place; read the updated value from this argument after the call.Poles2d—Mutated in place; read the updated value from this argument after the call.DPoles2d—Mutated in place; read the updated value from this argument after the call.D2Poles2d—Mutated in place; read the updated value from this argument after the call.
- HasFirstRestriction(): boolean
Say if the first restriction is defined in this class. If it is true the first element of poles array in D0,D1,D2... Correspond to this restriction. Returns false (default implementation).
- HasLastRestriction(): boolean
Say if the last restriction is defined in this class. If it is true the last element of poles array in D0,D1,D2... Correspond to this restriction. Returns false (default implementation).
- TraceNumber(): number
Give the number of trace (Curves 2d which are not restriction) Returns 1 (default implementation).
Give a status to the
LawReturns PipeOk (default implementation).- 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
- SetInterval(First: number, Last: number): void
Sets the bounds of the parametric interval on the function This determines the derivatives in these values if the function is not Cn.
Parameters (2)FirstLast
- GetInterval(First: number, Last: number): { First: number; Last: number }
Gets the bounds of the parametric interval on the function.
Parameters (2)FirstLast
ReturnsA result object with fields:
First: updated value from the call.Last: updated value from the call.
- GetDomain(First: number, Last: number): { First: number; Last: number }
Gets the bounds of the function parametric domain. Warning: This domain it is not modified by the SetValue method.
Parameters (2)FirstLast
ReturnsA result object with fields:
First: updated value from the call.Last: updated value from the call.
- SetTolerance(Tol3d: number, Tol2d: number): void
Is useful, if (me) have to run numerical algorithm to perform D0, D1 or D2 The default implementation make nothing.
Parameters (2)Tol3dTol2d
- Resolution(Index: number, Tol: number, TolU: number, TolV: number): { TolU: number; TolV: number }
Returns the resolutions in the sub-space 2d <Index> This information is useful to find a good tolerance in 2d approximation. Warning: Used only if Nb2dCurve > 0.
Parameters (4)IndexTolTolUTolV
ReturnsA result object with fields:
TolU: updated value from the call.TolV: updated value from the call.
- GetMaximalNorm(): number
Get the maximum Norm of the matrix-location part. It is usful to find a good Tolerance to approx M(t).
- GetAverageLaw(AM: gp_Mat, AV: gp_Vec): void
Get average value of M(t) and V(t) it is useful to make fast approximation of rational surfaces.
Parameters (2)AM—Mutated in place; read the updated value from this argument after the call.AV—Mutated in place; read the updated value from this argument after the call.
- IsTranslation(Error: number): { returnValue: boolean; Error: number }
Say if the Location
Law, is an translation of Location The default implementation is " returns False ".Parameters (1)Error
ReturnsA result object with fields:
returnValue: the C++ return valueError: updated value from the call.
- IsRotation(Error: number): { returnValue: boolean; Error: number }
Say if the Location
Law, is a rotation of Location The default implementation is " returns False ".Parameters (1)Error
ReturnsA result object with fields:
returnValue: the C++ return valueError: updated value from the call.
- Parameters (1)
Center
- SetOrigine(Param1: number, Param2: number): voidParameters (2)
Param1Param2
- ComputeAutomaticLaw(): { returnValue: GeomFill_PipeError; ParAndRad: NCollection_HArray1_gp_Pnt2d; [Symbol.dispose](): void }
GeomFill_LocationLaw
To define location law in Sweeping location is defined by an Matrix M and an Vector V, and transform an point P in MP+V.
Static methods(2)
- get_type_name(): string
Instance methods(26)
- SetCurve(C: Adaptor3d_Curve): boolean
initialize curve of location law
Parameters (1)C
Set a transformation Matrix like the law M(t) become Mat * M(t).
Parameters (1)Transfo
compute Location
Parameters (3)ParamM—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.
- D0(Param: number, M: gp_Mat, V: gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d): boolean
compute Location and 2d points
Parameters (4)ParamM—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.Poles2d—Mutated in place; read the updated value from this argument after the call.
- D1(Param: number, M: gp_Mat, V: gp_Vec, DM: gp_Mat, DV: gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d): boolean
compute location 2d points and associated first derivatives. Warning: It used only for C1 or C2 approximation
Parameters (7)ParamM—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.DM—Mutated in place; read the updated value from this argument after the call.DV—Mutated in place; read the updated value from this argument after the call.Poles2d—Mutated in place; read the updated value from this argument after the call.DPoles2d—Mutated in place; read the updated value from this argument after the call.
- D2(Param: number, M: gp_Mat, V: gp_Vec, DM: gp_Mat, DV: gp_Vec, D2M: gp_Mat, D2V: gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d, D2Poles2d: NCollection_Array1_gp_Vec2d): boolean
compute location 2d points and associated first and second derivatives. Warning: It used only for C2 approximation
Parameters (10)ParamM—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.DM—Mutated in place; read the updated value from this argument after the call.DV—Mutated in place; read the updated value from this argument after the call.D2M—Mutated in place; read the updated value from this argument after the call.D2V—Mutated in place; read the updated value from this argument after the call.Poles2d—Mutated in place; read the updated value from this argument after the call.DPoles2d—Mutated in place; read the updated value from this argument after the call.D2Poles2d—Mutated in place; read the updated value from this argument after the call.
- Nb2dCurves(): number
get the number of 2d curves (Restrictions + Traces) to approximate.
- HasFirstRestriction(): boolean
Say if the first restriction is defined in this class. If it is true the first element of poles array in D0,D1,D2... Correspond to this restriction. Returns false (default implementation).
- HasLastRestriction(): boolean
Say if the last restriction is defined in this class. If it is true the last element of poles array in D0,D1,D2... Correspond to this restriction. Returns false (default implementation).
- TraceNumber(): number
Give the number of trace (Curves 2d which are not restriction) Returns 0 (default implementation).
Give a status to the
LawReturns PipeOk (default implementation).- 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
- SetInterval(First: number, Last: number): void
Sets the bounds of the parametric interval on the function This determines the derivatives in these values if the function is not Cn.
Parameters (2)FirstLast
- GetInterval(First: number, Last: number): { First: number; Last: number }
Gets the bounds of the parametric interval on the function.
Parameters (2)FirstLast
ReturnsA result object with fields:
First: updated value from the call.Last: updated value from the call.
- GetDomain(First: number, Last: number): { First: number; Last: number }
Gets the bounds of the function parametric domain. Warning: This domain it is not modified by the SetValue method.
Parameters (2)FirstLast
ReturnsA result object with fields:
First: updated value from the call.Last: updated value from the call.
- Resolution(Index: number, Tol: number, TolU: number, TolV: number): { TolU: number; TolV: number }
Returns the resolutions in the sub-space 2d <Index> This information is useful to find a good tolerance in 2d approximation.
Parameters (4)IndexTolTolUTolV
ReturnsA result object with fields:
TolU: updated value from the call.TolV: updated value from the call.
- SetTolerance(Tol3d: number, Tol2d: number): void
Is useful, if (me) have to run numerical algorithm to perform D0, D1 or D2 The default implementation make nothing.
Parameters (2)Tol3dTol2d
- GetMaximalNorm(): number
Get the maximum Norm of the matrix-location part. It is usful to find a good Tolerance to approx M(t).
- GetAverageLaw(AM: gp_Mat, AV: gp_Vec): void
Get average value of M(t) and V(t) it is useful to make fast approximation of rational surfaces.
Parameters (2)AM—Mutated in place; read the updated value from this argument after the call.AV—Mutated in place; read the updated value from this argument after the call.
- IsTranslation(Error: number): { returnValue: boolean; Error: number }
Say if the Location
Law, is an translation of Location The default implementation is " returns False ".Parameters (1)Error
ReturnsA result object with fields:
returnValue: the C++ return valueError: updated value from the call.
- IsRotation(Error: number): { returnValue: boolean; Error: number }
Say if the Location
Law, is a rotation of Location The default implementation is " returns False ".Parameters (1)Error
ReturnsA result object with fields:
returnValue: the C++ return valueError: updated value from the call.
- Parameters (1)
Center
GeomFill_LocFunction
Constructors(1)
- Parameters (1)
Law
Instance methods(4)
- D0(Param: number, First: number, Last: number): boolean
compute the section for v = param
Parameters (3)ParamFirstLast
- D1(Param: number, First: number, Last: number): boolean
compute the first derivative in v direction of the section for v = param
Parameters (3)ParamFirstLast
- D2(Param: number, First: number, Last: number): boolean
compute the second derivative in v direction of the section for v = param
Parameters (3)ParamFirstLast
- DN(Param: number, First: number, Last: number, Order: number, Result: number, Ier: number): { Result: number; Ier: number }Parameters (6)
ParamFirstLastOrderResultIer
GeomFill_Pipe
Describes functions to construct pipes. A pipe is built by sweeping a curve (the section) along another curve (the path). The Pipe class provides the following types of construction:
- pipes with a circular section of constant radius,
- pipes with a constant section,
- pipes with a section evolving between two given curves. All standard specific cases are detected in order to build, where required, a plane, cylinder, cone, sphere, torus, surface of linear extrusion or surface of revolution. Generally speaking, the result is a BSpline surface (NURBS). A Pipe object provides a framework for:
- defining the pipe to be built,
- implementing the construction algorithm, and
- consulting the resulting surface. There are several methods to instantiate a Pipe: 1) give a path and a radius: the section is a circle. This location is the first point of the path, and this direction is the first derivate (calculate at the first point ) of the path.
- give a path and a section. Differtent options are available 2.a) Use the classical Frenet trihedron
- or the CorrectedFrenet trihedron (To avoid twisted surface)
- or a constant trihedron to have all the sections in a same plane 2.b) Define a ConstantBinormal Direction to keep the same angle between the Direction and the sections along the sweep surface. 2.c) Define the path by a surface and a 2dcurve, the surface is used to define the trihedron's normal. It is useful to keep a constant angle between input surface and the pipe. 3) give a path and two sections. The section evaluate from First to Last Section.
- give a path and N sections. The section evaluate from First to Last Section.
In general case the result is a NURBS. But we can generate plane, cylindrical, spherical, conical, toroidal surface in some particular case.
The natural parametrization of the result is:
U-Direction along the section. V-Direction along the path.
But, in some particular case, the surface must be construct otherwise. The method "EchangeUV" return false in such cases.
Constructors(10)
Constructs an empty algorithm for building pipes. Use the function Init to initialize it.
- constructor(Path: Geom_Curve, Radius: number): GeomFill_PipeParameters (2)
PathRadius
- constructor(Path: Geom_Curve, NSections: NCollection_Sequence_handle_Geom_Curve): GeomFill_Pipe
Create a pipe with N sections The section evaluate from First to Last Section.
Parameters (2)PathNSections
- constructor(Path: Geom_Curve, FirstSect: Geom_Curve, Option?: GeomFill_Trihedron): GeomFill_Pipe
Create a pipe with a constant section (<FirstSection>) and a path (<Path>) Option can be - GeomFill_IsCorrectedFrenet.
- GeomFill_IsFrenet
- GeomFill_IsConstant
Parameters (3)PathFirstSectOption
- constructor(Path: Geom2d_Curve, Support: Geom_Surface, FirstSect: Geom_Curve): GeomFill_Pipe
Create a pipe with a constant section (<FirstSection>) and a path defined by <Path> and <Support>.
Parameters (3)PathSupportFirstSect
- constructor(Path: Geom_Curve, FirstSect: Geom_Curve, Dir: gp_Dir): GeomFill_Pipe
Create a pipe with a constant section (<FirstSection>) and a path <Path> and a fixed binormal direction <Dir>.
Parameters (3)PathFirstSectDir
- constructor(Path: Geom_Curve, FirstSect: Geom_Curve, LastSect: Geom_Curve): GeomFill_Pipe
Create a pipe with an evolving section The section evaluate from First to Last Section.
Parameters (3)PathFirstSectLastSect
- constructor(Path: Geom_Curve, Curve1: Geom_Curve, Curve2: Geom_Curve, Radius: number): GeomFill_Pipe
Create a pipe with a constant radius with 2 guide-line.
Parameters (4)PathCurve1Curve2Radius
- constructor(Path: Adaptor3d_Curve, Curve1: Adaptor3d_Curve, Curve2: Adaptor3d_Curve, Radius: number): GeomFill_Pipe
Create a pipe with a constant radius with 2 guide-line.
Parameters (4)PathCurve1Curve2Radius
- constructor(Path: Geom_Curve, Guide: Adaptor3d_Curve, FirstSect: Geom_Curve, ByACR: boolean, rotat: boolean): GeomFill_Pipe
Create a pipe with a constant section and with 1 guide-line. Use the function Perform to build the surface. All standard specific cases are detected in order to construct, according to the respective geometric nature of Path and the sections, a planar, cylindrical, conical, spherical or toroidal surface, a surface of linear extrusion or a surface of revolution. In the general case, the result is a BSpline surface (NURBS) built by approximation of a series of sections where:
- the number of sections N is chosen automatically by the algorithm according to the respective geometries of Path and the sections. N is greater than or equal to 2;
- N points Pi (with i in the range [ 1,N ]) are defined at regular intervals along the curve Path from its first point to its end point. At each point Pi, a coordinate system Ti is computed with Pi as origin, and with the tangential and normal vectors to Path defining two of its coordinate axes.
In the case of a pipe with a constant circular section, the first section is a circle of radius Radius centered on the origin of Path and whose "Z Axis" is aligned along the vector tangential to the origin of Path. In the case of a pipe with a constant section, the first section is the curve FirstSect.
In these two cases, the ith section (for values of i greater than 1) is obtained by applying to a copy of this first section the geometric transformation which transforms coordinate system T1 into coordinate system Ti.
In the case of an evolving section, N-2 intermediate curves Si are first computed (if N is greater than 2, and with i in the range [ 2,N-1 ]) whose geometry evolves regularly from the curve S1=FirstSect to the curve SN=LastSect.
The first section is FirstSect, and the ith section (for values of i greater than 1) is obtained by applying to the curve Si the geometric transformation which transforms coordinate system T1 into coordinate system Ti.
Parameters (5)PathGuideFirstSectByACRrotat
Instance methods(17)
- Init(Path: Geom_Curve, Radius: number): voidParameters (2)
PathRadius
- Init(Path: Geom_Curve, NSections: NCollection_Sequence_handle_Geom_Curve): voidParameters (2)
PathNSections
- Init(Path: Geom_Curve, FirstSect: Geom_Curve, Option: GeomFill_Trihedron): voidParameters (3)
PathFirstSectOption
- Init(Path: Geom2d_Curve, Support: Geom_Surface, FirstSect: Geom_Curve): voidParameters (3)
PathSupportFirstSect
- Init(Path: Geom_Curve, FirstSect: Geom_Curve, Dir: gp_Dir): voidParameters (3)
PathFirstSectDir
- Init(Path: Geom_Curve, FirstSect: Geom_Curve, LastSect: Geom_Curve): voidParameters (3)
PathFirstSectLastSect
- Init(Path: Adaptor3d_Curve, Curve1: Adaptor3d_Curve, Curve2: Adaptor3d_Curve, Radius: number): void
Create a pipe with a constant radius with 2 guide-line.
Parameters (4)PathCurve1Curve2Radius
- Init(Path: Geom_Curve, Guide: Adaptor3d_Curve, FirstSect: Geom_Curve, ByACR: boolean, rotat: boolean): void
Initializes this pipe algorithm to build the following surface:
- a pipe with a constant circular section of radius Radius along the path Path, or
- a pipe with constant section FirstSect along the path Path, or
- a pipe where the section evolves from FirstSect to LastSect along the path Path. Use the function Perform to build the surface. Note: a description of the resulting surface is given under Constructors.
Parameters (5)PathGuideFirstSectByACRrotat
- Perform(WithParameters: boolean, myPolynomial: boolean): void
Builds the pipe defined at the time of initialization of this algorithm. A description of the resulting surface is given under Constructors. If WithParameters (defaulted to false) is set to true, the approximation algorithm (used only in the general case of construction of a BSpline surface) builds the surface with a u parameter corresponding to the one of the path. Exceptions Standard_ConstructionError if a surface cannot be constructed from the data. Warning: It is the old Perform method, the next methode is recommended.
Parameters (2)WithParametersmyPolynomial
- Perform(Tol: number, Polynomial: boolean, Conti: GeomAbs_Shape, MaxDegree: number, NbMaxSegment: number): void
Detects the particular cases, and computes the surface. if none particular case is detected we make an approximation with respect of the Tolerance <Tol>, the continuty <Conti>, the maximum degree <MaxDegree>, the maximum number of span <NbMaxSegment> and the spine parametrization. If we can't create a surface with the data.
Parameters (5)TolPolynomialContiMaxDegreeNbMaxSegment
Returns the surface built by this algorithm. Warning: Do not use this function before the surface is built (in this case the function will return a null handle).
- ExchangeUV(): boolean
The u parametric direction of the surface constructed by this algorithm usually corresponds to the evolution along the path and the v parametric direction corresponds to the evolution along the section(s). However, this rule is not respected when constructing certain specific Geom surfaces (typically cylindrical surfaces, surfaces of revolution, etc.) for which the parameterization is inversed. The ExchangeUV function checks for this, and returns true in all these specific cases. Warning: Do not use this function before the surface is built.
- GenerateParticularCase(B: boolean): void
Sets a flag to try to create as many planes, cylinder,... as possible. Default value is <false>.
Parameters (1)B
- GenerateParticularCase(): boolean
Returns the flag.
- ErrorOnSurf(): number
Returns the approximation's error. if the Surface is plane, cylinder ... this error can be 0.
- IsDone(): boolean
Returns whether approximation was done.
Returns execution status.
GeomFill_PipeError
Properties(4)
GeomFill_PlanFunc
Constructors(1)
- constructor(P: gp_Pnt, V: gp_Vec, C: Adaptor3d_Curve): GeomFill_PlanFuncParameters (3)
PVC
Instance methods(6)
- 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.
- D2(X: number, F: number, D1: number, D2: number): { F: number; D1: number; D2: number }Parameters (4)
XFD1D2
- Parameters (4)
XDPDVDF
- D2E(X: number, DP: gp_Vec, D2P: gp_Vec, DV: gp_Vec, D2V: gp_Vec, DFDT: number, D2FDT2: number, D2FDTDX: number): { DFDT: number; D2FDT2: number; D2FDTDX: number }Parameters (8)
XDPD2PDVD2VDFDTD2FDT2D2FDTDX
GeomFill_PolynomialConvertor
To convert circular section in polynome.
Constructors(1)
Instance methods(5)
- Initialized(): boolean
say if <me> is Initialized
- Init(): void
- Section(FirstPnt: gp_Pnt, Center: gp_Pnt, Dir: gp_Vec, Angle: number, Poles: NCollection_Array1_gp_Pnt): voidParameters (5)
FirstPntCenterDirAnglePoles
- Section(FirstPnt: gp_Pnt, DFirstPnt: gp_Vec, Center: gp_Pnt, DCenter: gp_Vec, Dir: gp_Vec, DDir: gp_Vec, Angle: number, DAngle: number, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec): voidParameters (10)
FirstPntDFirstPntCenterDCenterDirDDirAngleDAnglePolesDPoles
- Section(FirstPnt: gp_Pnt, DFirstPnt: gp_Vec, D2FirstPnt: gp_Vec, Center: gp_Pnt, DCenter: gp_Vec, D2Center: gp_Vec, Dir: gp_Vec, DDir: gp_Vec, D2Dir: gp_Vec, Angle: number, DAngle: number, D2Angle: number, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, D2Poles: NCollection_Array1_gp_Vec): voidParameters (15)
FirstPntDFirstPntD2FirstPntCenterDCenterD2CenterDirDDirD2DirAngleDAngleD2AnglePolesDPolesD2Poles
GeomFill_Profiler
Evaluation of the common BSplineProfile of a group of curves from Geom. All the curves will have the same degree, the same knot-vector, so the same number of poles.
Constructors(1)
Instance methods(10)
- AddCurve(Curve: Geom_Curve): voidParameters (1)
Curve
- Perform(PTol: number): void
Converts all curves to BSplineCurves. Set them to the common profile. <PTol> is used to compare 2 knots.
Parameters (1)PTol
- Degree(): number
Raises if not yet perform.
- IsPeriodic(): boolean
- NbPoles(): number
Raises if not yet perform.
- Poles(Index: number, Poles: NCollection_Array1_gp_Pnt): void
returns in <Poles> the poles of the BSplineCurve from index <Index> adjusting to the current profile. Raises if not yet perform Raises if <Index> not in the range [1,NbCurves] if the length of <Poles> is not equal to
NbPoles().Parameters (2)IndexPoles—Mutated in place; read the updated value from this argument after the call.
- Weights(Index: number, Weights: NCollection_Array1_double): void
returns in <Weights> the weights of the BSplineCurve from index <Index> adjusting to the current profile. Raises if not yet perform Raises if <Index> not in the range [1,NbCurves] or if the length of <Weights> is not equal to
NbPoles().Parameters (2)IndexWeights—Mutated in place; read the updated value from this argument after the call.
- NbKnots(): number
Raises if not yet perform.
- KnotsAndMults(Knots: NCollection_Array1_double, Mults: NCollection_Array1_int): void
Raises if not yet perform Raises if the lengths of <Knots> and <Mults> are not equal to
NbKnots().Parameters (2)Knots—Mutated in place; read the updated value from this argument after the call.Mults—Mutated in place; read the updated value from this argument after the call.
- Curve(Index: number): Geom_CurveParameters (1)
Index
GeomFill_QuasiAngularConvertor
To convert circular section in QuasiAngular Bezier form.
Constructors(1)
Instance methods(5)
- Initialized(): boolean
say if <me> is Initialized
- Init(): void
- Section(FirstPnt: gp_Pnt, Center: gp_Pnt, Dir: gp_Vec, Angle: number, Poles: NCollection_Array1_gp_Pnt, Weights: NCollection_Array1_double): voidParameters (6)
FirstPntCenterDirAnglePolesWeights
- Section(FirstPnt: gp_Pnt, DFirstPnt: gp_Vec, Center: gp_Pnt, DCenter: gp_Vec, Dir: gp_Vec, DDir: gp_Vec, Angle: number, DAngle: number, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, Weights: NCollection_Array1_double, DWeights: NCollection_Array1_double): voidParameters (12)
FirstPntDFirstPntCenterDCenterDirDDirAngleDAnglePolesDPolesWeightsDWeights
- Section(FirstPnt: gp_Pnt, DFirstPnt: gp_Vec, D2FirstPnt: gp_Vec, Center: gp_Pnt, DCenter: gp_Vec, D2Center: gp_Vec, Dir: gp_Vec, DDir: gp_Vec, D2Dir: gp_Vec, Angle: number, DAngle: number, D2Angle: number, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, D2Poles: NCollection_Array1_gp_Vec, Weights: NCollection_Array1_double, DWeights: NCollection_Array1_double, D2Weights: NCollection_Array1_double): voidParameters (18)
FirstPntDFirstPntD2FirstPntCenterDCenterD2CenterDirDDirD2DirAngleDAngleD2AnglePolesDPolesD2PolesWeightsDWeightsD2Weights
GeomFill_SectionGenerator
gives the functions needed for instantiation from AppSurf in AppBlend. Allow to evaluate a surface passing by all the curves if the Profiler.
Constructors(1)
Instance methods(7)
- SetParam(Params: NCollection_HArray1_double): voidParameters (1)
Params
- GetShape(NbPoles: number, NbKnots: number, Degree: number, NbPoles2d: number): { NbPoles: number; NbKnots: number; Degree: number; NbPoles2d: number }Parameters (4)
NbPolesNbKnotsDegreeNbPoles2d
- Knots(TKnots: NCollection_Array1_double): voidParameters (1)
TKnots
- Mults(TMults: NCollection_Array1_int): voidParameters (1)
TMults
- Section(P: number, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double): boolean
Used for the first and last section The method returns true if the derivatives are computed, otherwise it returns false.
Parameters (7)PPoles—Mutated in place; read the updated value from this argument after the call.DPoles—Mutated in place; read the updated value from this argument after the call.Poles2d—Mutated in place; read the updated value from this argument after the call.DPoles2d—Mutated in place; read the updated value from this argument after the call.Weigths—Mutated in place; read the updated value from this argument after the call.DWeigths—Mutated in place; read the updated value from this argument after the call.
- Section(P: number, Poles: NCollection_Array1_gp_Pnt, Poles2d: NCollection_Array1_gp_Pnt2d, Weigths: NCollection_Array1_double): voidParameters (4)
PPolesPoles2dWeigths
- Parameter(P: number): number
Returns the parameter of Section.
, to impose it for the approximation.Parameters (1)P
GeomFill_SectionLaw
To define section law in sweeping.
Static methods(2)
- get_type_name(): string
Instance methods(25)
- D0(Param: number, Poles: NCollection_Array1_gp_Pnt, Weigths: NCollection_Array1_double): boolean
compute the section for v = param
Parameters (3)ParamPoles—Mutated in place; read the updated value from this argument after the call.Weigths—Mutated in place; read the updated value from this argument after the call.
- D1(Param: number, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double): boolean
compute the first derivative in v direction of the section for v = param Warning : It used only for C1 or C2 approximation
Parameters (5)ParamPoles—Mutated in place; read the updated value from this argument after the call.DPoles—Mutated in place; read the updated value from this argument after the call.Weigths—Mutated in place; read the updated value from this argument after the call.DWeigths—Mutated in place; read the updated value from this argument after the call.
- D2(Param: number, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, D2Poles: NCollection_Array1_gp_Vec, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double, D2Weigths: NCollection_Array1_double): boolean
compute the second derivative in v direction of the section for v = param Warning : It used only for C2 approximation
Parameters (7)ParamPoles—Mutated in place; read the updated value from this argument after the call.DPoles—Mutated in place; read the updated value from this argument after the call.D2Poles—Mutated in place; read the updated value from this argument after the call.Weigths—Mutated in place; read the updated value from this argument after the call.DWeigths—Mutated in place; read the updated value from this argument after the call.D2Weigths—Mutated in place; read the updated value from this argument after the call.
give if possible an bspline Surface, like iso-v are the section. If it is not possible this method have to get an Null Surface. It is the default implementation.
- SectionShape(NbPoles: number, NbKnots: number, Degree: number): { NbPoles: number; NbKnots: number; Degree: number }
get the format of an section
Parameters (3)NbPolesNbKnotsDegree
ReturnsA result object with fields:
NbPoles: updated value from the call.NbKnots: updated value from the call.Degree: updated value from the call.
- Knots(TKnots: NCollection_Array1_double): void
get the Knots of the section
Parameters (1)TKnots—Mutated in place; read the updated value from this argument after the call.
- Mults(TMults: NCollection_Array1_int): void
get the Multplicities of the section
Parameters (1)TMults—Mutated in place; read the updated value from this argument after the call.
- IsRational(): boolean
Returns if the sections are rational or not.
- IsUPeriodic(): boolean
Returns if the sections are periodic or not.
- IsVPeriodic(): boolean
Returns if law is periodic or not.
- 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
- SetInterval(First: number, Last: number): void
Sets the bounds of the parametric interval on the function This determines the derivatives in these values if the function is not Cn.
Parameters (2)FirstLast
- GetInterval(First: number, Last: number): { First: number; Last: number }
Gets the bounds of the parametric interval on the function.
Parameters (2)FirstLast
ReturnsA result object with fields:
First: updated value from the call.Last: updated value from the call.
- GetDomain(First: number, Last: number): { First: number; Last: number }
Gets the bounds of the function parametric domain. Warning: This domain it is not modified by the SetValue method.
Parameters (2)FirstLast
ReturnsA result object with fields:
First: updated value from the call.Last: updated value from the call.
- GetTolerance(BoundTol: number, SurfTol: number, AngleTol: number, Tol3d: NCollection_Array1_double): void
Returns the tolerances associated at each poles to reach in approximation, to satisfy: BoundTol error at the Boundary AngleTol tangent error at the Boundary (in radian) SurfTol error inside the surface.
Parameters (4)BoundTolSurfTolAngleTolTol3d—Mutated in place; read the updated value from this argument after the call.
- SetTolerance(Tol3d: number, Tol2d: number): void
Is useful, if <me> has to run numerical algorithm to perform D0, D1 or D2 The default implementation make nothing.
Parameters (2)Tol3dTol2d
Get the barycentre of Surface. A very poor estimation is sufficient. This information is useful to perform well conditioned rational approximation. Warning: Used only if <me> IsRational.
- MaximalSection(): number
Returns the length of the greater section. This information is useful to G1's control. Warning: With an little value, approximation can be slower.
- GetMinimalWeight(Weigths: NCollection_Array1_double): void
Compute the minimal value of weight for each poles in all sections. This information is useful to control error in rational approximation. Warning: Used only if <me> IsRational.
Parameters (1)Weigths—Mutated in place; read the updated value from this argument after the call.
- IsConstant(Error: number): { returnValue: boolean; Error: number }
Say if all sections are equals.
Parameters (1)Error
ReturnsA result object with fields:
returnValue: the C++ return valueError: updated value from the call.
Return a copy of the constant Section, if <me> IsConstant.
- IsConicalLaw(Error: number): { returnValue: boolean; Error: number }
Returns True if all section are circle, with same plane,same center and linear radius evolution Return False by Default.
Parameters (1)Error
ReturnsA result object with fields:
returnValue: the C++ return valueError: updated value from the call.
- CirclSection(Param: number): Geom_Curve
Return the circle section at parameter , if <me> a IsConicalLaw.
Parameters (1)Param
GeomFill_SectionPlacement
To place section in sweep Function.
Constructors(1)
- constructor(L: GeomFill_LocationLaw, Section: Geom_Geometry): GeomFill_SectionPlacementParameters (2)
LSection
Instance methods(12)
- SetLocation(L: GeomFill_LocationLaw): void
To change the section
Law.Parameters (1)L
- Perform(Tol: number): voidParameters (1)
Tol
- Perform(Path: Adaptor3d_Curve, Tol: number): voidParameters (2)
PathTol
- Perform(ParamOnPath: number, Tol: number): voidParameters (2)
ParamOnPathTol
- IsDone(): boolean
- ParameterOnPath(): number
- ParameterOnSection(): number
- Distance(): number
- Angle(): number
- Transformation(WithTranslation: boolean, WithCorrection?: boolean): gp_TrsfParameters (2)
WithTranslationWithCorrection
- Section(WithTranslation: boolean): Geom_Curve
Compute the Section, in the coordinate system given by the Location
Law. If <WithTranslation> contact between <Section> and <Path> is forced.Parameters (1)WithTranslation
- ModifiedSection(WithTranslation: boolean): Geom_CurveParameters (1)
WithTranslation
GeomFill_SimpleBound
Defines a 3d curve as a boundary for a GeomFill_ConstrainedFilling algorithm. This curve is unattached to an existing surface.D Contains fields to allow a reparametrization of curve.
Constructors(1)
- constructor(Curve: Adaptor3d_Curve, Tol3d: number, Tolang: number): GeomFill_SimpleBound
Constructs the boundary object defined by the 3d curve. The surface to be built along this boundary will be in the tolerance range defined by Tol3d. This object is to be used as a boundary for a
GeomFill_ConstrainedFillingframework. Dummy is initialized but has no function in this class. Warning Curve is an adapted curve, that is, an object which is an interface between:- the services provided by a 3D curve from the package Geom
- and those required of the curve by the computation algorithm which uses it. The adapted curve is created in one of the following ways:
- First sequence:
occ::handle<Geom_Curve>myCurve = ... ;occ::handle<GeomAdaptor_Curve>Curve = newGeomAdaptor_Curve(myCurve); - Second sequence: // Step 1
occ::handle<Geom_Curve>myCurve = ... ;GeomAdaptor_CurveCrv (myCurve); // Step 2occ::handle<GeomAdaptor_Curve>Curve = newGeomAdaptor_Curve(Crv); You use the second part of this sequence if you already have the adapted curve Crv. The boundary is then constructed with the Curve object: double Tol = ... ; double dummy = 0. ; myBoundary =GeomFill_SimpleBound(Curve,Tol,dummy);
Parameters (3)CurveTol3dTolang
Static methods(2)
- get_type_name(): string
Instance methods(6)
- Parameters (1)
U
- Parameters (3)
UPV
- Reparametrize(First: number, Last: number, HasDF: boolean, HasDL: boolean, DF: number, DL: number, Rev: boolean): voidParameters (7)
FirstLastHasDFHasDLDFDLRev
- Bounds(First: number, Last: number): { First: number; Last: number }Parameters (2)
FirstLast
- IsDegenerated(): boolean
GeomFill_SnglrFunc
to represent function C'(t)^C''(t)
Constructors(1)
- Parameters (1)
HC
Instance methods(15)
Shallow copy of adaptor.
- SetRatio(Ratio: number): voidParameters (1)
Ratio
- 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
- 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 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.
GeomFill_Stretch
Constructors(3)
- constructor(P1: NCollection_Array1_gp_Pnt, P2: NCollection_Array1_gp_Pnt, P3: NCollection_Array1_gp_Pnt, P4: NCollection_Array1_gp_Pnt): GeomFill_StretchParameters (4)
P1P2P3P4
- constructor(P1: NCollection_Array1_gp_Pnt, P2: NCollection_Array1_gp_Pnt, P3: NCollection_Array1_gp_Pnt, P4: NCollection_Array1_gp_Pnt, W1: NCollection_Array1_double, W2: NCollection_Array1_double, W3: NCollection_Array1_double, W4: NCollection_Array1_double): GeomFill_StretchParameters (8)
P1P2P3P4W1W2W3W4
Instance methods(2)
- Init(P1: NCollection_Array1_gp_Pnt, P2: NCollection_Array1_gp_Pnt, P3: NCollection_Array1_gp_Pnt, P4: NCollection_Array1_gp_Pnt): voidParameters (4)
P1P2P3P4
- Init(P1: NCollection_Array1_gp_Pnt, P2: NCollection_Array1_gp_Pnt, P3: NCollection_Array1_gp_Pnt, P4: NCollection_Array1_gp_Pnt, W1: NCollection_Array1_double, W2: NCollection_Array1_double, W3: NCollection_Array1_double, W4: NCollection_Array1_double): voidParameters (8)
P1P2P3P4W1W2W3W4
GeomFill_Sweep
Geometrical Sweep Algorithm.
Constructors(1)
- constructor(Location: GeomFill_LocationLaw, WithKpart?: boolean): GeomFill_SweepParameters (2)
LocationWithKpart
Instance methods(15)
- SetDomain(First: number, Last: number, SectionFirst: number, SectionLast: number): void
Set parametric information [<First>, <Last>] Sets the parametric bound of the sweeping surface to build. <SectionFirst>, <SectionLast> gives corresponding bounds parameter on the section law of <First> and <Last>.
V-Iso on Sweeping Surface S(u,v) is defined by Location(v) and Section(w) where w = SectionFirst + (v - First) / (Last-First)- (SectionLast - SectionFirst)
By default w = v, and First and Last are given by First and Last parameter stored in LocationLaw.
Parameters (4)FirstLastSectionFirstSectionLast
- (SectionLast - SectionFirst)
- SetTolerance(Tol3d: number, BoundTol?: number, Tol2d?: number, TolAngular?: number): void
Set Approximation Tolerance Tol3d : Tolerance to surface approximation Tol2d : Tolerance used to perform curve approximation Normally the 2d curve are approximated with a tolerance given by the resolution method define in <LocationLaw> but if this tolerance is too large Tol2d is used. TolAngular : Tolerance (in radian) to control the angle between tangents on the section law and tangent of iso-v on approximated surface.
Parameters (4)Tol3dBoundTolTol2dTolAngular
- SetForceApproxC1(ForceApproxC1: boolean): void
Set the flag that indicates attempt to approximate a C1-continuous surface if a swept surface proved to be C0.
Parameters (1)ForceApproxC1
- ExchangeUV(): boolean
returns true if sections are U-Iso This can be produce in some cases when <WithKpart> is True.
- UReversed(): boolean
returns true if Parametrisation sens in U is inverse of parametrisation sens of section (or of path if ExchangeUV)
- VReversed(): boolean
returns true if Parametrisation sens in V is inverse of parametrisation sens of path (or of section if ExchangeUV)
- Build(Section: GeomFill_SectionLaw, Methode?: GeomFill_ApproxStyle, Continuity?: GeomAbs_Shape, Degmax?: number, Segmax?: number): void
Build the Sweeep Surface ApproxStyle defines Approximation Strategy.
- GeomFill_Section : The composed Function : Location X Section is directly approximated.
- GeomFill_Location : The location law is approximated, and the SweepSurface is build algebric composition of approximated location law and section law This option is Ok, if Section.Surface() methode is effective. Continuity : The continuity in v waiting on the surface Degmax : The maximum degree in v required on the surface Segmax : The maximum number of span in v required on the surface
raise If Domain are infinite or Profile not set.
Parameters (5)SectionMethodeContinuityDegmaxSegmax
- IsDone(): boolean
Tells if the Surface is Built.
- ErrorOnSurface(): number
Gets the Approximation error.
- ErrorOnRestriction(IsFirst: boolean, UError: number, VError: number): { UError: number; VError: number }
Gets the Approximation error.
Parameters (3)IsFirstUErrorVError
ReturnsA result object with fields:
UError: updated value from the call.VError: updated value from the call.
- ErrorOnTrace(IndexOfTrace: number, UError: number, VError: number): { UError: number; VError: number }
Gets the Approximation error.
Parameters (3)IndexOfTraceUErrorVError
ReturnsA result object with fields:
UError: updated value from the call.VError: updated value from the call.
- Restriction(IsFirst: boolean): Geom2d_CurveParameters (1)
IsFirst
- NumberOfTrace(): number
- Trace(IndexOfTrace: number): Geom2d_CurveParameters (1)
IndexOfTrace
GeomFill_SweepFunction
Function to approximate by SweepApproximation from Approx. To build general sweep Surface.
Constructors(1)
- constructor(Section: GeomFill_SectionLaw, Location: GeomFill_LocationLaw, FirstParameter: number, FirstParameterOnS: number, RatioParameterOnS: number): GeomFill_SweepFunctionParameters (5)
SectionLocationFirstParameterFirstParameterOnSRatioParameterOnS
Static methods(2)
- get_type_name(): string
Instance methods(18)
- D0(Param: number, First: number, Last: number, Poles: NCollection_Array1_gp_Pnt, Poles2d: NCollection_Array1_gp_Pnt2d, Weigths: NCollection_Array1_double): boolean
compute the section for v = param
Parameters (6)ParamFirstLastPoles—Mutated in place; read the updated value from this argument after the call.Poles2d—Mutated in place; read the updated value from this argument after the call.Weigths—Mutated in place; read the updated value from this argument after the call.
- D1(Param: number, First: number, Last: number, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double): boolean
compute the first derivative in v direction of the section for v = param
Parameters (9)ParamFirstLastPoles—Mutated in place; read the updated value from this argument after the call.DPoles—Mutated in place; read the updated value from this argument after the call.Poles2d—Mutated in place; read the updated value from this argument after the call.DPoles2d—Mutated in place; read the updated value from this argument after the call.Weigths—Mutated in place; read the updated value from this argument after the call.DWeigths—Mutated in place; read the updated value from this argument after the call.
- D2(Param: number, First: number, Last: number, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, D2Poles: NCollection_Array1_gp_Vec, Poles2d: NCollection_Array1_gp_Pnt2d, DPoles2d: NCollection_Array1_gp_Vec2d, D2Poles2d: NCollection_Array1_gp_Vec2d, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double, D2Weigths: NCollection_Array1_double): boolean
compute the second derivative in v direction of the section for v = param
Parameters (12)ParamFirstLastPoles—Mutated in place; read the updated value from this argument after the call.DPoles—Mutated in place; read the updated value from this argument after the call.D2Poles—Mutated in place; read the updated value from this argument after the call.Poles2d—Mutated in place; read the updated value from this argument after the call.DPoles2d—Mutated in place; read the updated value from this argument after the call.D2Poles2d—Mutated in place; read the updated value from this argument after the call.Weigths—Mutated in place; read the updated value from this argument after the call.DWeigths—Mutated in place; read the updated value from this argument after the call.D2Weigths—Mutated in place; read the updated value from this argument after the call.
- Nb2dCurves(): number
get the number of 2d curves to approximate.
- SectionShape(NbPoles: number, NbKnots: number, Degree: number): { NbPoles: number; NbKnots: number; Degree: number }
get the format of a section
Parameters (3)NbPolesNbKnotsDegree
ReturnsA result object with fields:
NbPoles: updated value from the call.NbKnots: updated value from the call.Degree: updated value from the call.
- Knots(TKnots: NCollection_Array1_double): void
get the Knots of the section
Parameters (1)TKnots—Mutated in place; read the updated value from this argument after the call.
- Mults(TMults: NCollection_Array1_int): void
get the Multplicities of the section
Parameters (1)TMults—Mutated in place; read the updated value from this argument after the call.
- IsRational(): boolean
Returns if the section is rational or not.
- 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
- SetInterval(First: number, Last: number): void
Sets the bounds of the parametric interval on the function This determines the derivatives in these values if the function is not Cn.
Parameters (2)FirstLast
- Resolution(Index: number, Tol: number, TolU: number, TolV: number): { TolU: number; TolV: number }
Returns the resolutions in the sub-space 2d <Index> This information is useful to find a good tolerance in 2d approximation. Warning: Used only if Nb2dCurve > 0.
Parameters (4)IndexTolTolUTolV
ReturnsA result object with fields:
TolU: updated value from the call.TolV: updated value from the call.
- GetTolerance(BoundTol: number, SurfTol: number, AngleTol: number, Tol3d: NCollection_Array1_double): void
Returns the tolerance to reach in approximation to respect BoundTol error at the Boundary AngleTol tangent error at the Boundary (in radian) SurfTol error inside the surface.
Parameters (4)BoundTolSurfTolAngleTolTol3d—Mutated in place; read the updated value from this argument after the call.
- SetTolerance(Tol3d: number, Tol2d: number): void
Is useful, if <me> has to be run numerical algorithme to perform D0, D1 or D2.
Parameters (2)Tol3dTol2d
Get the barycentre of Surface. An very poor estimation is sufficient. This information is useful to perform well conditioned rational approximation. Warning: Used only if <me> IsRational.
- MaximalSection(): number
Returns the length of the maximum section. This information is useful to perform well conditioned rational approximation.
- GetMinimalWeight(Weigths: NCollection_Array1_double): void
Compute the minimal value of weight for each poles of all sections. This information is useful to perform well conditioned rational approximation. Warning: Used only if <me> IsRational.
Parameters (1)Weigths—Mutated in place; read the updated value from this argument after the call.
GeomFill_Tensor
used to store the "gradient of gradient"
Constructors(1)
- constructor(NbRow: number, NbCol: number, NbMat: number): GeomFill_TensorParameters (3)
NbRowNbColNbMat
Instance methods(4)
- Init(InitialValue: number): void
Initialize all the elements of a Tensor to InitialValue.
Parameters (1)InitialValue
- Value(Row: number, Col: number, Mat: number): number
accesses (in read or write mode) the value of index <Row>, <Col> and <Mat> of a Tensor. An exception is raised if <Row>, <Col> or <Mat> are not in the correct range.
Parameters (3)RowColMat
- ChangeValue(Row: number, Col: number, Mat: number): number
accesses (in read or write mode) the value of index <Row>, <Col> and <Mat> of a Tensor. An exception is raised if <Row>, <Col> or <Mat> are not in the correct range.
Parameters (3)RowColMat
- Multiply(Right: math_Vector, Product: math_Matrix): voidParameters (2)
RightProduct
GeomFill_TgtField
Root class defining the methods we need to make an algorithmic tangents field.
Static methods(2)
- get_type_name(): string
Instance methods(6)
- IsScalable(): boolean
- Scale(Func: Law_BSpline): voidParameters (1)
Func
Computes the value of the field of tangency at parameter W.
Parameters (1)W
Computes the derivative of the field of tangency at parameter W.
Parameters (1)W
Computes the value and the derivative of the field of tangency at parameter W.
Parameters (3)WV—Mutated in place; read the updated value from this argument after the call.DV—Mutated in place; read the updated value from this argument after the call.
GeomFill_TgtOnCoons
Defines an algorithmic tangents field on a boundary of a CoonsAlgPatch.
Constructors(1)
- constructor(K: GeomFill_CoonsAlgPatch, I: number): GeomFill_TgtOnCoonsParameters (2)
KI
Static methods(2)
- get_type_name(): string
Instance methods(4)
Computes the value of the field of tangency at parameter W.
Parameters (1)W
Computes the derivative of the field of tangency at parameter W.
Parameters (1)W
Computes the value and the derivative of the field of tangency at parameter W.
Parameters (3)WV—Mutated in place; read the updated value from this argument after the call.DV—Mutated in place; read the updated value from this argument after the call.
GeomFill_Trihedron
Properties(10)
GeomFill_TrihedronLaw
To define Trihedron along one Curve.
Static methods(2)
- get_type_name(): string
Instance methods(14)
- SetCurve(C: Adaptor3d_Curve): boolean
initialize curve of trihedron law
Parameters (1)C
Returnstrue
Give a status to the
LawReturns PipeOk (default implementation).compute Triedrhon on curve at parameter
Parameters (4)ParamTangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.
- D1(Param: number, Tangent: gp_Vec, DTangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec): boolean
compute Triedrhon and derivative Trihedron on curve at parameter Warning : It used only for C1 or C2 approximation
Parameters (7)ParamTangent—Mutated in place; read the updated value from this argument after the call.DTangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.DNormal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.DBiNormal—Mutated in place; read the updated value from this argument after the call.
- D2(Param: number, Tangent: gp_Vec, DTangent: gp_Vec, D2Tangent: gp_Vec, Normal: gp_Vec, DNormal: gp_Vec, D2Normal: gp_Vec, BiNormal: gp_Vec, DBiNormal: gp_Vec, D2BiNormal: gp_Vec): boolean
compute Trihedron on curve first and second derivatives. Warning : It used only for C2 approximation
Parameters (10)ParamTangent—Mutated in place; read the updated value from this argument after the call.DTangent—Mutated in place; read the updated value from this argument after the call.D2Tangent—Mutated in place; read the updated value from this argument after the call.Normal—Mutated in place; read the updated value from this argument after the call.DNormal—Mutated in place; read the updated value from this argument after the call.D2Normal—Mutated in place; read the updated value from this argument after the call.BiNormal—Mutated in place; read the updated value from this argument after the call.DBiNormal—Mutated in place; read the updated value from this argument after the call.D2BiNormal—Mutated in place; read the updated value from this argument after the call.
- 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
- SetInterval(First: number, Last: number): void
Sets the bounds of the parametric interval on the function This determines the derivatives in these values if the function is not Cn.
Parameters (2)FirstLast
- GetInterval(First: number, Last: number): { First: number; Last: number }
Gets the bounds of the parametric interval on the function.
Parameters (2)FirstLast
ReturnsA result object with fields:
First: updated value from the call.Last: updated value from the call.
- GetAverageLaw(ATangent: gp_Vec, ANormal: gp_Vec, ABiNormal: gp_Vec): void
Get average value of M(t) and V(t) it is useful to make fast approximation of rational surfaces.
Parameters (3)ATangent—Mutated in place; read the updated value from this argument after the call.ANormal—Mutated in place; read the updated value from this argument after the call.ABiNormal—Mutated in place; read the updated value from this argument after the call.
- IsConstant(): boolean
Say if the law is Constant.
- IsOnlyBy3dCurve(): boolean
Say if the law is defined, only by the 3d Geometry of the set Curve Return False by Default.
GeomFill_TrihedronWithGuide
To define Trihedron along one Curve with a guide.
Static methods(2)
- get_type_name(): string
Instance methods(4)
- Origine(Param1: number, Param2: number): voidParameters (2)
Param1Param2
Returns the current point on guide found by D0, D1 or D2.
GeomFill_UniformSection
Define an Constant Section Law.
Constructors(1)
- constructor(C: Geom_Curve, FirstParameter?: number, LastParameter?: number): GeomFill_UniformSection
Make an constant
Lawwith C. [First, Last] define law definition domain.Parameters (3)CFirstParameterLastParameter
Static methods(2)
- get_type_name(): string
Instance methods(22)
- D0(Param: number, Poles: NCollection_Array1_gp_Pnt, Weigths: NCollection_Array1_double): boolean
compute the section for v = param
Parameters (3)ParamPoles—Mutated in place; read the updated value from this argument after the call.Weigths—Mutated in place; read the updated value from this argument after the call.
- D1(Param: number, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double): boolean
compute the first derivative in v direction of the section for v = param Warning : It used only for C1 or C2 approximation
Parameters (5)ParamPoles—Mutated in place; read the updated value from this argument after the call.DPoles—Mutated in place; read the updated value from this argument after the call.Weigths—Mutated in place; read the updated value from this argument after the call.DWeigths—Mutated in place; read the updated value from this argument after the call.
- D2(Param: number, Poles: NCollection_Array1_gp_Pnt, DPoles: NCollection_Array1_gp_Vec, D2Poles: NCollection_Array1_gp_Vec, Weigths: NCollection_Array1_double, DWeigths: NCollection_Array1_double, D2Weigths: NCollection_Array1_double): boolean
compute the second derivative in v direction of the section for v = param Warning : It used only for C2 approximation
Parameters (7)ParamPoles—Mutated in place; read the updated value from this argument after the call.DPoles—Mutated in place; read the updated value from this argument after the call.D2Poles—Mutated in place; read the updated value from this argument after the call.Weigths—Mutated in place; read the updated value from this argument after the call.DWeigths—Mutated in place; read the updated value from this argument after the call.D2Weigths—Mutated in place; read the updated value from this argument after the call.
give if possible an bspline Surface, like iso-v are the section. If it is not possible this method have to get an Null Surface. Is it the default implementation.
- SectionShape(NbPoles: number, NbKnots: number, Degree: number): { NbPoles: number; NbKnots: number; Degree: number }
get the format of an section
Parameters (3)NbPolesNbKnotsDegree
ReturnsA result object with fields:
NbPoles: updated value from the call.NbKnots: updated value from the call.Degree: updated value from the call.
- Knots(TKnots: NCollection_Array1_double): void
get the Knots of the section
Parameters (1)TKnots—Mutated in place; read the updated value from this argument after the call.
- Mults(TMults: NCollection_Array1_int): void
get the Multplicities of the section
Parameters (1)TMults—Mutated in place; read the updated value from this argument after the call.
- IsRational(): boolean
Returns if the sections are rational or not.
- IsUPeriodic(): boolean
Returns if the sections are periodic or not.
- IsVPeriodic(): boolean
Returns if the law isperiodic or not.
- 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
- SetInterval(First: number, Last: number): void
Sets the bounds of the parametric interval on the function This determines the derivatives in these values if the function is not Cn.
Parameters (2)FirstLast
- GetInterval(First: number, Last: number): { First: number; Last: number }
Gets the bounds of the parametric interval on the function.
Parameters (2)FirstLast
ReturnsA result object with fields:
First: updated value from the call.Last: updated value from the call.
- GetDomain(First: number, Last: number): { First: number; Last: number }
Gets the bounds of the function parametric domain. Warning: This domain it is not modified by the SetValue method.
Parameters (2)FirstLast
ReturnsA result object with fields:
First: updated value from the call.Last: updated value from the call.
- GetTolerance(BoundTol: number, SurfTol: number, AngleTol: number, Tol3d: NCollection_Array1_double): void
Returns the tolerances associated at each poles to reach in approximation, to satisfy: BoundTol error at the Boundary AngleTol tangent error at the Boundary (in radian) SurfTol error inside the surface.
Parameters (4)BoundTolSurfTolAngleTolTol3d—Mutated in place; read the updated value from this argument after the call.
Get the barycentre of Surface. An very poor estimation is sufficient. This information is useful to perform well conditioned rational approximation. Warning: Used only if <me> IsRational.
- MaximalSection(): number
Returns the length of the greater section. This information is useful to G1's control. Warning: With an little value, approximation can be slower.
- GetMinimalWeight(Weigths: NCollection_Array1_double): void
Compute the minimal value of weight for each poles in all sections. This information is useful to control error in rational approximation. Warning: Used only if <me> IsRational.
Parameters (1)Weigths—Mutated in place; read the updated value from this argument after the call.
- IsConstant(Error: number): { returnValue: boolean; Error: number }
return True
Parameters (1)Error
ReturnsA result object with fields:
returnValue: the C++ return valueError: updated value from the call.
Return the constant Section if <me> IsConstant.