OCC.ElSLib module

class SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()
class elslib

Bases: object

static ConeD0(*args)
Parameters:
Return type:

void

static ConeD1(*args)
Parameters:
Return type:

void

static ConeD2(*args)
Parameters:
Return type:

void

static ConeD3(*args)
Parameters:
Return type:

void

static ConeDN(*args)
Parameters:
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:
Return type:

void

static ConeUIso(*args)
  • compute the U Isoparametric gp_Lin of the cone.
Parameters:
Return type:

gp_Lin

static ConeVIso(*args)
  • compute the V Isoparametric gp_Circ of the cone.
Parameters:
Return type:

gp_Circ

static ConeValue(*args)
Parameters:
Return type:

gp_Pnt

static CylinderD0(*args)
Parameters:
Return type:

void

static CylinderD1(*args)
Parameters:
Return type:

void

static CylinderD2(*args)
Parameters:
Return type:

void

static CylinderD3(*args)
Parameters:
Return type:

void

static CylinderDN(*args)
Parameters:
Return type:

gp_Vec

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

void

static CylinderUIso(*args)
  • compute the U Isoparametric gp_Lin of the cylinder.
Parameters:
Return type:

gp_Lin

static CylinderVIso(*args)
  • compute the V Isoparametric gp_Circ of the cylinder.
Parameters:
Return type:

gp_Circ

static CylinderValue(*args)
Parameters:
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:
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:
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:
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:
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:
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:
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:
Return type:

void

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

void

  • parametrization P (U, V) = Location + Radius * Cos (V) * (Cos (U) * XDirection + Sin (U) * YDirection) + Radius * Sin (V) * ZDirection
Parameters:
Return type:

void

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

void

static PlaneD0(*args)
Parameters:
Return type:

void

static PlaneD1(*args)
Parameters:
Return type:

void

static PlaneDN(*args)
Parameters:
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:
Return type:

gp_Lin

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

gp_Lin

static PlaneValue(*args)
Parameters:
Return type:

gp_Pnt

static SphereD0(*args)
Parameters:
Return type:

void

static SphereD1(*args)
Parameters:
Return type:

void

static SphereD2(*args)
Parameters:
Return type:

void

static SphereD3(*args)
Parameters:
Return type:

void

static SphereDN(*args)
Parameters:
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:
Return type:

void

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

gp_Circ

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

gp_Circ

static SphereValue(*args)
Parameters:
Return type:

gp_Pnt

static TorusD0(*args)
Parameters:
Return type:

void

static TorusD1(*args)
Parameters:
Return type:

void

static TorusD2(*args)
Parameters:
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:
Return type:

void

static TorusDN(*args)
Parameters:
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:
Return type:

gp_Circ

static TorusVIso(*args)
  • compute the V Isoparametric gp_Circ of the torus.
Parameters:
Return type:

gp_Circ

static TorusValue(*args)
Parameters:
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:
Return type:

gp_Pnt

Return type:

gp_Pnt

Return type:

gp_Pnt

Return type:

gp_Pnt

Return type:

gp_Pnt

thisown

The membership flag

elslib_ConeD0(*args)
Parameters:
Return type:

void

elslib_ConeD1(*args)
Parameters:
Return type:

void

elslib_ConeD2(*args)
Parameters:
Return type:

void

elslib_ConeD3(*args)
Parameters:
Return type:

void

elslib_ConeDN(*args)
Parameters:
Return type:

gp_Vec

elslib_ConeParameters(*args)
  • parametrization P (U, V) = Location + V * ZDirection + (Radius + V * Tan (SemiAngle)) * (Cos(U) * XDirection + Sin(U) * YDirection)
Parameters:
Return type:

void

elslib_ConeUIso(*args)
  • compute the U Isoparametric gp_Lin of the cone.
Parameters:
Return type:

gp_Lin

elslib_ConeVIso(*args)
  • compute the V Isoparametric gp_Circ of the cone.
Parameters:
Return type:

gp_Circ

elslib_ConeValue(*args)
Parameters:
Return type:

gp_Pnt

elslib_CylinderD0(*args)
Parameters:
Return type:

void

elslib_CylinderD1(*args)
Parameters:
Return type:

void

elslib_CylinderD2(*args)
Parameters:
Return type:

void

elslib_CylinderD3(*args)
Parameters:
Return type:

void

elslib_CylinderDN(*args)
Parameters:
Return type:

gp_Vec

elslib_CylinderParameters(*args)
  • parametrization P (U, V) = Location + V * ZDirection + Radius * (Cos(U) * XDirection + Sin (U) * YDirection)
Parameters:
Return type:

void

elslib_CylinderUIso(*args)
  • compute the U Isoparametric gp_Lin of the cylinder.
Parameters:
Return type:

gp_Lin

elslib_CylinderVIso(*args)
  • compute the V Isoparametric gp_Circ of the cylinder.
Parameters:
Return type:

gp_Circ

elslib_CylinderValue(*args)
Parameters:
Return type:

gp_Pnt

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:
Return type:

void

Return type:

void

Return type:

void

Return type:

void

Return type:

void

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:
Return type:

void

Return type:

void

Return type:

void

Return type:

void

Return type:

void

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:
Return type:

void

Return type:

void

Return type:

void

Return type:

void

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:
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:
Return type:

void

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:
Return type:

gp_Vec

Return type:

gp_Vec

Return type:

gp_Vec

Return type:

gp_Vec

Return type:

gp_Vec

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:
Return type:

void

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

void

  • parametrization P (U, V) = Location + Radius * Cos (V) * (Cos (U) * XDirection + Sin (U) * YDirection) + Radius * Sin (V) * ZDirection
Parameters:
Return type:

void

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

void

elslib_PlaneD0(*args)
Parameters:
Return type:

void

elslib_PlaneD1(*args)
Parameters:
Return type:

void

elslib_PlaneDN(*args)
Parameters:
Return type:

gp_Vec

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

elslib_PlaneUIso(*args)
  • compute the U Isoparametric gp_Lin of the plane.
Parameters:
Return type:

gp_Lin

elslib_PlaneVIso(*args)
  • compute the V Isoparametric gp_Lin of the plane.
Parameters:
Return type:

gp_Lin

elslib_PlaneValue(*args)
Parameters:
Return type:

gp_Pnt

elslib_SphereD0(*args)
Parameters:
Return type:

void

elslib_SphereD1(*args)
Parameters:
Return type:

void

elslib_SphereD2(*args)
Parameters:
Return type:

void

elslib_SphereD3(*args)
Parameters:
Return type:

void

elslib_SphereDN(*args)
Parameters:
Return type:

gp_Vec

elslib_SphereParameters(*args)
  • parametrization P (U, V) = Location + Radius * Cos (V) * (Cos (U) * XDirection + Sin (U) * YDirection) + Radius * Sin (V) * ZDirection
Parameters:
Return type:

void

elslib_SphereUIso(*args)
  • compute the U Isoparametric gp_Circ of the sphere, (the meridian is not trimmed).
Parameters:
Return type:

gp_Circ

elslib_SphereVIso(*args)
  • compute the V Isoparametric gp_Circ of the sphere, (the meridian is not trimmed).
Parameters:
Return type:

gp_Circ

elslib_SphereValue(*args)
Parameters:
Return type:

gp_Pnt

elslib_TorusD0(*args)
Parameters:
Return type:

void

elslib_TorusD1(*args)
Parameters:
Return type:

void

elslib_TorusD2(*args)
Parameters:
Return type:

void

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:
Return type:

void

elslib_TorusDN(*args)
Parameters:
Return type:

gp_Vec

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

elslib_TorusUIso(*args)
  • compute the U Isoparametric gp_Circ of the torus.
Parameters:
Return type:

gp_Circ

elslib_TorusVIso(*args)
  • compute the V Isoparametric gp_Circ of the torus.
Parameters:
Return type:

gp_Circ

elslib_TorusValue(*args)
Parameters:
Return type:

gp_Pnt

elslib_Value(*args)
  • For elementary surfaces from the gp package (planes, cones, cylinders, spheres and tori), computes the point of parameters (U, V).
Parameters:
Return type:

gp_Pnt

Return type:

gp_Pnt

Return type:

gp_Pnt

Return type:

gp_Pnt

Return type:

gp_Pnt

register_handle(handle, base_object)

Inserts the handle into the base object to prevent memory corruption in certain cases