C# Class WaveEngine.Components.Primitives.Cone

A 3D cone.
Inheritance: Geometric
Datei anzeigen Open project: WaveEngine/Components

Public Methods

Method Description
Cone ( float height, float diameter, int tessellation ) : System

Initializes a new instance of the Cone class.

Private Methods

Method Description
CreateCap ( int tessellation, float height, float radius, System.Vector3 normal ) : void

Helper method creates a triangle fan to close the ends of the cylinder.

Method Details

Cone() public method

Initializes a new instance of the Cone class.
If tessellation is less than 3.
public Cone ( float height, float diameter, int tessellation ) : System
height float The height.
diameter float The diameter.
tessellation int The tessellation.
return System