Class sandy.primitive.Cylinder

Implemented Interfaces

Primitive3D

Description

Cylinder

Field Index

Inherited from Object3D

Inherited from Node

Method Index

new Cylinder()
getPrimitiveName()

Inherited from Conic

Inherited from Object3D

Inherited from Leaf

Inherited from Node

Constructor Detail

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)

Parameters

radiusNumber
heightNumber
qualityNumber
modeString represent the two available modes to generates the faces. "tri" is necessary to have faces with 3 points, and "quad" for 4 points.
noTopBoolean If true, the top of the cylinder is not rendered (defaults to false).
noBottomBoolean If true, the bottom of the cylinder is not rendered (defaults to false).
noSidesBoolean If true, the sides of the cylinder are not rendered (defaults to false).
separateFacesBoolean If true, texture faces separately (defaults to false).

Method Detail

getPrimitiveName

public function getPrimitiveName(Void):String