OCC.Core.BRepLProp module¶
BRepLProp module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_breplprop.html
-
class
BRepLProp_CLProps
(*args)¶ Bases:
object
- Initializes the local properties of the curve <C> 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).
- param C
- type C
BRepAdaptor_Curve
- param N
- type N
int
- param Resolution
- type Resolution
float
- rtype
None* Same as previous constructor but here the parameter is set to the value <U>. All the computations done will be related to <C> and <U>.
- param C
- type C
BRepAdaptor_Curve
- param U
- type U
float
- param N
- type N
int
- param Resolution
- type Resolution
float
- rtype
None* Same as previous constructor but here the parameter is set to the value <U> and the curve is set with SetCurve. the curve can have a empty constructor All the computations done will be related to <C> and <U> when the functions ‘set’ will be done.
- param N
- type N
int
- param Resolution
- type Resolution
float
- rtype
None
-
CentreOfCurvature
()¶ - Returns the centre of curvature <P>.
- param P
- type P
gp_Pnt
- rtype
None
-
Curvature
()¶ - Returns the curvature.
- rtype
float
-
D1
()¶ - Returns the first derivative. The derivative is computed if it has not been yet.
- rtype
gp_Vec
-
D2
()¶ - Returns the second derivative. The derivative is computed if it has not been yet.
- rtype
gp_Vec
-
D3
()¶ - Returns the third derivative. The derivative is computed if it has not been yet.
- rtype
gp_Vec
-
IsTangentDefined
()¶ - Returns True if the tangent is defined. For example, the tangent is not defined if the three first derivatives are all null.
- rtype
bool
-
Normal
()¶ - Returns the normal direction <N>.
- param N
- type N
gp_Dir
- rtype
None
-
SetCurve
()¶ - Initializes the local properties of the curve for the new curve.
- param C
- type C
BRepAdaptor_Curve
- rtype
None
-
SetParameter
()¶ - Initializes the local properties of the curve for the parameter value <U>.
- param U
- type U
float
- rtype
None
-
Tangent
()¶ - output the tangent direction <D>
- param D
- type D
gp_Dir
- rtype
None
-
Value
()¶ - Returns the Point.
- rtype
gp_Pnt
-
property
thisown
¶ The membership flag
-
class
BRepLProp_CurveTool
¶ Bases:
object
-
static
Continuity
()¶ - returns the order of continuity of the curve <C>. returns 1first derivative only is computable returns 2first and second derivative only are computable. returns 3first, second and third are computable.
- param C
- type C
BRepAdaptor_Curve
- rtype
int
-
static
D1
()¶ - Computes the point <P> and first derivative <V1> of parameter <U> on the curve <C>.
- param C
- type C
BRepAdaptor_Curve
- param U
- type U
float
- param P
- type P
gp_Pnt
- param V1
- type V1
gp_Vec
- rtype
void
-
static
D2
()¶ - Computes the point <P>, the first derivative <V1> and second derivative <V2> of parameter <U> on the curve <C>.
- param C
- type C
BRepAdaptor_Curve
- param U
- type U
float
- param P
- type P
gp_Pnt
- param V1
- type V1
gp_Vec
- param V2
- type V2
gp_Vec
- rtype
void
-
static
D3
()¶ - Computes the point <P>, the first derivative <V1>, the second derivative <V2> and third derivative <V3> of parameter <U> on the curve <C>.
- param C
- type C
BRepAdaptor_Curve
- param U
- type U
float
- param P
- type P
gp_Pnt
- param V1
- type V1
gp_Vec
- param V2
- type V2
gp_Vec
- param V3
- type V3
gp_Vec
- rtype
void
-
static
FirstParameter
()¶ - returns the first parameter bound of the curve.
- param C
- type C
BRepAdaptor_Curve
- rtype
float
-
static
LastParameter
()¶ - returns the last parameter bound of the curve. FirstParameter must be less than LastParamenter.
- param C
- type C
BRepAdaptor_Curve
- rtype
float
-
static
Value
()¶ - Computes the point <P> of parameter <U> on the curve <C>.
- param C
- type C
BRepAdaptor_Curve
- param U
- type U
float
- param P
- type P
gp_Pnt
- rtype
void
-
property
thisown
¶ The membership flag
-
static
-
class
BRepLProp_SLProps
(*args)¶ Bases:
object
- Initializes the local properties of the surface <S> for the parameter values (<U>, <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).
- param S
- type S
BRepAdaptor_Surface
- param U
- type U
float
- param V
- type V
float
- param N
- type N
int
- param Resolution
- type Resolution
float
- rtype
None* idem as previous constructor but without setting the value of parameters <U> and <V>.
- param S
- type S
BRepAdaptor_Surface
- param N
- type N
int
- param Resolution
- type Resolution
float
- rtype
None* idem as previous constructor but without setting the value of parameters <U> and <V> and the surface. the surface can have an empty constructor.
- param N
- type N
int
- param Resolution
- type Resolution
float
- rtype
None
-
CurvatureDirections
()¶ - Returns the direction of the maximum and minimum curvature <MaxD> and <MinD>
- param MaxD
- type MaxD
gp_Dir
- param MinD
- type MinD
gp_Dir
- rtype
None
-
D1U
()¶ - Returns the first U derivative. The derivative is computed if it has not been yet.
- rtype
gp_Vec
-
D1V
()¶ - Returns the first V derivative. The derivative is computed if it has not been yet.
- rtype
gp_Vec
-
D2U
()¶ - Returns the second U derivatives The derivative is computed if it has not been yet.
- rtype
gp_Vec
-
D2V
()¶ - Returns the second V derivative. The derivative is computed if it has not been yet.
- rtype
gp_Vec
-
DUV
()¶ - Returns the second UV cross-derivative. The derivative is computed if it has not been yet.
- rtype
gp_Vec
-
GaussianCurvature
()¶ - Returns the Gaussian curvature
- rtype
float
-
IsCurvatureDefined
()¶ - returns True if the curvature is defined.
- rtype
bool
-
IsNormalDefined
()¶ - Tells if the normal is defined.
- rtype
bool
-
IsTangentUDefined
()¶ - returns True if the U tangent is defined. For example, the tangent is not defined if the two first U derivatives are null.
- rtype
bool
-
IsTangentVDefined
()¶ - returns if the V tangent is defined. For example, the tangent is not defined if the two first V derivatives are null.
- rtype
bool
-
IsUmbilic
()¶ - returns True if the point is umbilic (i.e. if the curvature is constant).
- rtype
bool
-
MaxCurvature
()¶ - Returns the maximum curvature
- rtype
float
-
MeanCurvature
()¶ - Returns the mean curvature.
- rtype
float
-
MinCurvature
()¶ - Returns the minimum curvature
- rtype
float
-
Normal
()¶ - Returns the normal direction.
- rtype
gp_Dir
-
SetParameters
()¶ - Initializes the local properties of the surface S for the new parameter values (<U>, <V>).
- param U
- type U
float
- param V
- type V
float
- rtype
None
-
SetSurface
()¶ - Initializes the local properties of the surface S for the new surface.
- param S
- type S
BRepAdaptor_Surface
- rtype
None
-
TangentU
()¶ - Returns the tangent direction <D> on the iso-V.
- param D
- type D
gp_Dir
- rtype
None
-
TangentV
()¶ - Returns the tangent direction <D> on the iso-V.
- param D
- type D
gp_Dir
- rtype
None
-
Value
()¶ - Returns the point.
- rtype
gp_Pnt
-
property
thisown
¶ The membership flag
-
class
BRepLProp_SurfaceTool
¶ Bases:
object
-
static
Bounds
()¶ - returns the bounds of the Surface.
- param S
- type S
BRepAdaptor_Surface
- param U1
- type U1
float
- param V1
- type V1
float
- param U2
- type U2
float
- param V2
- type V2
float
- rtype
void
-
static
Continuity
()¶ - returns the order of continuity of the Surface <S>. returns 1first derivative only is computable returns 2first and second derivative only are computable.
- param S
- type S
BRepAdaptor_Surface
- rtype
int
-
static
D1
()¶ - Computes the point <P> and first derivative <D1*> of parameter <U> and <V> on the Surface <S>.
- param S
- type S
BRepAdaptor_Surface
- param U
- type U
float
- param V
- type V
float
- param P
- type P
gp_Pnt
- param D1U
- type D1U
gp_Vec
- param D1V
- type D1V
gp_Vec
- rtype
void
-
static
D2
()¶ - Computes the point <P>, the first derivative <D1*> and second derivative <D2*> of parameter <U> and <V> on the Surface <S>.
- param S
- type S
BRepAdaptor_Surface
- param U
- type U
float
- param V
- type V
float
- param P
- type P
gp_Pnt
- param D1U
- type D1U
gp_Vec
- param D1V
- type D1V
gp_Vec
- param D2U
- type D2U
gp_Vec
- param D2V
- type D2V
gp_Vec
- param DUV
- type DUV
gp_Vec
- rtype
void
-
static
DN
()¶ - Parameters
S –
- type S
BRepAdaptor_Surface
- param U
- type U
float
- param V
- type V
float
- param IU
- type IU
int
- param IV
- type IV
int
- rtype
gp_Vec
-
static
Value
()¶ - Computes the point <P> of parameter <U> and <V> on the Surface <S>.
- param S
- type S
BRepAdaptor_Surface
- param U
- type U
float
- param V
- type V
float
- param P
- type P
gp_Pnt
- rtype
void
-
property
thisown
¶ The membership flag
-
static
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
property
thisown
¶ The membership flag
-
value
()¶
-
-
class
breplprop
¶ Bases:
object
-
static
Continuity
()¶ - 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.
- param C1
- type C1
BRepAdaptor_Curve
- param C2
- type C2
BRepAdaptor_Curve
- param u1
- type u1
float
- param u2
- type u2
float
- param tl
- type tl
float
- param ta
- type ta
float
- rtype
GeomAbs_Shape* The same as preciding but using the standard tolerances from package Precision.
- param C1
- type C1
BRepAdaptor_Curve
- param C2
- type C2
BRepAdaptor_Curve
- param u1
- type u1
float
- param u2
- type u2
float
- rtype
GeomAbs_Shape
-
property
thisown
¶ The membership flag
-
static