Click or drag to resize
BrepCreateFromCylinder Method
Rhino 5 for Windows
Constructs a Brep definition of a cylinder.

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: 5.1.30000.17 (5.13.60913.21340)
public static Brep CreateFromCylinder(
	Cylinder cylinder,
	bool capBottom,
	bool capTop


Type: Rhino.GeometryCylinder
cylinder.IsFinite() must be true.
Type: SystemBoolean
if true end at cylinder.m_height[0] should be capped.
Type: SystemBoolean
if true end at cylinder.m_height[1] should be capped.

Return Value

Type: Brep
A Brep representation of the cylinder with a single face for the cylinder, an edge along the cylinder seam, and vertices at the bottom and top ends of this seam edge. The optional bottom/top caps are single faces with one circular edge starting and ending at the bottom/top vertex.
See Also