C# Class WaveEngine.Components.Primitives.Cylinder

A 3D cylinder.
Inheritance: Geometric
Afficher le fichier Open project: WaveEngine/Components

Méthodes publiques

Méthode Description
Cylinder ( float height, float diameter, int tessellation ) : System

Initializes a new instance of the Cylinder class.

Private Methods

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

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

Method Details

Cylinder() public méthode

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