RhinoCommon API
MeshCreateFromCylinder Method |
Constructs a mesh cylinder
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)

public static Mesh CreateFromCylinder( Cylinder cylinder, int vertical, int around )
Public Shared Function CreateFromCylinder ( cylinder As Cylinder, vertical As Integer, around As Integer ) As Mesh
Parameters
- cylinder
- Type: Rhino.GeometryCylinder
[Missing <param name="cylinder"/> documentation for "M:Rhino.Geometry.Mesh.CreateFromCylinder(Rhino.Geometry.Cylinder,System.Int32,System.Int32)"]
- vertical
- Type: SystemInt32
Number of faces in the top-to-bottom direction - around
- Type: SystemInt32
Number of faces around the cylinder
Return Value
Type: Mesh[Missing <returns> documentation for "M:Rhino.Geometry.Mesh.CreateFromCylinder(Rhino.Geometry.Cylinder,System.Int32,System.Int32)"]

Exception | Condition |
---|---|
ArgumentException | Thrown when cylinder is invalid. |

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.14