Class ReindexFilter

java.lang.Object
All Implemented Interfaces:
BinaryContentHandler, ContentHandler, ProtoHandler, RouteHandler, ScriptHandler, StringContentHandler

public class ReindexFilter extends EncodedBaseFilter
Filter for reducing IndexedTriangleSet, IndexedTriangleStripSet, IndexedTriangleFanSet and IndexLineSet nodes to their most compact form. This filter will remove duplicate coordinates from the coordinate point array and recreate the index array to coorespond to the modified coordinate points.

At present, handling of color, normal and texCoord fields of the indexed geometry node set is not supported. If the coordinate array is already in it's most reduced form (i.e. it is passed through unmodified), then the color, normal and texCoord fields will be passed through unmodifed as well. If the coordinate and index arrays are changed, the color, normal and texCoord fields are dropped.

Version:
$Revision: 1.11 $
Author:
Rex Melton