OCC.ElSLib module

class OCC.ElSLib.SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
thisown

The membership flag

value()
class OCC.ElSLib.elslib(*args, **kwargs)

Bases: object

static ConeD0(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • SAngle (float) –
  • P (gp_Pnt) –
Return type:

void

static ConeD1(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • SAngle (float) –
  • P (gp_Pnt) –
  • Vu (gp_Vec) –
  • Vv (gp_Vec) –
Return type:

void

static ConeD2(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • SAngle (float) –
  • P (gp_Pnt) –
  • Vu (gp_Vec) –
  • Vv (gp_Vec) –
  • Vuu (gp_Vec) –
  • Vvv (gp_Vec) –
  • Vuv (gp_Vec) –
Return type:

void

static ConeD3(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • SAngle (float) –
  • 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) –
Return type:

void

static ConeDN(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • SAngle (float) –
  • Nu (Standard_Integer) –
  • Nv (Standard_Integer) –
Return type:

gp_Vec

static ConeParameters(*args)
  • parametrization P (U, V) = Location + V * ZDirection + (Radius + V * Tan (SemiAngle)) * (Cos(U) * XDirection + Sin(U) * YDirection)
Parameters:
  • Pos (gp_Ax3) –
  • Radius (float) –
  • SAngle (float) –
  • P (gp_Pnt) –
  • U (float &) –
  • V (float &) –
Return type:

void

static ConeUIso(*args)
  • compute the U Isoparametric gp_Lin of the cone.
Parameters:
  • Pos (gp_Ax3) –
  • Radius (float) –
  • SAngle (float) –
  • U (float) –
Return type:

gp_Lin

static ConeVIso(*args)
  • compute the V Isoparametric gp_Circ of the cone.
Parameters:
  • Pos (gp_Ax3) –
  • Radius (float) –
  • SAngle (float) –
  • V (float) –
Return type:

gp_Circ

static ConeValue(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • SAngle (float) –
Return type:

gp_Pnt

static CylinderD0(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • P (gp_Pnt) –
Return type:

void

static CylinderD1(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • P (gp_Pnt) –
  • Vu (gp_Vec) –
  • Vv (gp_Vec) –
Return type:

void

static CylinderD2(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • P (gp_Pnt) –
  • Vu (gp_Vec) –
  • Vv (gp_Vec) –
  • Vuu (gp_Vec) –
  • Vvv (gp_Vec) –
  • Vuv (gp_Vec) –
Return type:

void

static CylinderD3(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • 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) –
Return type:

void

static CylinderDN(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • Nu (Standard_Integer) –
  • Nv (Standard_Integer) –
Return type:

gp_Vec

static CylinderParameters(*args)
  • parametrization P (U, V) = Location + V * ZDirection + Radius * (Cos(U) * XDirection + Sin (U) * YDirection)
Parameters:
  • Pos (gp_Ax3) –
  • Radius (float) –
  • P (gp_Pnt) –
  • U (float &) –
  • V (float &) –
Return type:

void

static CylinderUIso(*args)
  • compute the U Isoparametric gp_Lin of the cylinder.
Parameters:
  • Pos (gp_Ax3) –
  • Radius (float) –
  • U (float) –
Return type:

gp_Lin

static CylinderVIso(*args)
  • compute the V Isoparametric gp_Circ of the cylinder.
Parameters:
  • Pos (gp_Ax3) –
  • Radius (float) –
  • V (float) –
Return type:

gp_Circ

static CylinderValue(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
Return type:

gp_Pnt

static D0(*args)
  • For elementary surfaces from the gp package (planes, cones, cylinders, spheres and tori), computes the point P of parameters (U, V).inline
Parameters:
  • U (float) –
  • V (float) –
  • Pl (gp_Pln) –
  • P (gp_Pnt) –
  • U
  • V
  • C (gp_Cylinder) –
  • P
  • U
  • V
  • C
  • P
  • U
  • V
  • S (gp_Sphere) –
  • P
  • U
  • V
  • T (gp_Torus) –
  • P
Return type:

void

Return type:

void

Return type:

void

Return type:

void

Return type:

void

static D1(*args)
  • 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:
  • U (float) –
  • V (float) –
  • Pl (gp_Pln) –
  • P (gp_Pnt) –
  • Vu (gp_Vec) –
  • Vv (gp_Vec) –
  • U
  • V
  • C (gp_Cylinder) –
  • P
  • Vu
  • Vv
  • U
  • V
  • C
  • P
  • Vu
  • Vv
  • U
  • V
  • S (gp_Sphere) –
  • P
  • Vu
  • Vv
  • U
  • V
  • T (gp_Torus) –
  • P
  • Vu
  • Vv
Return type:

void

Return type:

void

Return type:

void

Return type:

void

Return type:

void

static D2(*args)
  • 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:
  • U (float) –
  • V (float) –
  • C (gp_Cylinder) –
  • P (gp_Pnt) –
  • Vu (gp_Vec) –
  • Vv (gp_Vec) –
  • Vuu (gp_Vec) –
  • Vvv (gp_Vec) –
  • Vuv (gp_Vec) –
  • U
  • V
  • C
  • P
  • Vu
  • Vv
  • Vuu
  • Vvv
  • Vuv
  • U
  • V
  • S (gp_Sphere) –
  • P
  • Vu
  • Vv
  • Vuu
  • Vvv
  • Vuv
  • U
  • V
  • T (gp_Torus) –
  • P
  • Vu
  • Vv
  • Vuu
  • Vvv
  • Vuv
Return type:

void

Return type:

void

Return type:

void

Return type:

void

static D3(*args)
  • 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:
  • U (float) –
  • V (float) –
  • 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) –
  • U
  • V
  • C
  • P
  • Vu
  • Vv
  • Vuu
  • Vvv
  • Vuv
  • Vuuu
  • Vvvv
  • Vuuv
  • Vuvv
  • U
  • V
  • S (gp_Sphere) –
  • P
  • Vu
  • Vv
  • Vuu
  • Vvv
  • Vuv
  • Vuuu
  • Vvvv
  • Vuuv
  • Vuvv
Return type:

void

Return type:

void

Return type:

void

  • Surface evaluation The following functions compute the point and the derivatives on elementary surfaces defined with their geometric characterisitics. 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:
  • U (float) –
  • V (float) –
  • 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) –
Return type:

void

static DN(*args)
  • 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:
  • U (float) –
  • V (float) –
  • Pl (gp_Pln) –
  • Nu (Standard_Integer) –
  • Nv (Standard_Integer) –
  • U
  • V
  • C (gp_Cylinder) –
  • Nu
  • Nv
  • U
  • V
  • C
  • Nu
  • Nv
  • U
  • V
  • S (gp_Sphere) –
  • Nu
  • Nv
  • U
  • V
  • T (gp_Torus) –
  • Nu
  • Nv
Return type:

gp_Vec

Return type:

gp_Vec

Return type:

gp_Vec

Return type:

gp_Vec

Return type:

gp_Vec

static Parameters(*args)
  • parametrization P (U, V) = Pl.Location() + U * Pl.XDirection() + V * Pl.YDirection()
Parameters:
  • Pl (gp_Pln) –
  • P (gp_Pnt) –
  • U (float &) –
  • V (float &) –
Return type:

void

  • parametrization P (U, V) = Location + V * ZDirection + Radius * (Cos(U) * XDirection + Sin (U) * YDirection)
Parameters:
  • C (gp_Cylinder) –
  • P (gp_Pnt) –
  • U (float &) –
  • V (float &) –
Return type:

void

  • parametrization P (U, V) = Location + V * ZDirection + (Radius + V * Tan (SemiAngle)) * (Cos(U) * XDirection + Sin(U) * YDirection)
Parameters:
  • C (gp_Cone) –
  • P (gp_Pnt) –
  • U (float &) –
  • V (float &) –
Return type:

void

  • parametrization P (U, V) = Location + Radius * Cos (V) * (Cos (U) * XDirection + Sin (U) * YDirection) + Radius * Sin (V) * ZDirection
Parameters:
  • S (gp_Sphere) –
  • P (gp_Pnt) –
  • U (float &) –
  • V (float &) –
Return type:

void

  • parametrization P (U, V) = Location + (MajorRadius + MinorRadius * Cos(U)) * (Cos(V) * XDirection - Sin(V) * YDirection) + MinorRadius * Sin(U) * ZDirection
Parameters:
  • T (gp_Torus) –
  • P (gp_Pnt) –
  • U (float &) –
  • V (float &) –
Return type:

void

static PlaneD0(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • P (gp_Pnt) –
Return type:

void

static PlaneD1(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • P (gp_Pnt) –
  • Vu (gp_Vec) –
  • Vv (gp_Vec) –
Return type:

void

static PlaneDN(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Nu (Standard_Integer) –
  • Nv (Standard_Integer) –
Return type:

gp_Vec

static PlaneParameters(*args)
  • parametrization P (U, V) = Pl.Location() + U * Pl.XDirection() + V * Pl.YDirection()
Parameters:
  • Pos (gp_Ax3) –
  • P (gp_Pnt) –
  • U (float &) –
  • V (float &) –
Return type:

void

static PlaneUIso(*args)
  • compute the U Isoparametric gp_Lin of the plane.
Parameters:
  • Pos (gp_Ax3) –
  • U (float) –
Return type:

gp_Lin

static PlaneVIso(*args)
  • compute the V Isoparametric gp_Lin of the plane.
Parameters:
  • Pos (gp_Ax3) –
  • V (float) –
Return type:

gp_Lin

static PlaneValue(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
Return type:

gp_Pnt

static SphereD0(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • P (gp_Pnt) –
Return type:

void

static SphereD1(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • P (gp_Pnt) –
  • Vu (gp_Vec) –
  • Vv (gp_Vec) –
Return type:

void

static SphereD2(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • P (gp_Pnt) –
  • Vu (gp_Vec) –
  • Vv (gp_Vec) –
  • Vuu (gp_Vec) –
  • Vvv (gp_Vec) –
  • Vuv (gp_Vec) –
Return type:

void

static SphereD3(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • 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) –
Return type:

void

static SphereDN(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • Nu (Standard_Integer) –
  • Nv (Standard_Integer) –
Return type:

gp_Vec

static SphereParameters(*args)
  • parametrization P (U, V) = Location + Radius * Cos (V) * (Cos (U) * XDirection + Sin (U) * YDirection) + Radius * Sin (V) * ZDirection
Parameters:
  • Pos (gp_Ax3) –
  • Radius (float) –
  • P (gp_Pnt) –
  • U (float &) –
  • V (float &) –
Return type:

void

static SphereUIso(*args)
  • compute the U Isoparametric gp_Circ of the sphere, (the meridian is not trimmed).
Parameters:
  • Pos (gp_Ax3) –
  • Radius (float) –
  • U (float) –
Return type:

gp_Circ

static SphereVIso(*args)
  • compute the V Isoparametric gp_Circ of the sphere, (the meridian is not trimmed).
Parameters:
  • Pos (gp_Ax3) –
  • Radius (float) –
  • V (float) –
Return type:

gp_Circ

static SphereValue(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
Return type:

gp_Pnt

static TorusD0(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • MajorRadius (float) –
  • MinorRadius (float) –
  • P (gp_Pnt) –
Return type:

void

static TorusD1(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • MajorRadius (float) –
  • MinorRadius (float) –
  • P (gp_Pnt) –
  • Vu (gp_Vec) –
  • Vv (gp_Vec) –
Return type:

void

static TorusD2(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • MajorRadius (float) –
  • MinorRadius (float) –
  • P (gp_Pnt) –
  • Vu (gp_Vec) –
  • Vv (gp_Vec) –
  • Vuu (gp_Vec) –
  • Vvv (gp_Vec) –
  • Vuv (gp_Vec) –
Return type:

void

static TorusD3(*args)
  • The following functions compute the parametric values corresponding to a given point on a elementary surface. The point should be on the surface.
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • MajorRadius (float) –
  • MinorRadius (float) –
  • 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) –
Return type:

void

static TorusDN(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • MajorRadius (float) –
  • MinorRadius (float) –
  • Nu (Standard_Integer) –
  • Nv (Standard_Integer) –
Return type:

gp_Vec

static TorusParameters(*args)
  • parametrization P (U, V) = Location + (MajorRadius + MinorRadius * Cos(U)) * (Cos(V) * XDirection - Sin(V) * YDirection) + MinorRadius * Sin(U) * ZDirection
Parameters:
  • Pos (gp_Ax3) –
  • MajorRadius (float) –
  • MinorRadius (float) –
  • P (gp_Pnt) –
  • U (float &) –
  • V (float &) –
Return type:

void

static TorusUIso(*args)
  • compute the U Isoparametric gp_Circ of the torus.
Parameters:
  • Pos (gp_Ax3) –
  • MajorRadius (float) –
  • MinorRadius (float) –
  • U (float) –
Return type:

gp_Circ

static TorusVIso(*args)
  • compute the V Isoparametric gp_Circ of the torus.
Parameters:
  • Pos (gp_Ax3) –
  • MajorRadius (float) –
  • MinorRadius (float) –
  • V (float) –
Return type:

gp_Circ

static TorusValue(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • MajorRadius (float) –
  • MinorRadius (float) –
Return type:

gp_Pnt

static Value(*args)
  • For elementary surfaces from the gp package (planes, cones, cylinders, spheres and tori), computes the point of parameters (U, V).
Parameters:
  • U (float) –
  • V (float) –
  • Pl (gp_Pln) –
  • U
  • V
  • C (gp_Cylinder) –
  • U
  • V
  • C
  • U
  • V
  • S (gp_Sphere) –
  • U
  • V
  • T (gp_Torus) –
Return type:

gp_Pnt

Return type:

gp_Pnt

Return type:

gp_Pnt

Return type:

gp_Pnt

Return type:

gp_Pnt

thisown

The membership flag

OCC.ElSLib.elslib_ConeD0(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • SAngle (float) –
  • P (gp_Pnt) –
Return type:

void

OCC.ElSLib.elslib_ConeD1(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • SAngle (float) –
  • P (gp_Pnt) –
  • Vu (gp_Vec) –
  • Vv (gp_Vec) –
Return type:

void

OCC.ElSLib.elslib_ConeD2(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • SAngle (float) –
  • P (gp_Pnt) –
  • Vu (gp_Vec) –
  • Vv (gp_Vec) –
  • Vuu (gp_Vec) –
  • Vvv (gp_Vec) –
  • Vuv (gp_Vec) –
Return type:

void

OCC.ElSLib.elslib_ConeD3(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • SAngle (float) –
  • 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) –
Return type:

void

OCC.ElSLib.elslib_ConeDN(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • SAngle (float) –
  • Nu (Standard_Integer) –
  • Nv (Standard_Integer) –
Return type:

gp_Vec

OCC.ElSLib.elslib_ConeParameters(*args)
  • parametrization P (U, V) = Location + V * ZDirection + (Radius + V * Tan (SemiAngle)) * (Cos(U) * XDirection + Sin(U) * YDirection)
Parameters:
  • Pos (gp_Ax3) –
  • Radius (float) –
  • SAngle (float) –
  • P (gp_Pnt) –
  • U (float &) –
  • V (float &) –
Return type:

void

OCC.ElSLib.elslib_ConeUIso(*args)
  • compute the U Isoparametric gp_Lin of the cone.
Parameters:
  • Pos (gp_Ax3) –
  • Radius (float) –
  • SAngle (float) –
  • U (float) –
Return type:

gp_Lin

OCC.ElSLib.elslib_ConeVIso(*args)
  • compute the V Isoparametric gp_Circ of the cone.
Parameters:
  • Pos (gp_Ax3) –
  • Radius (float) –
  • SAngle (float) –
  • V (float) –
Return type:

gp_Circ

OCC.ElSLib.elslib_ConeValue(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • SAngle (float) –
Return type:

gp_Pnt

OCC.ElSLib.elslib_CylinderD0(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • P (gp_Pnt) –
Return type:

void

OCC.ElSLib.elslib_CylinderD1(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • P (gp_Pnt) –
  • Vu (gp_Vec) –
  • Vv (gp_Vec) –
Return type:

void

OCC.ElSLib.elslib_CylinderD2(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • P (gp_Pnt) –
  • Vu (gp_Vec) –
  • Vv (gp_Vec) –
  • Vuu (gp_Vec) –
  • Vvv (gp_Vec) –
  • Vuv (gp_Vec) –
Return type:

void

OCC.ElSLib.elslib_CylinderD3(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • 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) –
Return type:

void

OCC.ElSLib.elslib_CylinderDN(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • Nu (Standard_Integer) –
  • Nv (Standard_Integer) –
Return type:

gp_Vec

OCC.ElSLib.elslib_CylinderParameters(*args)
  • parametrization P (U, V) = Location + V * ZDirection + Radius * (Cos(U) * XDirection + Sin (U) * YDirection)
Parameters:
  • Pos (gp_Ax3) –
  • Radius (float) –
  • P (gp_Pnt) –
  • U (float &) –
  • V (float &) –
Return type:

void

OCC.ElSLib.elslib_CylinderUIso(*args)
  • compute the U Isoparametric gp_Lin of the cylinder.
Parameters:
  • Pos (gp_Ax3) –
  • Radius (float) –
  • U (float) –
Return type:

gp_Lin

OCC.ElSLib.elslib_CylinderVIso(*args)
  • compute the V Isoparametric gp_Circ of the cylinder.
Parameters:
  • Pos (gp_Ax3) –
  • Radius (float) –
  • V (float) –
Return type:

gp_Circ

OCC.ElSLib.elslib_CylinderValue(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
Return type:

gp_Pnt

OCC.ElSLib.elslib_D0(*args)
  • For elementary surfaces from the gp package (planes, cones, cylinders, spheres and tori), computes the point P of parameters (U, V).inline
Parameters:
  • U (float) –
  • V (float) –
  • Pl (gp_Pln) –
  • P (gp_Pnt) –
  • U
  • V
  • C (gp_Cylinder) –
  • P
  • U
  • V
  • C
  • P
  • U
  • V
  • S (gp_Sphere) –
  • P
  • U
  • V
  • T (gp_Torus) –
  • P
Return type:

void

Return type:

void

Return type:

void

Return type:

void

Return type:

void

OCC.ElSLib.elslib_D1(*args)
  • 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:
  • U (float) –
  • V (float) –
  • Pl (gp_Pln) –
  • P (gp_Pnt) –
  • Vu (gp_Vec) –
  • Vv (gp_Vec) –
  • U
  • V
  • C (gp_Cylinder) –
  • P
  • Vu
  • Vv
  • U
  • V
  • C
  • P
  • Vu
  • Vv
  • U
  • V
  • S (gp_Sphere) –
  • P
  • Vu
  • Vv
  • U
  • V
  • T (gp_Torus) –
  • P
  • Vu
  • Vv
Return type:

void

Return type:

void

Return type:

void

Return type:

void

Return type:

void

OCC.ElSLib.elslib_D2(*args)
  • 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:
  • U (float) –
  • V (float) –
  • C (gp_Cylinder) –
  • P (gp_Pnt) –
  • Vu (gp_Vec) –
  • Vv (gp_Vec) –
  • Vuu (gp_Vec) –
  • Vvv (gp_Vec) –
  • Vuv (gp_Vec) –
  • U
  • V
  • C
  • P
  • Vu
  • Vv
  • Vuu
  • Vvv
  • Vuv
  • U
  • V
  • S (gp_Sphere) –
  • P
  • Vu
  • Vv
  • Vuu
  • Vvv
  • Vuv
  • U
  • V
  • T (gp_Torus) –
  • P
  • Vu
  • Vv
  • Vuu
  • Vvv
  • Vuv
Return type:

void

Return type:

void

Return type:

void

Return type:

void

OCC.ElSLib.elslib_D3(*args)
  • 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:
  • U (float) –
  • V (float) –
  • 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) –
  • U
  • V
  • C
  • P
  • Vu
  • Vv
  • Vuu
  • Vvv
  • Vuv
  • Vuuu
  • Vvvv
  • Vuuv
  • Vuvv
  • U
  • V
  • S (gp_Sphere) –
  • P
  • Vu
  • Vv
  • Vuu
  • Vvv
  • Vuv
  • Vuuu
  • Vvvv
  • Vuuv
  • Vuvv
Return type:

void

Return type:

void

Return type:

void

  • Surface evaluation The following functions compute the point and the derivatives on elementary surfaces defined with their geometric characterisitics. 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:
  • U (float) –
  • V (float) –
  • 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) –
Return type:

void

OCC.ElSLib.elslib_DN(*args)
  • 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:
  • U (float) –
  • V (float) –
  • Pl (gp_Pln) –
  • Nu (Standard_Integer) –
  • Nv (Standard_Integer) –
  • U
  • V
  • C (gp_Cylinder) –
  • Nu
  • Nv
  • U
  • V
  • C
  • Nu
  • Nv
  • U
  • V
  • S (gp_Sphere) –
  • Nu
  • Nv
  • U
  • V
  • T (gp_Torus) –
  • Nu
  • Nv
Return type:

gp_Vec

Return type:

gp_Vec

Return type:

gp_Vec

Return type:

gp_Vec

Return type:

gp_Vec

OCC.ElSLib.elslib_Parameters(*args)
  • parametrization P (U, V) = Pl.Location() + U * Pl.XDirection() + V * Pl.YDirection()
Parameters:
  • Pl (gp_Pln) –
  • P (gp_Pnt) –
  • U (float &) –
  • V (float &) –
Return type:

void

  • parametrization P (U, V) = Location + V * ZDirection + Radius * (Cos(U) * XDirection + Sin (U) * YDirection)
Parameters:
  • C (gp_Cylinder) –
  • P (gp_Pnt) –
  • U (float &) –
  • V (float &) –
Return type:

void

  • parametrization P (U, V) = Location + V * ZDirection + (Radius + V * Tan (SemiAngle)) * (Cos(U) * XDirection + Sin(U) * YDirection)
Parameters:
  • C (gp_Cone) –
  • P (gp_Pnt) –
  • U (float &) –
  • V (float &) –
Return type:

void

  • parametrization P (U, V) = Location + Radius * Cos (V) * (Cos (U) * XDirection + Sin (U) * YDirection) + Radius * Sin (V) * ZDirection
Parameters:
  • S (gp_Sphere) –
  • P (gp_Pnt) –
  • U (float &) –
  • V (float &) –
Return type:

void

  • parametrization P (U, V) = Location + (MajorRadius + MinorRadius * Cos(U)) * (Cos(V) * XDirection - Sin(V) * YDirection) + MinorRadius * Sin(U) * ZDirection
Parameters:
  • T (gp_Torus) –
  • P (gp_Pnt) –
  • U (float &) –
  • V (float &) –
Return type:

void

OCC.ElSLib.elslib_PlaneD0(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • P (gp_Pnt) –
Return type:

void

OCC.ElSLib.elslib_PlaneD1(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • P (gp_Pnt) –
  • Vu (gp_Vec) –
  • Vv (gp_Vec) –
Return type:

void

OCC.ElSLib.elslib_PlaneDN(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Nu (Standard_Integer) –
  • Nv (Standard_Integer) –
Return type:

gp_Vec

OCC.ElSLib.elslib_PlaneParameters(*args)
  • parametrization P (U, V) = Pl.Location() + U * Pl.XDirection() + V * Pl.YDirection()
Parameters:
  • Pos (gp_Ax3) –
  • P (gp_Pnt) –
  • U (float &) –
  • V (float &) –
Return type:

void

OCC.ElSLib.elslib_PlaneUIso(*args)
  • compute the U Isoparametric gp_Lin of the plane.
Parameters:
  • Pos (gp_Ax3) –
  • U (float) –
Return type:

gp_Lin

OCC.ElSLib.elslib_PlaneVIso(*args)
  • compute the V Isoparametric gp_Lin of the plane.
Parameters:
  • Pos (gp_Ax3) –
  • V (float) –
Return type:

gp_Lin

OCC.ElSLib.elslib_PlaneValue(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
Return type:

gp_Pnt

OCC.ElSLib.elslib_SphereD0(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • P (gp_Pnt) –
Return type:

void

OCC.ElSLib.elslib_SphereD1(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • P (gp_Pnt) –
  • Vu (gp_Vec) –
  • Vv (gp_Vec) –
Return type:

void

OCC.ElSLib.elslib_SphereD2(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • P (gp_Pnt) –
  • Vu (gp_Vec) –
  • Vv (gp_Vec) –
  • Vuu (gp_Vec) –
  • Vvv (gp_Vec) –
  • Vuv (gp_Vec) –
Return type:

void

OCC.ElSLib.elslib_SphereD3(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • 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) –
Return type:

void

OCC.ElSLib.elslib_SphereDN(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
  • Nu (Standard_Integer) –
  • Nv (Standard_Integer) –
Return type:

gp_Vec

OCC.ElSLib.elslib_SphereParameters(*args)
  • parametrization P (U, V) = Location + Radius * Cos (V) * (Cos (U) * XDirection + Sin (U) * YDirection) + Radius * Sin (V) * ZDirection
Parameters:
  • Pos (gp_Ax3) –
  • Radius (float) –
  • P (gp_Pnt) –
  • U (float &) –
  • V (float &) –
Return type:

void

OCC.ElSLib.elslib_SphereUIso(*args)
  • compute the U Isoparametric gp_Circ of the sphere, (the meridian is not trimmed).
Parameters:
  • Pos (gp_Ax3) –
  • Radius (float) –
  • U (float) –
Return type:

gp_Circ

OCC.ElSLib.elslib_SphereVIso(*args)
  • compute the V Isoparametric gp_Circ of the sphere, (the meridian is not trimmed).
Parameters:
  • Pos (gp_Ax3) –
  • Radius (float) –
  • V (float) –
Return type:

gp_Circ

OCC.ElSLib.elslib_SphereValue(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • Radius (float) –
Return type:

gp_Pnt

OCC.ElSLib.elslib_TorusD0(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • MajorRadius (float) –
  • MinorRadius (float) –
  • P (gp_Pnt) –
Return type:

void

OCC.ElSLib.elslib_TorusD1(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • MajorRadius (float) –
  • MinorRadius (float) –
  • P (gp_Pnt) –
  • Vu (gp_Vec) –
  • Vv (gp_Vec) –
Return type:

void

OCC.ElSLib.elslib_TorusD2(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • MajorRadius (float) –
  • MinorRadius (float) –
  • P (gp_Pnt) –
  • Vu (gp_Vec) –
  • Vv (gp_Vec) –
  • Vuu (gp_Vec) –
  • Vvv (gp_Vec) –
  • Vuv (gp_Vec) –
Return type:

void

OCC.ElSLib.elslib_TorusD3(*args)
  • The following functions compute the parametric values corresponding to a given point on a elementary surface. The point should be on the surface.
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • MajorRadius (float) –
  • MinorRadius (float) –
  • 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) –
Return type:

void

OCC.ElSLib.elslib_TorusDN(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • MajorRadius (float) –
  • MinorRadius (float) –
  • Nu (Standard_Integer) –
  • Nv (Standard_Integer) –
Return type:

gp_Vec

OCC.ElSLib.elslib_TorusParameters(*args)
  • parametrization P (U, V) = Location + (MajorRadius + MinorRadius * Cos(U)) * (Cos(V) * XDirection - Sin(V) * YDirection) + MinorRadius * Sin(U) * ZDirection
Parameters:
  • Pos (gp_Ax3) –
  • MajorRadius (float) –
  • MinorRadius (float) –
  • P (gp_Pnt) –
  • U (float &) –
  • V (float &) –
Return type:

void

OCC.ElSLib.elslib_TorusUIso(*args)
  • compute the U Isoparametric gp_Circ of the torus.
Parameters:
  • Pos (gp_Ax3) –
  • MajorRadius (float) –
  • MinorRadius (float) –
  • U (float) –
Return type:

gp_Circ

OCC.ElSLib.elslib_TorusVIso(*args)
  • compute the V Isoparametric gp_Circ of the torus.
Parameters:
  • Pos (gp_Ax3) –
  • MajorRadius (float) –
  • MinorRadius (float) –
  • V (float) –
Return type:

gp_Circ

OCC.ElSLib.elslib_TorusValue(*args)
Parameters:
  • U (float) –
  • V (float) –
  • Pos (gp_Ax3) –
  • MajorRadius (float) –
  • MinorRadius (float) –
Return type:

gp_Pnt

OCC.ElSLib.elslib_Value(*args)
  • For elementary surfaces from the gp package (planes, cones, cylinders, spheres and tori), computes the point of parameters (U, V).
Parameters:
  • U (float) –
  • V (float) –
  • Pl (gp_Pln) –
  • U
  • V
  • C (gp_Cylinder) –
  • U
  • V
  • C
  • U
  • V
  • S (gp_Sphere) –
  • U
  • V
  • T (gp_Torus) –
Return type:

gp_Pnt

Return type:

gp_Pnt

Return type:

gp_Pnt

Return type:

gp_Pnt

Return type:

gp_Pnt