Hi,
Did someone use the CompressedGeometryFile in Java3D?
When I call CompressedGeometryFile.write() to write the compressed data?

There're always  NullPointerException or ArrayOutBoundException?

The code are as follows:

Shape3D shapes[] = new Shape3D[12];
for(i=0;..)
{
shapes[i]=....
}
CompressionStream cs = new CompressionStream(shapes);
GeometryCompressor gc = new GeometryCompressor();
CompressedGeometry cg = gc.compress(cs);
cgFile = new CompressedGeometryFile("test.out", true);
try{
     cgFile.write(cg);
}
catch (IOException ex) { System.out.println(ex); }

Why?

Thanks,
Q.Z

===========================================================================
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".

Reply via email to