Package toxi.geom.mesh
Class MaterialiseSTLColorModel
java.lang.Object
toxi.geom.mesh.MaterialiseSTLColorModel
- All Implemented Interfaces:
STLColorModel
-
Constructor Summary
ConstructorDescriptionMaterialiseSTLColorModel
(int rgb) MaterialiseSTLColorModel
(int rgb, boolean enableFacets) -
Method Summary
Modifier and TypeMethodDescriptionvoid
enableFacetColors
(boolean enabled) boolean
void
formatHeader
(byte[] header) int
formatRGB
(int rgb) int
int
void
setBaseColor
(int baseColor)
-
Constructor Details
-
MaterialiseSTLColorModel
public MaterialiseSTLColorModel(int rgb) -
MaterialiseSTLColorModel
public MaterialiseSTLColorModel(int rgb, boolean enableFacets)
-
-
Method Details
-
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 interfaceSTLColorModel
-
formatRGB
public int formatRGB(int rgb) - Specified by:
formatRGB
in interfaceSTLColorModel
-
getBaseColor
public int getBaseColor()- Returns:
- the baseColor
-
getDefaultRGB
public int getDefaultRGB()- Specified by:
getDefaultRGB
in interfaceSTLColorModel
-
setBaseColor
public void setBaseColor(int baseColor) - Parameters:
baseColor
- the baseColor to set
-