RhinoCommon API
RevSurfaceCreate Method (Polyline, Line, Double, Double) |
Constructs a new surface of revolution from a generatrix polyline and an axis.
This overload accepts a slice start and end angles.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)
Since: 5.0
public static RevSurface Create( Polyline revolutePolyline, Line axisOfRevolution, double startAngleRadians, double endAngleRadians )
Public Shared Function Create ( revolutePolyline As Polyline, axisOfRevolution As Line, startAngleRadians As Double, endAngleRadians As Double ) As RevSurface
Parameters
- revolutePolyline
- Type: Rhino.GeometryPolyline
A generatrix. - axisOfRevolution
- Type: Rhino.GeometryLine
An axis. - startAngleRadians
- Type: SystemDouble
An angle in radians for the start. - endAngleRadians
- Type: SystemDouble
An angle in radians for the end.
Return Value
Type: RevSurfaceA new surface of revolution, or null if any of the inputs is invalid or on error.