Package xj3d.filter

Class MaterialFilter

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

public class MaterialFilter extends AbstractFilter
Search for Appearance nodes which do not specify a Material node, and add material Material { diffuseColor ... } to those nodes. 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).
Author:
Brad Vender