ElSLib
OCCT package ElSLib: ElSLib.
ElSLib
Provides functions for basic geometric computation on elementary surfaces. This includes:
- calculation of a point or derived vector on a surface where the surface is provided by the gp package, or defined in canonical form (as in the gp package), and the point is defined with a parameter,
- evaluation of the parameters corresponding to a point on an elementary surface from gp,
- calculation of isoparametric curves on an elementary surface defined in canonical form (as in the gp package). Notes:
ElSLibstands for Elementary Surfaces Library.- If the surfaces provided by the gp package are not explicitly parameterized, they still have an implicit parameterization, similar to that which they infer on the equivalent Geom surfaces. Note:
ElSLibstands for Elementary Surfaces Library.
Constructors(1)
Static methods(76)
For elementary surfaces from the gp package (planes, cones, cylinders, spheres and tori), computes the point of parameters (U, V).
Parameters (3)UVPl
- Parameters (3)
UVC
- Value(U: number, V: number, C: gp_Cylinder): gp_PntParameters (3)
UVC
- Parameters (3)
UVS
- Parameters (3)
UVT
For elementary surfaces from the gp package (planes, cones, cylinders, spheres and tori), computes the derivative vector of order Nu and Nv in the u and v parametric directions respectively, at the point of parameters (U, V).
Parameters (5)UVPlNuNv
- Parameters (5)
UVCNuNv
- DN(U: number, V: number, C: gp_Cylinder, Nu: number, Nv: number): gp_VecParameters (5)
UVCNuNv
- Parameters (5)
UVSNuNv
- Parameters (5)
UVTNuNv
For elementary surfaces from the gp package (planes, cones, cylinders, spheres and tori), computes the point P of parameters (U, V).inline.
Parameters (4)UVPlP—Mutated in place; read the updated value from this argument after the call.
- Parameters (4)
UVCP
- D0(U: number, V: number, C: gp_Cylinder, P: gp_Pnt): voidParameters (4)
UVCP
- Parameters (4)
UVSP
- Parameters (4)
UVTP
For elementary surfaces from the gp package (planes, cones, cylinders, spheres and tori), computes:
- the point P of parameters (U, V), and
- the first derivative vectors Vu and Vv at this point in the u and v parametric directions respectively.
Parameters (6)UVPlP—Mutated in place; read the updated value from this argument after the call.Vu—Mutated in place; read the updated value from this argument after the call.Vv—Mutated in place; read the updated value from this argument after the call.
- Parameters (6)
UVCPVuVv
- D1(U: number, V: number, C: gp_Cylinder, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec): voidParameters (6)
UVCPVuVv
- Parameters (6)
UVSPVuVv
- Parameters (6)
UVTPVuVv
- D2(U: number, V: number, C: gp_Cone, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec): void
For elementary surfaces from the gp package (cones, cylinders, spheres and tori), computes:
- the point P of parameters (U, V), and
- the first derivative vectors Vu and Vv at this point in the u and v parametric directions respectively, and
- the second derivative vectors Vuu, Vvv and Vuv at this point.
Parameters (9)UVCP—Mutated in place; read the updated value from this argument after the call.Vu—Mutated in place; read the updated value from this argument after the call.Vv—Mutated in place; read the updated value from this argument after the call.Vuu—Mutated in place; read the updated value from this argument after the call.Vvv—Mutated in place; read the updated value from this argument after the call.Vuv—Mutated in place; read the updated value from this argument after the call.
- D2(U: number, V: number, C: gp_Cylinder, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec): voidParameters (9)
UVCPVuVvVuuVvvVuv
- D2(U: number, V: number, S: gp_Sphere, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec): voidParameters (9)
UVSPVuVvVuuVvvVuv
- D2(U: number, V: number, T: gp_Torus, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec): voidParameters (9)
UVTPVuVvVuuVvvVuv
- D3(U: number, V: number, C: gp_Cone, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec, Vuuu: gp_Vec, Vvvv: gp_Vec, Vuuv: gp_Vec, Vuvv: gp_Vec): void
For elementary surfaces from the gp package (cones, cylinders, spheres and tori), computes:
- the point P of parameters (U,V), and
- the first derivative vectors Vu and Vv at this point in the u and v parametric directions respectively, and
- the second derivative vectors Vuu, Vvv and Vuv at this point, and
- the third derivative vectors Vuuu, Vvvv, Vuuv and Vuvv at this point.
Parameters (13)UVCP—Mutated in place; read the updated value from this argument after the call.Vu—Mutated in place; read the updated value from this argument after the call.Vv—Mutated in place; read the updated value from this argument after the call.Vuu—Mutated in place; read the updated value from this argument after the call.Vvv—Mutated in place; read the updated value from this argument after the call.Vuv—Mutated in place; read the updated value from this argument after the call.Vuuu—Mutated in place; read the updated value from this argument after the call.Vvvv—Mutated in place; read the updated value from this argument after the call.Vuuv—Mutated in place; read the updated value from this argument after the call.Vuvv—Mutated in place; read the updated value from this argument after the call.
- D3(U: number, V: number, C: gp_Cylinder, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec, Vuuu: gp_Vec, Vvvv: gp_Vec, Vuuv: gp_Vec, Vuvv: gp_Vec): voidParameters (13)
UVCPVuVvVuuVvvVuvVuuuVvvvVuuvVuvv
- D3(U: number, V: number, S: gp_Sphere, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec, Vuuu: gp_Vec, Vvvv: gp_Vec, Vuuv: gp_Vec, Vuvv: gp_Vec): voidParameters (13)
UVSPVuVvVuuVvvVuvVuuuVvvvVuuvVuvv
- D3(U: number, V: number, T: gp_Torus, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec, Vuuu: gp_Vec, Vvvv: gp_Vec, Vuuv: gp_Vec, Vuvv: gp_Vec): void
Surface evaluation The following functions compute the point and the derivatives on elementary surfaces defined with their geometric characteristics. You don't need to create the surface to use these functions. These functions are called by the previous ones. Example: A cylinder is defined with its position and its radius.
Parameters (13)UVTP—Mutated in place; read the updated value from this argument after the call.Vu—Mutated in place; read the updated value from this argument after the call.Vv—Mutated in place; read the updated value from this argument after the call.Vuu—Mutated in place; read the updated value from this argument after the call.Vvv—Mutated in place; read the updated value from this argument after the call.Vuv—Mutated in place; read the updated value from this argument after the call.Vuuu—Mutated in place; read the updated value from this argument after the call.Vvvv—Mutated in place; read the updated value from this argument after the call.Vuuv—Mutated in place; read the updated value from this argument after the call.Vuvv—Mutated in place; read the updated value from this argument after the call.
- PlaneValue(U: number, V: number, Pos: gp_Ax3): gp_PntParameters (3)
UVPos
- CylinderValue(U: number, V: number, Pos: gp_Ax3, Radius: number): gp_PntParameters (4)
UVPosRadius
- Parameters (5)
UVPosRadiusSAngle
- SphereValue(U: number, V: number, Pos: gp_Ax3, Radius: number): gp_PntParameters (4)
UVPosRadius
- TorusValue(U: number, V: number, Pos: gp_Ax3, MajorRadius: number, MinorRadius: number): gp_PntParameters (5)
UVPosMajorRadiusMinorRadius
- Parameters (5)
UVPosNuNv
- CylinderDN(U: number, V: number, Pos: gp_Ax3, Radius: number, Nu: number, Nv: number): gp_VecParameters (6)
UVPosRadiusNuNv
- ConeDN(U: number, V: number, Pos: gp_Ax3, Radius: number, SAngle: number, Nu: number, Nv: number): gp_VecParameters (7)
UVPosRadiusSAngleNuNv
- Parameters (6)
UVPosRadiusNuNv
- TorusDN(U: number, V: number, Pos: gp_Ax3, MajorRadius: number, MinorRadius: number, Nu: number, Nv: number): gp_VecParameters (7)
UVPosMajorRadiusMinorRadiusNuNv
- Parameters (4)
UVPosP
- Parameters (6)
UVPosRadiusSAngleP
- CylinderD0(U: number, V: number, Pos: gp_Ax3, Radius: number, P: gp_Pnt): voidParameters (5)
UVPosRadiusP
- Parameters (5)
UVPosRadiusP
- TorusD0(U: number, V: number, Pos: gp_Ax3, MajorRadius: number, MinorRadius: number, P: gp_Pnt): voidParameters (6)
UVPosMajorRadiusMinorRadiusP
- Parameters (6)
UVPosPVuVv
- ConeD1(U: number, V: number, Pos: gp_Ax3, Radius: number, SAngle: number, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec): voidParameters (8)
UVPosRadiusSAnglePVuVv
- CylinderD1(U: number, V: number, Pos: gp_Ax3, Radius: number, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec): voidParameters (7)
UVPosRadiusPVuVv
- SphereD1(U: number, V: number, Pos: gp_Ax3, Radius: number, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec): voidParameters (7)
UVPosRadiusPVuVv
- TorusD1(U: number, V: number, Pos: gp_Ax3, MajorRadius: number, MinorRadius: number, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec): voidParameters (8)
UVPosMajorRadiusMinorRadiusPVuVv
- ConeD2(U: number, V: number, Pos: gp_Ax3, Radius: number, SAngle: number, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec): voidParameters (11)
UVPosRadiusSAnglePVuVvVuuVvvVuv
- CylinderD2(U: number, V: number, Pos: gp_Ax3, Radius: number, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec): voidParameters (10)
UVPosRadiusPVuVvVuuVvvVuv
- SphereD2(U: number, V: number, Pos: gp_Ax3, Radius: number, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec): voidParameters (10)
UVPosRadiusPVuVvVuuVvvVuv
- TorusD2(U: number, V: number, Pos: gp_Ax3, MajorRadius: number, MinorRadius: number, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec): voidParameters (11)
UVPosMajorRadiusMinorRadiusPVuVvVuuVvvVuv
- ConeD3(U: number, V: number, Pos: gp_Ax3, Radius: number, SAngle: number, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec, Vuuu: gp_Vec, Vvvv: gp_Vec, Vuuv: gp_Vec, Vuvv: gp_Vec): voidParameters (15)
UVPosRadiusSAnglePVuVvVuuVvvVuvVuuuVvvvVuuvVuvv
- CylinderD3(U: number, V: number, Pos: gp_Ax3, Radius: number, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec, Vuuu: gp_Vec, Vvvv: gp_Vec, Vuuv: gp_Vec, Vuvv: gp_Vec): voidParameters (14)
UVPosRadiusPVuVvVuuVvvVuvVuuuVvvvVuuvVuvv
- SphereD3(U: number, V: number, Pos: gp_Ax3, Radius: number, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec, Vuuu: gp_Vec, Vvvv: gp_Vec, Vuuv: gp_Vec, Vuvv: gp_Vec): voidParameters (14)
UVPosRadiusPVuVvVuuVvvVuvVuuuVvvvVuuvVuvv
- TorusD3(U: number, V: number, Pos: gp_Ax3, MajorRadius: number, MinorRadius: number, P: gp_Pnt, Vu: gp_Vec, Vv: gp_Vec, Vuu: gp_Vec, Vvv: gp_Vec, Vuv: gp_Vec, Vuuu: gp_Vec, Vvvv: gp_Vec, Vuuv: gp_Vec, Vuvv: gp_Vec): void
The following functions compute the parametric values corresponding to a given point on a elementary surface. The point should be on the surface.
Parameters (15)UVPosMajorRadiusMinorRadiusP—Mutated in place; read the updated value from this argument after the call.Vu—Mutated in place; read the updated value from this argument after the call.Vv—Mutated in place; read the updated value from this argument after the call.Vuu—Mutated in place; read the updated value from this argument after the call.Vvv—Mutated in place; read the updated value from this argument after the call.Vuv—Mutated in place; read the updated value from this argument after the call.Vuuu—Mutated in place; read the updated value from this argument after the call.Vvvv—Mutated in place; read the updated value from this argument after the call.Vuuv—Mutated in place; read the updated value from this argument after the call.Vuvv—Mutated in place; read the updated value from this argument after the call.
- Parameters(Pl: gp_Pln, P: gp_Pnt, U: number, V: number): { U: number; V: number }
parametrization P (U, V) = Pl.Location() + U * Pl.XDirection() + V * Pl.YDirection()
Parameters (4)PlPUV
ReturnsA result object with fields:
U: updated value from the call.V: updated value from the call.
- Parameters(C: gp_Cylinder, P: gp_Pnt, U: number, V: number): { U: number; V: number }
parametrization P (U, V) = Location + V * ZDirection + Radius * (std::cos(U) * XDirection + Sin (U) * YDirection)
Parameters (4)CPUV
ReturnsA result object with fields:
U: updated value from the call.V: updated value from the call.
- Parameters(C: gp_Cone, P: gp_Pnt, U: number, V: number): { U: number; V: number }
parametrization P (U, V) = Location + V * ZDirection + (Radius + V * Tan (SemiAngle)) * (std::cos(U) * XDirection + std::sin(U) * YDirection)
Parameters (4)CPUV
ReturnsA result object with fields:
U: updated value from the call.V: updated value from the call.
- Parameters(S: gp_Sphere, P: gp_Pnt, U: number, V: number): { U: number; V: number }
parametrization P (U, V) = Location + Radius * Cos (V) * (Cos (U) * XDirection + Sin (U) * YDirection) + Radius * Sin (V) * ZDirection
Parameters (4)SPUV
ReturnsA result object with fields:
U: updated value from the call.V: updated value from the call.
- Parameters(T: gp_Torus, P: gp_Pnt, U: number, V: number): { U: number; V: number }
parametrization P (U, V) = Location + (MajorRadius + MinorRadius * std::cos(U)) * (std::cos(V) * XDirection - std::sin(V) * YDirection) + MinorRadius * std::sin(U) * ZDirection
Parameters (4)TPUV
ReturnsA result object with fields:
U: updated value from the call.V: updated value from the call.
- PlaneParameters(Pos: gp_Ax3, P: gp_Pnt, U: number, V: number): { U: number; V: number }
parametrization P (U, V) = Pl.Location() + U * Pl.XDirection() + V * Pl.YDirection()
Parameters (4)PosPUV
ReturnsA result object with fields:
U: updated value from the call.V: updated value from the call.
- CylinderParameters(Pos: gp_Ax3, Radius: number, P: gp_Pnt, U: number, V: number): { U: number; V: number }
parametrization P (U, V) = Location + V * ZDirection + Radius * (std::cos(U) * XDirection + Sin (U) * YDirection)
Parameters (5)PosRadiusPUV
ReturnsA result object with fields:
U: updated value from the call.V: updated value from the call.
- ConeParameters(Pos: gp_Ax3, Radius: number, SAngle: number, P: gp_Pnt, U: number, V: number): { U: number; V: number }
parametrization P (U, V) = Location + V * ZDirection + (Radius + V * Tan (SemiAngle)) * (std::cos(U) * XDirection + std::sin(U) * YDirection)
Parameters (6)PosRadiusSAnglePUV
ReturnsA result object with fields:
U: updated value from the call.V: updated value from the call.
- SphereParameters(Pos: gp_Ax3, Radius: number, P: gp_Pnt, U: number, V: number): { U: number; V: number }
parametrization P (U, V) = Location + Radius * Cos (V) * (Cos (U) * XDirection + Sin (U) * YDirection) + Radius * Sin (V) * ZDirection
Parameters (5)PosRadiusPUV
ReturnsA result object with fields:
U: updated value from the call.V: updated value from the call.
- TorusParameters(Pos: gp_Ax3, MajorRadius: number, MinorRadius: number, P: gp_Pnt, U: number, V: number): { U: number; V: number }
parametrization P (U, V) = Location + (MajorRadius + MinorRadius * std::cos(U)) * (std::cos(V) * XDirection - std::sin(V) * YDirection) + MinorRadius * std::sin(U) * ZDirection
Parameters (6)PosMajorRadiusMinorRadiusPUV
ReturnsA result object with fields:
U: updated value from the call.V: updated value from the call.
compute the U Isoparametric
gp_Linof the plane.Parameters (2)PosU
- CylinderUIso(Pos: gp_Ax3, Radius: number, U: number): gp_Lin
compute the U Isoparametric
gp_Linof the cylinder.Parameters (3)PosRadiusU
compute the U Isoparametric
gp_Linof the cone.Parameters (4)PosRadiusSAngleU
- SphereUIso(Pos: gp_Ax3, Radius: number, U: number): gp_Circ
compute the U Isoparametric
gp_Circof the sphere, (the meridian is not trimmed).Parameters (3)PosRadiusU
compute the U Isoparametric
gp_Circof the torus.Parameters (4)PosMajorRadiusMinorRadiusU
compute the V Isoparametric
gp_Linof the plane.Parameters (2)PosV
- CylinderVIso(Pos: gp_Ax3, Radius: number, V: number): gp_Circ
compute the V Isoparametric
gp_Circof the cylinder.Parameters (3)PosRadiusV
compute the V Isoparametric
gp_Circof the cone.Parameters (4)PosRadiusSAngleV
- SphereVIso(Pos: gp_Ax3, Radius: number, V: number): gp_Circ
compute the V Isoparametric
gp_Circof the sphere, (the meridian is not trimmed).Parameters (3)PosRadiusV
compute the V Isoparametric
gp_Circof the torus.Parameters (4)PosMajorRadiusMinorRadiusV