Hi,
I have some problems with geometry compression. During decompression the
exceptions java.lang.IllegalArgumentException and
java.lang.ArrayIndexOutOfBoundsException appears.
Most of the objects are compressed/decompressed properly but in some cases
the decompression fails.
Any suggestions ?
Thanks,
Radoslaw Mantiuk
Exception in thread "main" java.lang.IllegalArgumentException:
GeneralizedStrip: strip ended incompletely
at
javax.media.j3d.GeneralizedStrip.toStripsAndFans(GeneralizedStrip.java:277)
at
javax.media.j3d.GeneralizedStrip.toTriangleStrips(GeneralizedStrip.java:423)
at
javax.media.j3d.GeneralizedVertexList.toTriangleStripArray(GeneralizedVertex
List.java:300)
at
javax.media.j3d.GeometryDecompressorShape3D.addShape3D(GeometryDecompressorS
hape3D.java:288)
at
javax.media.j3d.GeometryDecompressorShape3D.outputColor(GeometryDecompressor
Shape3D.java:219)
at
javax.media.j3d.GeometryDecompressor.processSetColor(GeometryDecompressor.ja
va:1042)
at
javax.media.j3d.GeometryDecompressor.processDecompressionOpcode(GeometryDeco
mpressor.java:443)
at
javax.media.j3d.GeometryDecompressor.processDecompression(GeometryDecompress
or.java:431)
at
javax.media.j3d.GeometryDecompressor.decompress(GeometryDecompressor.java:30
6)
at
javax.media.j3d.GeometryDecompressorShape3D.decompress(GeometryDecompressorS
hape3D.java:158)
at
javax.media.j3d.GeometryDecompressorShape3D.toTriangleStripArrays(GeometryDe
compressorShape3D.java:97)
at
javax.media.j3d.CompressedGeometry.decompress(CompressedGeometry.java:290)
at ElementBuilder.startBuild(J3DMLParser.java:284)
at J3DMLParser.startElement(J3DMLParser.java:1690)
at com.microstar.xml.XmlParser.parseElement(XmlParser.java:945)
at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1118)
at com.microstar.xml.XmlParser.parseElement(XmlParser.java:947)
at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1118)
at com.microstar.xml.XmlParser.parseElement(XmlParser.java:947)
at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1118)
at com.microstar.xml.XmlParser.parseElement(XmlParser.java:947)
at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1118)
at com.microstar.xml.XmlParser.parseElement(XmlParser.java:947)
at com.microstar.xml.XmlParser.parseDocument(XmlParser.java:496)
at com.microstar.xml.XmlParser.doParse(XmlParser.java:176)
at com.microstar.xml.XmlParser.parse(XmlParser.java:98)
at XmlApp.doParse(XmlApp.java:227)
at J3DMLParser.parseOC(J3DMLParser.java:1627)
at J3DMLLoader.loadOC(J3DMLLoader.java:32)
at J3DMLLoader.main(J3DMLLoader.java:43)
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
at
javax.media.j3d.GeometryDecompressor.indexNormal(GeometryDecompressor.java:8
78)
at
javax.media.j3d.GeometryDecompressor.processSetNormal(GeometryDecompressor.j
ava:836)
at
javax.media.j3d.GeometryDecompressor.processDecompressionOpcode(GeometryDeco
mpressor.java:441)
at
javax.media.j3d.GeometryDecompressor.processDecompression(GeometryDecompress
or.java:390)
at
javax.media.j3d.GeometryDecompressor.decompress(GeometryDecompressor.java:30
6)
at
javax.media.j3d.GeometryDecompressorShape3D.decompress(GeometryDecompressorS
hape3D.java:158)
at
javax.media.j3d.GeometryDecompressorShape3D.toTriangleStripArrays(GeometryDe
compressorShape3D.java:97)
at
javax.media.j3d.CompressedGeometry.decompress(CompressedGeometry.java:290)
at ElementBuilder.startBuild(J3DMLParser.java:284)
at J3DMLParser.startElement(J3DMLParser.java:1690)
at com.microstar.xml.XmlParser.parseElement(XmlParser.java:945)
at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1118)
at com.microstar.xml.XmlParser.parseElement(XmlParser.java:947)
at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1118)
at com.microstar.xml.XmlParser.parseElement(XmlParser.java:947)
at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1118)
at com.microstar.xml.XmlParser.parseElement(XmlParser.java:947)
at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1118)
at com.microstar.xml.XmlParser.parseElement(XmlParser.java:947)
at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1118)
at com.microstar.xml.XmlParser.parseElement(XmlParser.java:947)
at com.microstar.xml.XmlParser.parseDocument(XmlParser.java:496)
at com.microstar.xml.XmlParser.doParse(XmlParser.java:176)
at com.microstar.xml.XmlParser.parse(XmlParser.java:98)
at XmlApp.doParse(XmlApp.java:227)
at J3DMLParser.parseOC(J3DMLParser.java:1627)
at J3DMLLoader.loadOC(J3DMLLoader.java:32)
at J3DMLLoader.main(J3DMLLoader.java:43)
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".