* (COLLAborative Design Activity) model. Making use of a DOM parse, the XML
* formatted COLLADA file is parsed into Java Type classes and then processed by
* jME. This processing is currently aimed at the 1.4.1 release of the COLLADA
- * Specification, and will, in most likelyhood, require updating with a new
+ * Specification, and will, in most likelihood, require updating with a new
* release of COLLADA.
*
* @author Mark Powell, Rikard Herlitz, and others
/**
* load takes the model path as a string object and uses the
- * COLLADASchemaDoc object to load it. This is then stored as a heirarchy of
- * data objects. This heirarchy is passed to the processCollada method to
+ * COLLADASchemaDoc object to load it. This is then stored as a hierarchy of
+ * data objects. This hierarchy is passed to the processCollada method to
* build the jME data structures necessary to view the model.
*
* @param source
* the meshType to process for the trimesh.
* @param geom
* the geometryType of the TriMesh to build.
- * @return the jME tri mesh representing the COLLADA mesh.
+ * @return the jME trimesh representing the COLLADA mesh.
* @throws Exception
- * thrown if there is a problem processing the xml.
+ * thrown if there is a problem processing the XML.
*/
private Spatial processPolygonMesh(meshType mesh, geometryType geom)
throws Exception {
* the meshType to process for the lines.
* @param geom
* the geomType for the lines
- * @return the jME tri mesh representing the COLLADA mesh.
+ * @return the jME trimesh representing the COLLADA mesh.
*/
private Spatial processLines(meshType mesh, geometryType geom) {
if (!squelch) {
* @param libScene
* the library of scenes
* @throws Exception
- * thrown if there is a problem processing the xml.
+ * thrown if there is a problem processing the XML.
*/
private void processVisualSceneLibrary(library_visual_scenesType libScene)
throws Exception {
return;
}
- //read material properites.
+ //read material properties.
if (strWord.equals(MATERIAL_AMBIENT)) {
material.ambient[0] = Float.parseFloat(tokenizer.nextToken());
material.ambient[1] = Float.parseFloat(tokenizer.nextToken());
currentObject.materialID));
}
}
- // If we hit a vertice index to a face
+ // If we hit a vertex index to a face
else if (word.equals(FACE)) {
// Make sure that is the data that we want to read in
if (desiredData.equals(FACE)) {
else if (word.equals(TFACE)) {
// Make sure that is the data that we want to read in
if (desiredData.equals(TFACE)) {
- // Read in a texture indice for a face
+ // Read in a texture index for a face
readTextureFace(currentObject);
}
}
* Reads a given <code>format</code> and writes it to <code>jMEFormat</code> in the jME binary format.
* @param format InputStream representing the format to read
* @param jMEFormat OutputStream to write the jME binary equivalent too
- * @throws IOException If anything goes wrong during the writting
+ * @throws IOException If anything goes wrong during the writing
*/
public abstract void convert(InputStream format,OutputStream jMEFormat) throws IOException;