origin#

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

Specifies an origin which lies on the axis of revolution, or the longitudinal axis of the developing cylinder.

This point corresponds to the origin of the cylinder, cone, sphere, or revolution tool for any revolved surface created via these quadric tools. Otherwise, this point locates the axis of revolution of the 2D parent part.
Args:
p0:

‘x_comp’ x, y, z components of the origin of the developing cylinder (located on the longitudinal axis) in model coordinates

p1:

‘y_comp’ x, y, z components of the origin of the developing cylinder (located on the longitudinal axis) in model coordinates

p2:

‘z_comp’ x, y, z components of the origin of the developing cylinder (located on the longitudinal axis) in model coordinates

Examples:
#
# Modify the default
#
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