Primitive3D Cylinder
new Cylinder()public function Cylinder(radius:Number, height:Number, quality:Number, mode:String, noTop:Boolean, noBottom:Boolean, noSides:Boolean, separateFaces:Boolean)This is the constructor to call when you need to create a Cylinder primitive.
This method will create a complete object with vertex, normales, texture coords and the faces. So it allows to have a custom 3D object easily
radius represents the radius of the cylinder, height represent its height and quality its quality (the number of faces)
radius | Number |
height | Number |
quality | Number |
mode | String represent the two available modes to generates the faces. "tri" is necessary to have faces with 3 points, and "quad" for 4 points. |
noTop | Boolean If true, the top of the cylinder is not rendered (defaults to false). |
noBottom | Boolean If true, the bottom of the cylinder is not rendered (defaults to false). |
noSides | Boolean If true, the sides of the cylinder are not rendered (defaults to false). |
separateFaces | Boolean If true, texture faces separately (defaults to false). |
public function getPrimitiveName(Void):String