GeomLProp
OCCT package GeomLProp: GeomLProp, GeomLProp_CLProps, GeomLProp_CLProps2d, GeomLProp_CurAndInf2d, and 2 more bound classes.
GeomLProp
These global functions compute the degree of continuity of a 3D curve built by concatenation of two other curves (or portions of curves) at their junction point.
Constructors(1)
Static methods(2)
- Continuity(C1: Geom_Curve, C2: Geom_Curve, u1: number, u2: number, r1: boolean, r2: boolean, tl: number, ta: number): GeomAbs_Shape
Computes the regularity at the junction between C1 and C2. The booleans r1 and r2 are true if the curves must be taken reversed. The point u1 on C1 and the point u2 on C2 must be confused. tl and ta are the linear and angular tolerance used two compare the derivative.
Parameters (8)C1C2u1u2r1r2tlta
- Continuity(C1: Geom_Curve, C2: Geom_Curve, u1: number, u2: number, r1: boolean, r2: boolean): GeomAbs_Shape
The same as preceding but using the standard tolerances from package
Precision.Parameters (6)C1C2u1u2r1r2
GeomLProp_CLProps
Implementation class for computing local properties of a curve: point, derivatives up to order 3, tangent, curvature, normal, and centre of curvature. Parameterized by geometric types (Pnt/Vec/Dir) and curve type.
Constructors(3)
- constructor(N: number, Resolution: number): GeomLProp_CLProps
Same as previous constructor but here the parameter is set to the value and the curve is set with SetCurve. the curve can have a empty constructor All the computations done will be related to
and when the functions "set" will be done.Parameters (2)NResolution
- constructor(C: Geom_Curve, N: number, Resolution: number): GeomLProp_CLProps
Initializes the local properties of the curve
The current point and the derivatives are computed at the same time, which allows an optimization of the computation time. <N> indicates the maximum number of derivations to be done (0, 1, 2 or 3). For example, to compute only the tangent, N should be equal to 1. <Resolution> is the linear tolerance (it is used to test if a vector is null).Parameters (3)CNResolution
- constructor(C: Geom_Curve, U: number, N: number, Resolution: number): GeomLProp_CLProps
Same as previous constructor but here the parameter is set to the value . All the computations done will be related to
and .Parameters (4)CUNResolution
Instance methods(11)
- SetParameter(U: number): void
Initializes the local properties of the curve for the parameter value .
Parameters (1)U
- SetCurve(C: Geom_Curve): void
Initializes the local properties of the curve for the new curve.
Parameters (1)C
Returns the Point.
Returns the first derivative. The derivative is computed if it has not been yet.
Returns the second derivative. The derivative is computed if it has not been yet.
Returns the third derivative. The derivative is computed if it has not been yet.
- IsTangentDefined(): boolean
Returns True if the tangent is defined. For example, the tangent is not defined if the three first derivatives are all null.
output the tangent direction <D>.
Parameters (1)D
- Curvature(): number
Returns the curvature.
Returns the normal direction <N>.
Parameters (1)N
- CentreOfCurvature(P: gp_Pnt): void
Returns the centre of curvature.
.Parameters (1)P
GeomLProp_CLProps2d
Implementation class for computing local properties of a curve: point, derivatives up to order 3, tangent, curvature, normal, and centre of curvature. Parameterized by geometric types (Pnt/Vec/Dir) and curve type.
Constructors(3)
- constructor(N: number, Resolution: number): GeomLProp_CLProps2d
Same as previous constructor but here the parameter is set to the value and the curve is set with SetCurve. the curve can have a empty constructor All the computations done will be related to
and when the functions "set" will be done.Parameters (2)NResolution
- constructor(C: Geom2d_Curve, N: number, Resolution: number): GeomLProp_CLProps2d
Initializes the local properties of the curve
The current point and the derivatives are computed at the same time, which allows an optimization of the computation time. <N> indicates the maximum number of derivations to be done (0, 1, 2 or 3). For example, to compute only the tangent, N should be equal to 1. <Resolution> is the linear tolerance (it is used to test if a vector is null).Parameters (3)CNResolution
- constructor(C: Geom2d_Curve, U: number, N: number, Resolution: number): GeomLProp_CLProps2d
Same as previous constructor but here the parameter is set to the value . All the computations done will be related to
and .Parameters (4)CUNResolution
Instance methods(11)
- SetParameter(U: number): void
Initializes the local properties of the curve for the parameter value .
Parameters (1)U
- SetCurve(C: Geom2d_Curve): void
Initializes the local properties of the curve for the new curve.
Parameters (1)C
Returns the Point.
Returns the first derivative. The derivative is computed if it has not been yet.
Returns the second derivative. The derivative is computed if it has not been yet.
Returns the third derivative. The derivative is computed if it has not been yet.
- IsTangentDefined(): boolean
Returns True if the tangent is defined. For example, the tangent is not defined if the three first derivatives are all null.
output the tangent direction <D>.
Parameters (1)D
- Curvature(): number
Returns the curvature.
Returns the normal direction <N>.
Parameters (1)N
- CentreOfCurvature(P: gp_Pnt2d): void
Returns the centre of curvature.
.Parameters (1)P
GeomLProp_CurAndInf2d
An algorithm for computing local properties of a curve. These properties include:
- the maximum and minimum curvatures
- the inflection points. A CurAndInf2d object provides the framework for:
- defining the curve to be analyzed
- implementing the computation algorithms
- consulting the results.
Constructors(1)
Initializes the framework. Note: The curve on which the local properties are computed is defined using one of the following functions: Perform, PerformCurExt or PerformInf.
Instance methods(4)
- Perform(C: Geom2d_Curve): void
For the curve C, Computes both the inflection points and the maximum and minimum curvatures.
Parameters (1)C
- PerformCurExt(C: Geom2d_Curve): void
For the curve C, Computes the locals extremas of curvature.
Parameters (1)C
- PerformInf(C: Geom2d_Curve): void
For the curve C, Computes the inflections. After computation, the following functions can be used:
- IsDone to check if the computation was successful
- NbPoints to obtain the number of computed particular points
- Parameter to obtain the parameter on the curve for each particular point
- Type to check if the point is an inflection point or an extremum of curvature of the curve C. Warning These functions can be used to analyze a series of curves, however it is necessary to clear the table of results between each computation.
Parameters (1)C
- IsDone(): boolean
True if the solutions are found.
GeomLProp_SLProps
Template class for computing local properties of a 3D surface: point, first and second derivatives, tangent directions, normal, and curvature analysis (max, min, mean, Gaussian).
Constructors(3)
- constructor(N: number, Resolution: number): GeomLProp_SLProps
idem as previous constructor but without setting the value of parameters and <V> and the surface. the surface can have an empty constructor.
Parameters (2)NResolution
- constructor(S: Geom_Surface, N: number, Resolution: number): GeomLProp_SLProps
idem as previous constructor but without setting the value of parameters and <V>.
Parameters (3)SNResolution
- constructor(S: Geom_Surface, U: number, V: number, N: number, Resolution: number): GeomLProp_SLProps
Initializes the local properties of the surface for the parameter values (, <V>). The current point and the derivatives are computed at the same time, which allows an optimization of the computation time. <N> indicates the maximum number of derivations to be done (0, 1, or 2). For example, to compute only the tangent, N should be equal to 1. <Resolution> is the linear tolerance (it is used to test if a vector is null).
Parameters (5)SUVNResolution
Instance methods(21)
- SetSurface(S: Geom_Surface): void
Initializes the local properties of the surface S for the new surface.
Parameters (1)S
- SetParameters(U: number, V: number): void
Initializes the local properties of the surface S for the new parameter values (, <V>).
Parameters (2)UV
Returns the point.
Returns the first U derivative. The derivative is computed if it has not been yet.
Returns the first V derivative. The derivative is computed if it has not been yet.
Returns the second U derivatives The derivative is computed if it has not been yet.
Returns the second V derivative. The derivative is computed if it has not been yet.
Returns the second UV cross-derivative. The derivative is computed if it has not been yet.
- IsTangentUDefined(): boolean
returns True if the U tangent is defined. For example, the tangent is not defined if the two first U derivatives are null.
Returns the tangent direction <D> on the iso-V.
Parameters (1)D—Mutated in place; read the updated value from this argument after the call.
- IsTangentVDefined(): boolean
returns if the V tangent is defined. For example, the tangent is not defined if the two first V derivatives are null.
Returns the tangent direction <D> on the iso-V.
Parameters (1)D—Mutated in place; read the updated value from this argument after the call.
- IsNormalDefined(): boolean
Tells if the normal is defined.
Returns the normal direction.
- IsCurvatureDefined(): boolean
returns True if the curvature is defined.
- IsUmbilic(): boolean
returns True if the point is umbilic (i.e. if the curvature is constant).
- MaxCurvature(): number
Returns the maximum curvature.
- MinCurvature(): number
Returns the minimum curvature.
- CurvatureDirections(MaxD: gp_Dir, MinD: gp_Dir): void
Returns the direction of the maximum and minimum curvature <MaxD> and <MinD>.
Parameters (2)MaxD—Mutated in place; read the updated value from this argument after the call.MinD—Mutated in place; read the updated value from this argument after the call.
- MeanCurvature(): number
Returns the mean curvature.
- GaussianCurvature(): number
Returns the Gaussian curvature.