Table of Contents

Method Cone

Namespace
Box3D
Assembly
Box3D.NET.dll

Cone(float, float, float, int)

Builds a tessellated cone or truncated cone about the y axis.

public static ConvexHull Cone(float height, float lowerRadius, float upperRadius = 0, int slices = 16)

Parameters

height float

The total height.

lowerRadius float

The radius at the base.

upperRadius float

The radius at the top. Zero gives a true cone.

slices int

The number of slices around the circumference.

Returns

ConvexHull

The hull.

Remarks

As with Box3D.ConvexHull.Cylinder(System.Single,System.Single,System.Single,System.Int32), the base sits at the origin rather than the centre.