class Geometry
package away3d.core.base
extends NamedAssetBase
implements IAsset
extended by ParticleGeometry, PrimitiveBase
Available on all platforms
Geometry is a collection of SubGeometries, each of which contain the actual geometrical data such as vertices, normals, uvs, etc. It also contains a reference to an animation class, which defines how the geometry moves. A Geometry object is assigned to a Mesh, a scene graph occurence of the geometry, which in turn assigns the SubGeometries to its respective SubMesh objects.
See also:
away3d.core.base.SubGeometry
away3d.scenegraph.Mesh
Constructor
Variables
Methods
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
removeSubGeometry(subGeometry:ISubGeometry):Void
Removes a new SubGeometry object from the list.
Parameters:
subGeometry | The SubGeometry object to be removed. |
|---|
scaleUV(scaleU:Float = 1, scaleV:Float = 1):Void
Scales the uv coordinates (tiling)
Parameters:
scaleU | The amount by which to scale on the u axis. Default is 1; |
|---|---|
scaleV | The amount by which to scale on the v axis. Default is 1; |