> Hello All, > > I am in the project of creating a new loader for our graphical file format. > Now my loader just reads all the points and face from the file format and
> represents it as a complete shape. > > GeometryInfo gi = new geometryInfo(GeometryInfo.TRIANGLE_ARRAY); > gi.setCoordinateIndices(); > gi.setCoordinates(); > > The file format that I am using also specifies multiple parts ID in the > complete shape. I want to load the complete shape but must be able to > pick each part from it and do some behavior on it. I have a doubt we > can do this if we are using GeometryInfo class. Use a separate GeometryInfo for each part. ObjectFile.java does something similar. It uses a separate GeometryInfo for each part. It also groups parts together for normal generation within "smoothing groups" and then breaks them apart again into individual pieces. Look at the ObjectFile source for an example of what you're trying to do. You may be able to just modify it to do what you need. -Paul =========================================================================== 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".
