toxi.geom.mesh
Class MaterialiseSTLColorModel
java.lang.Object
toxi.geom.mesh.MaterialiseSTLColorModel
- All Implemented Interfaces:
- STLColorModel
public class MaterialiseSTLColorModel
- extends java.lang.Object
- implements STLColorModel
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MaterialiseSTLColorModel
public MaterialiseSTLColorModel(int rgb)
MaterialiseSTLColorModel
public MaterialiseSTLColorModel(int rgb,
boolean enableFacets)
enableFacetColors
public void enableFacetColors(boolean enabled)
- Parameters:
enabled
- the useFacetColors to set
facetColorsEnabled
public boolean facetColorsEnabled()
- Returns:
- the useFacetColors
formatHeader
public void formatHeader(byte[] header)
- Specified by:
formatHeader
in interface STLColorModel
formatRGB
public int formatRGB(int rgb)
- Specified by:
formatRGB
in interface STLColorModel
getBaseColor
public int getBaseColor()
- Returns:
- the baseColor
getDefaultRGB
public int getDefaultRGB()
- Specified by:
getDefaultRGB
in interface STLColorModel
setBaseColor
public void setBaseColor(int baseColor)
- Parameters:
baseColor
- the baseColor to set