M_Rhino_Geometry_Brep_CreateFromCylinder - mcneel/rhinocommon-api-docs GitHub Wiki

Brep.CreateFromCylinder Method

Constructs a Brep definition of a cylinder.

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

Syntax

C#

public static Brep CreateFromCylinder(
	Cylinder cylinder,
	bool capBottom,
	bool capTop
)

VB

Public Shared Function CreateFromCylinder ( 
	cylinder As Cylinder,
	capBottom As Boolean,
	capTop As Boolean
) As Brep

Parameters

 

cylinder
Type: Rhino.Geometry.Cylinder
cylinder.IsFinite() must be true.
capBottom
Type: System.Boolean
if true end at cylinder.m_height[0] should be capped.
capTop
Type: System.Boolean
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.

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Brep Class
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️