Package xj3d.filter

Class AppearanceFilter

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

public class AppearanceFilter extends BaseFilter
Search for Shape nodes which do not specify an Appearance node and add a default appearance or material to those nodes.

If -appAndMat is specified in the filter options, will add a Material node to the generated Appearance node.

The diffuse color for the Material node can be specified using -diffuse a b c, for example -diffuse 1.0 0.8 0.2 By default, a 0.8 0.8 0.8 value will be supplied (and the default value will be stripped from the output by the default output processor).

Version:
$Revision: 1.9 $
Author:
Eric Fickenscher (orig. Brad Vender)