org.jagatoo.loaders.models.collada.datastructs.geometries
Class PolygonsGeometry

java.lang.Object
  extended by org.jagatoo.loaders.models.collada.datastructs.geometries.Geometry
      extended by org.jagatoo.loaders.models.collada.datastructs.geometries.PolygonsGeometry

public class PolygonsGeometry
extends Geometry

COLLADA Polygons Geometry contains geometry loaded from a COLLADA file which has the "polygon" format


Constructor Summary
PolygonsGeometry(AssetFolder file, java.lang.String id, java.lang.String name, int polygonCount, XMLGeometry geometry)
          Creates a new COLLADA Polygons Geometry.
 
Method Summary
 PolygonsGeometry copy()
           
 Mesh[] getPolygons()
           
 
Methods inherited from class org.jagatoo.loaders.models.collada.datastructs.geometries.Geometry
getFile, getGeometry, getId, getMesh, getName, setMesh
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolygonsGeometry

public PolygonsGeometry(AssetFolder file,
                        java.lang.String id,
                        java.lang.String name,
                        int polygonCount,
                        XMLGeometry geometry)
Creates a new COLLADA Polygons Geometry.

Parameters:
file - The given AssetFolder to load from
id -
name -
polygonCount - The number of polygons that should be in that PolygonsGeometry
geometry - the geometry
Method Detail

getPolygons

public final Mesh[] getPolygons()
Returns:
the polygons.

copy

public PolygonsGeometry copy()
Specified by:
copy in class Geometry
Returns:
a shared copy of this Geometry. (The sources are shared.)