Skip to content

M_Rhino_Geometry_Mesh_CreateFromCylinder

Will Pearson edited this page Aug 12, 2016 · 2 revisions

Mesh.CreateFromCylinder Method

Constructs a mesh cylinder

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public static Mesh CreateFromCylinder(
	Cylinder cylinder,
	int vertical,
	int around
)

VB

Public Shared Function CreateFromCylinder ( 
	cylinder As Cylinder,
	vertical As Integer,
	around As Integer
) As Mesh

Parameters

 

cylinder
Type: Rhino.Geometry.Cylinder
[Missing documentation for "M:Rhino.Geometry.Mesh.CreateFromCylinder(Rhino.Geometry.Cylinder,System.Int32,System.Int32)"]
vertical
Type: System.Int32
Number of faces in the top-to-bottom direction
around
Type: System.Int32
Number of faces around the cylinder

Return Value

Type: Mesh
[Missing documentation for "M:Rhino.Geometry.Mesh.CreateFromCylinder(Rhino.Geometry.Cylinder,System.Int32,System.Int32)"]

Exceptions

 

Exception Condition
ArgumentException Thrown when cylinder is invalid.

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Mesh Class
Rhino.Geometry Namespace

Clone this wiki locally