------------- Begin Forwarded Message ------------- > Date: Sun, 28 Jan 2001 18:07:21 -0800 > From: Rajamiyer Ravichandran <[EMAIL PROTECTED]> > > I am wondering how can I send a CompressedGeometry > object across the network. The CompressedGeometry > class does not support Serializable interface. Java 3D scene graph components currently don't implement the Serializable interface. This is particularly unfortunate for the CompressedGeometry class since one of the major benefits of compressed geometry is in reducing transmission time across networks. There is a related problem that has been assigned RFE (Request For Enhancement) #4374631 -- "CompressedGeometryFile can't be used by applets with default security." One of the proposed fixes is to make the CompressedGeometry class serializable. Our project manager has assigned this RFE for implementation in J3D 1.3. To get around this problem for now requires some work. You'll have to get the compressed data using the getCompressedGeometry() method and a copy of the header using getCompressedGeometryHeader(). Once you have this information you can write a file from which an InputStream could be created using java.net.URL, or set up a client/server architecture using streams created from java.net.Socket instances. Some people have tried using CompressedGeometryFile, but you can't create an InputStream to read CG objects out of it over a network since it is a structured file requiring random access -- you'd have to copy the entire file over and read CG out of it locally. This is the problem to be addressed by RFE 4374631. -- Mark Hood ------------- End Forwarded Message ------------- =========================================================================== 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".
