org.jagatoo.loaders.models.collada.stax
Class XMLTriangles

java.lang.Object
  extended by org.jagatoo.loaders.models.collada.stax.XMLTriangles

public class XMLTriangles
extends java.lang.Object

A set of triangles. It's an INDEXED triangle set. There are several input sources and the p list contains the position of the data to take from these input sources to make a triangle. Let's take an example. We have two inputs : VERTEX and NORMAL, with offsets 0 and 1. You'd read the p indices list like that : for(int i = 0; i < p.length; i+=2) { vertex = vertices.get(p[i+0]); normal = normals.get(p[i+1]); }


Field Summary
 int count
           
 java.util.ArrayList<XMLInput> inputs
           
 java.lang.String name
           
 int[] p
           
 
Constructor Summary
XMLTriangles()
           
 
Method Summary
 void parse(javax.xml.stream.XMLStreamReader parser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

count

public int count

name

public java.lang.String name

inputs

public java.util.ArrayList<XMLInput> inputs

p

public int[] p
Constructor Detail

XMLTriangles

public XMLTriangles()
Method Detail

parse

public void parse(javax.xml.stream.XMLStreamReader parser)
           throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException