Click or drag to resize

MeshCreateFromCylinder Method (Cylinder, Int32, Int32, Boolean, Boolean, Boolean, Boolean)

Constructs a mesh cylinder.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 7.0
Syntax
public static Mesh CreateFromCylinder(
	Cylinder cylinder,
	int vertical,
	int around,
	bool capBottom,
	bool capTop,
	bool circumscribe,
	bool quadCaps
)

Parameters

cylinder
Type: Rhino.GeometryCylinder

[Missing <param name="cylinder"/> documentation for "M:Rhino.Geometry.Mesh.CreateFromCylinder(Rhino.Geometry.Cylinder,System.Int32,System.Int32,System.Boolean,System.Boolean,System.Boolean,System.Boolean)"]

vertical
Type: SystemInt32
Number of faces in the top-to-bottom direction.
around
Type: SystemInt32
Number of faces around the cylinder.
capBottom
Type: SystemBoolean
If true end at Cylinder.Height1 should be capped.
capTop
Type: SystemBoolean
If true end at Cylinder.Height2 should be capped.
circumscribe
Type: SystemBoolean
If true end polygons will circumscribe circle.
quadCaps
Type: SystemBoolean
If true and it's possible to make quad caps, i.e.. around is even, then caps will have quad faces.

Return Value

Type: Mesh
Returns a mesh cylinder if successful, null otherwise.
Exceptions
ExceptionCondition
ArgumentExceptionThrown when cylinder is invalid.
See Also