com.sun.j3d.utils.compression
Interface CompressionStream.GeometryAccessor
- All Known Implementing Classes:
- CompressionStream.ByCopyGeometry, CompressionStream.ByRefGeometry, CompressionStream.ByRefGeometryNIO, CompressionStream.IndexedByCopyGeometry, CompressionStream.IndexedByRefGeometry, CompressionStream.IndexedByRefGeometryNIO, CompressionStream.IndexedInterleavedGeometryFloat, CompressionStream.IndexedInterleavedGeometryNIO, CompressionStream.InterleavedGeometry, CompressionStream.InterleavedGeometryFloat, CompressionStream.InterleavedGeometryNIO
- Enclosing class:
- CompressionStream
private static interface CompressionStream.GeometryAccessor
Interface to access GeometryArray vertex components and add them to the
compression stream.
A processVertex() implementation retrieves vertex components using the
appropriate access semantics of a particular GeometryArray, and adds
them to the compression stream.
The implementation always pushes vertices into the mesh buffer unless
they match ones already there; if they do, it generates mesh buffer
references instead. This reduces the number of vertices when
non-stripped abutting facets are added to the stream.
Note: Level II geometry compression semantics allow the mesh buffer
normals to be substituted with the value of an immediately
preceding SetNormal command, but this is unavailable in Level I.
processVertex
void processVertex(int index,
int stripFlag)
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.