BRepLProp
OCCT package BRepLProp: BRepLProp, BRepLProp_CLProps, BRepLProp_SLProps, BRepLProp_SurfaceTool.
BRepLProp
These global functions compute the degree of continuity of a curve built by concatenation of two edges at their junction point.
Constructors(1)
Static methods(2)
- Continuity(C1: BRepAdaptor_Curve, C2: BRepAdaptor_Curve, u1: number, u2: number, tl: number, ta: number): GeomAbs_Shape
Computes the regularity at the junction between C1 and C2. 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 (6)C1C2u1u2tlta
- Continuity(C1: BRepAdaptor_Curve, C2: BRepAdaptor_Curve, u1: number, u2: number): GeomAbs_Shape
The same as preceding but using the standard tolerances from package
Precision.Parameters (4)C1C2u1u2
BRepLProp_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): BRepLProp_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: BRepAdaptor_Curve, N: number, Resolution: number): BRepLProp_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: BRepAdaptor_Curve, U: number, N: number, Resolution: number): BRepLProp_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: BRepAdaptor_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
BRepLProp_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): BRepLProp_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: BRepAdaptor_Surface, N: number, Resolution: number): BRepLProp_SLProps
idem as previous constructor but without setting the value of parameters and <V>.
Parameters (3)SNResolution
- constructor(S: BRepAdaptor_Surface, U: number, V: number, N: number, Resolution: number): BRepLProp_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: BRepAdaptor_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.
BRepLProp_SurfaceTool
Constructors(1)
Static methods(6)
- Value(S: BRepAdaptor_Surface, U: number, V: number, P: gp_Pnt): void
Computes the point.
of parameter and <V> on the Surface .Parameters (4)SUVP—Mutated in place; read the updated value from this argument after the call.
- D1(S: BRepAdaptor_Surface, U: number, V: number, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec): void
Computes the point.
and first derivative <D1*> of parameter and <V> on the Surface .Parameters (6)SUVP—Mutated in place; read the updated value from this argument after the call.D1U—Mutated in place; read the updated value from this argument after the call.D1V—Mutated in place; read the updated value from this argument after the call.
- D2(S: BRepAdaptor_Surface, U: number, V: number, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, DUV: gp_Vec): void
Computes the point.
, the first derivative <D1*> and second derivative <D2*> of parameter and <V> on the Surface .Parameters (9)SUVP—Mutated in place; read the updated value from this argument after the call.D1U—Mutated in place; read the updated value from this argument after the call.D1V—Mutated in place; read the updated value from this argument after the call.D2U—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.DUV—Mutated in place; read the updated value from this argument after the call.
- DN(S: BRepAdaptor_Surface, U: number, V: number, IU: number, IV: number): gp_VecParameters (5)
SUVIUIV
- Continuity(S: BRepAdaptor_Surface): number
returns the order of continuity of the Surface . returns 1 : first derivative only is computable returns 2 : first and second derivative only are computable.
Parameters (1)S
- Bounds(S: BRepAdaptor_Surface, U1: number, V1: number, U2: number, V2: number): { U1: number; V1: number; U2: number; V2: number }
returns the bounds of the Surface.
Parameters (5)SU1V1U2V2
ReturnsA result object with fields:
U1: updated value from the call.V1: updated value from the call.U2: updated value from the call.V2: updated value from the call.
BRepGraphInc
OCCT package BRepGraphInc: BRepGraphInc_BaseDef, BRepGraphInc_BaseRef, BRepGraphInc_BaseRep, BRepGraphInc_ChildRef, and 32 more bound classes.
BRepTools
OCCT package BRepTools: BRepTools, BRepTools_CopyModification, BRepTools_GTrsfModification, BRepTools_History, and 10 more bound classes.