Package com.ardor3d.extension.model.stl
Class StlImporter
java.lang.Object
com.ardor3d.extension.model.stl.StlImporter
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:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Extends StreamTokenizer for parsing STL files. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionload
(ResourceSource resource) Reads a STL file from the given resourceload
(ResourceSource resource, FileHelper fileHelper) Reads a STL file from the given resourceReads a STL file from the given resourceload
(String resource, FileHelper fileHelper) Reads a STL file from the given resourcevoid
setModelLocator
(ResourceLocator locator)
-
Constructor Details
-
StlImporter
public StlImporter()Constructor.
-
-
Method Details
-
load
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
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
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
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
-