Contents
Class Importer3D
java.lang.Object
eu.mihosoft.vrl.v3d.ext.openjfx.importers.Importer3D
Base Importer for all supported 3D file formats
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]
Get array of extension filters for supported file formats.static javafx.scene.Node
Load a 3D file, always loaded as TriangleMesh.static javafx.scene.Node
Load a 3D file.static javafx.util.Pair
<javafx.scene.Node, javafx.animation.Timeline> loadIncludingAnimation
(String fileUrl, boolean asPolygonMesh) Load a 3D file.
-
Constructor Details
-
Method Details
-
getSupportedFormatExtensionFilters
Get array of extension filters for supported file formats.- Returns:
- array of extension filters for supported file formats.
-
load
Load a 3D file, always loaded as TriangleMesh.- Parameters:
fileUrl
- The url of the 3D file to load- Returns:
- The loaded Node which could be a MeshView or a Group
- Throws:
IOException
- if issue loading file
-
load
Load a 3D file.- Parameters:
fileUrl
- The url of the 3D file to loadasPolygonMesh
- When true load as a PolygonMesh if the loader supports- Returns:
- The loaded Node which could be a MeshView or a Group
- Throws:
IOException
- if issue loading file
-
loadIncludingAnimation
public static javafx.util.Pair<javafx.scene.Node, javafx.animation.Timeline> loadIncludingAnimation(String fileUrl, boolean asPolygonMesh) throws IOException Load a 3D file.- Parameters:
fileUrl
- The url of the 3D file to loadasPolygonMesh
- When true load as a PolygonMesh if the loader supports- Returns:
- The loaded Node which could be a MeshView or a Group and the Timeline animation
- Throws:
IOException
- if issue loading file
-