public interface Importer
Modifier and Type | Method and Description |
---|---|
void |
clear()
Disposes of the imported data.
|
void |
close()
Disposes of the imported data and closes the importer.
|
double |
getCreaseAngle()
Gets the crease angle for normals generation measured in degrees.
|
java.lang.Object |
getImport()
Gets the imported 3D data.
|
void |
onFileImported()
Method is invoked upon completion of import.
|
void |
read(java.io.File file)
Imports a 3D model file passed as a File object.
|
void |
read(java.lang.String filePath)
Imports a 3D model file with the passed file path.
|
void |
read(java.net.URL url)
Imports a 3D model file from the passed location.
|
void |
setCreaseAngle(double degrees)
Sets the crease angle for normals generation measured in degrees.
|
double getCreaseAngle()
Default value: 45
void setCreaseAngle(double degrees)
Default value: 45
degrees
- crease angle for generating normalsvoid read(java.io.File file)
file
- File object to importImportException
- if the importer encounters a problem reading or parsing the specified file or if the importer is closedvoid read(java.lang.String filePath)
filePath
- location of the file to importImportException
- if the importer encounters a problem reading or parsing the specified file or if the importer is closedvoid read(java.net.URL url)
url
- location of the file to importImportException
- if the importer encounters a problem reading or parsing the specified file or if the importer is closedvoid onFileImported()
java.lang.Object getImport()
void clear()
void close()
Copyright (C) 2013-2014 InteractiveMesh e.K.