Class ObjOrPolyObjImporter

java.lang.Object
eu.mihosoft.vrl.v3d.ext.openjfx.importers.Importer
eu.mihosoft.vrl.v3d.ext.openjfx.importers.obj.ObjOrPolyObjImporter

public class ObjOrPolyObjImporter extends Importer
object loader
  • Constructor Details

    • ObjOrPolyObjImporter

      public ObjOrPolyObjImporter()
  • Method Details

    • load

      public void load(String fileUrl, boolean asPolygonMesh) throws IOException
      Description copied from class: Importer
      Loads the 3D file
      Specified by:
      load in class Importer
      Parameters:
      fileUrl - The url of the 3D file to load
      asPolygonMesh - When true load as a PolygonMesh if the loader supports.
      Throws:
      IOException - If issue loading file
    • getRoot

      public javafx.scene.Group getRoot()
      Description copied from class: Importer
      Gets the 3D node that was loaded earlier through the load() call
      Specified by:
      getRoot in class Importer
      Returns:
      The loaded node
    • isSupported

      public boolean isSupported(String extension)
      Description copied from class: Importer
      Tests if the given 3D file extension is supported (e.g. "ma", "ase", "obj", "fxml", "dae").
      Specified by:
      isSupported in class Importer
      Parameters:
      extension - The file extension (e.g. "ma", "ase", "obj", "fxml", "dae")
      Returns:
      True if the extension is of a supported type. False otherwise.