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
heightfloat-
The total height.
lowerRadiusfloat-
The radius at the base.
upperRadiusfloat-
The radius at the top. Zero gives a true cone.
slicesint-
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.