Class MaterialiseSTLColorModel

java.lang.Object
toxi.geom.mesh.MaterialiseSTLColorModel
All Implemented Interfaces:
STLColorModel

public class MaterialiseSTLColorModel extends Object implements STLColorModel
  • 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 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