Package com.ardor3d.extension.model.off
Class OffImporter
java.lang.Object
com.ardor3d.extension.model.off.OffImporter
OFF importer. See the format spec and
Geomview's documentation
N.B: WORK IN PROGRESS, STILL A LOT OF WORK TO DO
N.B: supports only the ASCII file format as there's a lack of available binary files to make some tests and the
specification mentions some constants in the include file named "off.h" but it's not included in Geomview's source
code. It supports only 1D, 2D and 3D without homogeneous coordinates. It supports only triangles and quads.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected OffGeometryStore
createGeometryStore
(GeometryTool geometryTool) load
(ResourceSource resource) Reads a OFF file from the given resourceload
(ResourceSource resource, GeometryTool geometryTool) Reads a OFF file from the given resourceReads a OFF file from the given resourceload
(String resource, GeometryTool geometryTool) Reads a OFF file from the given resourcevoid
setModelLocator
(ResourceLocator locator)
-
Constructor Details
-
OffImporter
public OffImporter()Constructor. -
OffImporter
-
-
Method Details
-
load
Reads a OFF file from the given resource- Parameters:
resource
- the name of the resource to find.- Returns:
- a OffGeometryStore data object containing the scene and other useful elements.
-
load
Reads a OFF file from the given resource- Parameters:
resource
- the name of the resource to find.geometryTool
- the geometry tool to optimize the meshes- Returns:
- a OffGeometryStore data object containing the scene and other useful elements.
-
load
Reads a OFF file from the given resource- Parameters:
resource
- the resource to find.- Returns:
- a OffGeometryStore data object containing the scene and other useful elements.
-
load
Reads a OFF file from the given resource- Parameters:
resource
- the resource to find.geometryTool
- the geometry tool to optimize the meshes- Returns:
- a OffGeometryStore data object containing the scene and other useful elements.
-
createGeometryStore
-
setModelLocator
-