Primitive3D CylSurface A cylindrically curved surface
new CylSurface()public function CylSurface(radius:Number, height:Number, angle:Number, quality:Number, mode:String, gridAngle:Number)This is the constructor to call when you need to create a CylSurface 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, so the number of faces
radius | Number |
height | Number |
angle | Number, the generating angle in degrees starting from 0 |
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. |
public function generate(Void):VoidDescription copied from Primitive3D
generate
generate all is needed to construct the Object3D :
It can construct dynamically the object, taking care of your preferences given in arguments.
Note in Sandy 0.1 all faces have only three points.
This will change in the future version,
and give to you the possibility to choose n points per faces
public function getSize(Void):VectorgetSize() returns the radius, height, and angle as a Vector (useful for storing an object's attributes). Returns vector where x is the radius, y is the height, and z is the angle
public function toString(Void):StringDescription copied from Object3D
Represents the Object3D into a String.
toString() in sandy.primitive.Primitive3D