Class CombineAppearanceFilter

java.lang.Object
xj3d.filter.AbstractFilter
xj3d.filter.filters.CombineAppearanceFilter
All Implemented Interfaces:
BinaryContentHandler, ContentHandler, ProtoHandler, RouteHandler, ScriptHandler, StringContentHandler

public class CombineAppearanceFilter extends AbstractFilter
Filter for combining multiple Shapes into a single Shape node per unique Appearance.

The input to this filter is presumed to have been run through the FlattenTransformFilter. Input must have the Shape nodes as the root nodes of the Scene, otherwise they will be ignored. At present, only IndexedTriangle* are combined and output. Not supported Light associations are lost Grouping nodes associations are list(Switch, LOD, etc) Shaders not supported LocalFog associations are lost Ignores EXPORTS Combining textured objects, needs texture coordinate logic Typical filter setup to meet expectations: filter Triangulation FlattenTransform Index CombineAppearance Notes: useDecl doesn't make it this far so doing all value compare logic Textured objects have their texture coordinates removed currently

Version:
$Revision: 1.2 $
Author:
Alan Hudson