Class Importer3D

java.lang.Object
eu.mihosoft.vrl.v3d.ext.openjfx.importers.Importer3D

public final class Importer3D extends Object
Base Importer for all supported 3D file formats
  • Constructor Details Link icon

    • Importer3D Link icon

      public Importer3D()
  • Method Details Link icon

    • getSupportedFormatExtensionFilters Link icon

      public static String[] getSupportedFormatExtensionFilters()
      Get array of extension filters for supported file formats.
      Returns:
      array of extension filters for supported file formats.
    • load Link icon

      public static javafx.scene.Node load(String fileUrl) throws IOException
      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 Link icon

      public static javafx.scene.Node load(String fileUrl, boolean asPolygonMesh) throws IOException
      Load a 3D file.
      Parameters:
      fileUrl - The url of the 3D file to load
      asPolygonMesh - 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 Link icon

      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 load
      asPolygonMesh - 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