rhino3dm.RevSurface

class rhino3dm.RevSurface

Bases: Surface

Represents a surface of revolution.

Revolutions can be incomplete (they can form arcs).

AxisAndCurveCoplanar() → bool

Detemines if the axis of revolution and the curve are co-planar.

Returns:

true if the axis of revolution and the curve are co-planar, false otherwise.

static Create(revoluteCurve: Curve, axisOfRevolution: Line, startAngleRadians: float, endAngleRadians: float) → RevSurface
static Create(revoluteCurve: Curve, axisOfRevolution: Line) → RevSurface
static Create(revoluteLine: Line, axisOfRevolution: Line, startAngleRadians: float, endAngleRadians: float) → RevSurface
static Create(revoluteLine: Line, axisOfRevolution: Line) → RevSurface

Constructs a new surface of revolution from a generatrix line and an axis.

If the operation succeeds, results can be (truncated) cones, cylinders and circular hyperboloids.

Parameters:
  • revoluteLine – A generatrix.

  • axisOfRevolution – An axis.

Returns:

A new surface of revolution, or null if any of the inputs is invalid or on error.

static CreateFromCone(cone: Cone) → RevSurface

Constructs a new surface of revolution from the values of a cone.

Parameters:

cone – A cone.

Returns:

A new surface of revolution, or null if any of the inputs is invalid or on error.

static CreateFromCylinder(cylinder: Cylinder) → RevSurface

Constructs a new surface of revolution from the values of a cylinder.

Parameters:

cylinder – A cylinder.

Returns:

A new surface of revolution, or null if any of the inputs is invalid or on error.

static CreateFromSphere(sphere: Sphere) → RevSurface

Constructs a new surface of revolution from the values of a sphere.

Parameters:

sphere – A sphere.

Returns:

A new surface of revolution, or null if any of the inputs is invalid or on error.

static CreateFromTorus(torus: Torus) → RevSurface

Constructs a new surface of revolution from the values of a torus.

Parameters:

torus – A torus.

Returns:

A new surface of revolution, or null if any of the inputs is invalid or on error.

property Angle: Interval

Gets the start and end angles of revolution in radians. The interval angle must be increasing and satisfy RhinoMath.ZeroTolerance < Angle.Length<= 2.0 * System.Math.PI.

property Axis: Line

Gets the axis of revolution.

property Interval: Interval

Interval specifies the parameterization for the angular parameter. Interval must be an increasing interval. The parameter Interval[0] corresponds to Angle[0] and the parameter Interval[1] corresponds to Angle[1].

property IsTransposed: bool

If false, the “u” parameter is the angle parameter and the “v” parameter is the curve parameter. If true, the “u” parameter is the curve parameter and the “v” parameter is the angle parameter.