axis#

devsrf.axis(p0: float, p1: float, p2: float) int#

Specifies the direction of the axis of revolution, or longitudinal axis, of the revolved part.

This vector corresponds to the direction of the axis of revolution of the cylinder, cone, sphere, or revolution tool for any revolved surface created via these quadric tools. Otherwise, this vector should be specified to coincide with the axis of revolution of the 2D parent part.
This is the longitudinal axis about which the nodes of the selected part(s) are mapped to the computational developing cylinder; which cylinder is subsequently unrolled yielding the developed (unrolled) surface.
Args:
p0:

‘dx’ cartesian vector x, y, z components of the developing cylinder’s longitudinal axis

p1:

‘dy’ cartesian vector x, y, z components of the developing cylinder’s longitudinal axis

p2:

‘dz’ cartesian vector x, y, z components of the developing cylinder’s longitudinal axis

Examples:
ensight.devsrf.select_default()
ensight.part.modify_begin()
ensight.devsrf.origin(5.0000e-01,5.0000e-01,0.0000e+00)
ensight.devsrf.axis(0.0000e+00,0.0000e+00,1.0000e+00)
ensight.devsrf.seam_vector(1.0000e+00,0.0000e+00,0.0000e+00)
ensight.part.modify_end()
Returns:

zero on success, non-zero on error