Package org.bzdev.p3d

Class BinarySTLParser

java.lang.Object
org.bzdev.p3d.BinarySTLParser

public class BinarySTLParser extends Object
Parser for Binary STL files.
  • Constructor Details

    • BinarySTLParser

      public BinarySTLParser(InputStream is)
      Constructor.
      Parameters:
      is - the input stream used to read an STL file
  • Method Details

    • setIgnoreAttributeByteCounts

      public void setIgnoreAttributeByteCounts(boolean value)
      Determine whether the attribute byte count field should be ignored.
      Parameters:
      value - true if the attribute byte count field should be ignored; false otherwise
    • addToModel

      public void addToModel(Model3D m3d) throws IOException
      Add the contents of an STL file to a model. If the model is configures to use object transformations, (rotations and translation), those will be applied.
      Parameters:
      m3d - the model
      Throws:
      IOException - an IO exception occurred