LProp
OCCT package LProp: LProp_BadContinuity, LProp_CIType, LProp_CLProps3d, LProp_CurAndInf, and 4 more bound classes.
LProp_BadContinuity
Constructors(2)
- constructor(theMessage: string): LProp_BadContinuityParameters (1)
theMessage
- constructor(theMessage: string, theStackTrace: string): LProp_BadContinuityParameters (2)
theMessagetheStackTrace
Instance methods(1)
- ExceptionType(): string
LProp_CIType
Properties(3)
LProp_CLProps3d
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): LProp_CLProps3d
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: Adaptor3d_Curve, N: number, Resolution: number): LProp_CLProps3d
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: Adaptor3d_Curve, U: number, N: number, Resolution: number): LProp_CLProps3d
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: Adaptor3d_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
LProp_CurAndInf
Stores the parameters of a curve 2d or 3d corresponding to the curvature's extremas and the Inflection's Points.
Constructors(1)
Instance methods(7)
- AddInflection(Param: number): voidParameters (1)
Param
- AddExtCur(Param: number, IsMin: boolean): voidParameters (2)
ParamIsMin
- Clear(): void
- IsEmpty(): boolean
- NbPoints(): number
Returns the number of points. The Points are stored to increasing parameter.
- Parameter(N: number): number
Returns the parameter of the Nth point. raises if N not in the range [1,
NbPoints()].Parameters (1)N
- Type(N: number): LProp_CIType
Returns.
- MinCur if the Nth parameter corresponds to a minimum of the radius of curvature.
- MaxCur if the Nth parameter corresponds to a maximum of the radius of curvature.
- Inflection if the parameter corresponds to a point of inflection. raises if N not in the range [1,
NbPoints()]
Parameters (1)N
LProp_CurveUtils_DirectAccess
Constructors(1)
LProp_NotDefined
Constructors(2)
- constructor(theMessage: string): LProp_NotDefinedParameters (1)
theMessage
- constructor(theMessage: string, theStackTrace: string): LProp_NotDefinedParameters (2)
theMessagetheStackTrace
Instance methods(1)
- ExceptionType(): string
LProp_SLProps3d
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): LProp_SLProps3d
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: Adaptor3d_Surface, N: number, Resolution: number): LProp_SLProps3d
idem as previous constructor but without setting the value of parameters and <V>.
Parameters (3)SNResolution
- constructor(S: Adaptor3d_Surface, U: number, V: number, N: number, Resolution: number): LProp_SLProps3d
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: Adaptor3d_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.