Click or drag to resize

MeshCreateFromCone Method (Cone, Int32, Int32, Boolean, Boolean)

Constructs a mesh cone.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 7.0
Syntax
public static Mesh CreateFromCone(
	Cone cone,
	int vertical,
	int around,
	bool solid,
	bool quadCaps
)

Parameters

cone
Type: Rhino.GeometryCone

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

vertical
Type: SystemInt32
Number of faces in the top-to-bottom direction.
around
Type: SystemInt32
Number of faces around the cone.
solid
Type: SystemBoolean
If false the mesh will be open with no faces on the circular planar portion.
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
A valid mesh if successful.
Exceptions
ExceptionCondition
ArgumentExceptionThrown when cone is invalid.
See Also