[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/actions ImportFileReader.java, 1.3, 1.4
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2007-10-18 07:58:09
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/actions In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10295/src/net/sourceforge/bprocessor/gui/actions Modified Files: ImportFileReader.java Log Message: swaps coordinates and scales in .obj reader Index: ImportFileReader.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/actions/ImportFileReader.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ImportFileReader.java 15 Oct 2007 12:42:51 -0000 1.3 --- ImportFileReader.java 18 Oct 2007 07:58:12 -0000 1.4 *************** *** 88,94 **** String[] lineContent = line.split("\\s"); if (lineContent[0].equals("v")) { ! Vertex v = new Vertex(Double.parseDouble(lineContent[1]), ! Double.parseDouble(lineContent[2]), ! Double.parseDouble(lineContent[3])); verts.add(v); v2es.put(v, new HashSet<Edge>()); --- 88,96 ---- String[] lineContent = line.split("\\s"); if (lineContent[0].equals("v")) { ! double x = Double.parseDouble(lineContent[1]); ! double y = Double.parseDouble(lineContent[2]); ! double z = Double.parseDouble(lineContent[3]); ! double factor = 0.1; ! Vertex v = new Vertex(z * factor, x * factor, y * factor); verts.add(v); v2es.put(v, new HashSet<Edge>()); |