A Cylinder primitive mesh.

Constructor

@:value({ yUp : true, surfaceClosed : true, bottomClosed : true, topClosed : true, segmentsH : 1, segmentsW : 16, height : 100, bottomRadius : 50, topRadius : 50 })new(topRadius:Float = 50, bottomRadius:Float = 50, height:Float = 100, segmentsW:Int = 16, segmentsH:Int = 1, topClosed:Bool = true, bottomClosed:Bool = true, surfaceClosed:Bool = true, yUp:Bool = true)

Creates a new Cylinder object.

Parameters:

topRadius

The radius of the top end of the cylinder.

bottomRadius

The radius of the bottom end of the cylinder

height

The radius of the bottom end of the cylinder

segmentsW

Defines the number of horizontal segments that make up the cylinder. Defaults to 16.

segmentsH

Defines the number of vertical segments that make up the cylinder. Defaults to 1.

topClosed

Defines whether the top end of the cylinder is closed (true) or open.

bottomClosed

Defines whether the bottom end of the cylinder is closed (true) or open.

yUp

Defines whether the cone poles should lay on the Y-axis (true) or on the Z-axis (false).

Variables

Inherited Variables

Defined by Geometry

read onlyassetType:String

read onlysubGeometries:Vector<ISubGeometry>

Defined by NamedAssetBase

read onlyassetFullPath:Array<Dynamic>

read onlyassetNamespace:String

id:String

name:String

read onlyoriginalName:String

Inherited Methods

Defined by PrimitiveBase

applyTransformation(transform:Matrix3D):Void

@inheritDoc

clone():Geometry

@inheritDoc

scale(scale:Float):Void

@inheritDoc

@:value({ scaleV : 1, scaleU : 1 })scaleUV(scaleU:Float = 1, scaleV:Float = 1):Void

@inheritDoc

Defined by Geometry

addSubGeometry(subGeometry:ISubGeometry):Void

Adds a new SubGeometry object to the list.

Parameters:

subGeometry

The SubGeometry object to be added.

convertToSeparateBuffers():Void

Updates the SubGeometries so all vertex data is represented in different buffers. Use this for compatibility with Pixel Bender and PBPickingCollider

dispose():Void

Clears all resources used by the Geometry object, including SubGeometries.

removeSubGeometry(subGeometry:ISubGeometry):Void

Removes a new SubGeometry object from the list.

Parameters:

subGeometry

The SubGeometry object to be removed.

Defined by NamedAssetBase

assetPathEquals(name:String, ns:String):Bool

@:value({ overrideOriginal : true, ns : null })resetAssetPath(name:String, ?ns:String, overrideOriginal:Bool = true):Void