Class StlImporter

java.lang.Object
com.ardor3d.extension.model.stl.StlImporter

public class StlImporter extends Object
Reads an STL (STereoLithography) file and builds an Ardor3D Mesh. The STL format consists entirely of triangles and as a result is a simple format to handle. Also, it is widely supported by the CAD/CAM community. This class supports both ASCII and Binary formats and files residing either locally or on a network. Refer to Wikipedia. Several STL models can be downloaded freely from GrabCAD.
See Also:
  • Constructor Details

    • StlImporter

      public StlImporter()
      Constructor.
  • Method Details

    • load

      public StlGeometryStore load(String resource)
      Reads a STL file from the given resource
      Parameters:
      resource - the name of the resource to find.
      Returns:
      a StlGeometryStore data object containing the scene and other useful elements.
    • load

      public StlGeometryStore load(String resource, FileHelper fileHelper)
      Reads a STL file from the given resource
      Parameters:
      resource - the name of the resource to find.
      fileHelper - the file helper used to determine whether the resource is an Ascii file or a binary file
      Returns:
      a StlGeometryStore data object containing the scene and other useful elements.
    • load

      public StlGeometryStore load(ResourceSource resource)
      Reads a STL file from the given resource
      Parameters:
      resource - the resource to find.
      Returns:
      a StlGeometryStore data object containing the scene and other useful elements.
    • load

      public StlGeometryStore load(ResourceSource resource, FileHelper fileHelper)
      Reads a STL file from the given resource
      Parameters:
      resource - the resource to find.
      fileHelper - the file helper used to determine whether the resource is an Ascii file or a binary file
      Returns:
      a StlGeometryStore data object containing the scene and other useful elements.
    • setModelLocator

      public void setModelLocator(ResourceLocator locator)