using System;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
public static class ModelImporter
{
{
if (!File.Exists(thePath))
{
Debug.LogWarning("File not found: \"" + thePath + "\".");
return null;
}
{
if (theObserver != null)
{
theObserver.SetNotifyingThread();
aStatus.Register(theObserver);
}
{
Debug.LogError("Failed to read the file " + Path.GetFileName(thePath));
aStatus.Cancel();
return null;
}
if (theObserver != null)
{
aStatus.Unregister(theObserver);
}
}
return aModel;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
{
aParam.SetReadPMI(theImportPMI);
aParam.SetDelayedConversion(true);
return aParam;
}
}
Defines parameters of the A3DS_Reader.
Definition: A3DS_ReaderParameters.hxx:26
Defines parameters of the ACIS reader.
Definition: ACIS_ReaderParameters.hxx:27
Defines parameters of the B-Rep reader.
Definition: BRep_ReaderParameters.hxx:27
Base abstract class for observers registered in Base_ProgressStatus.
Definition: Base_ProgressStatus.hxx:43
Provides progress status and notification mechanism.
Definition: Base_ProgressStatus.hxx:33
Defines a Unicode (UTF-16) string wrapping a standard string.
Definition: Base_UTF16String.hxx:34
Defines parameters used by the CATIA reader.
Definition: CAT_ReaderParameters.hxx:28
Defines parameters of the Collada_Reader.
Definition: Collada_ReaderParameters.hxx:26
Defines parameters used by the Creo reader.
Definition: Creo_ReaderParameters.hxx:27
Defines parameters of the DS3DXML_Reader.
Definition: DS3DXML_ReaderParameters.hxx:26
Defines parameters of the DWG reader.
Definition: DWG_ReaderParameters.hxx:27
Defines parameters used by the DXF reader.
Definition: DXF_ReaderParameters.hxx:27
Defines parameters of the FBX_Reader.
Definition: FBX_ReaderParameters.hxx:27
Defines parameters of the GLTF_Reader.
Definition: GLTF_ReaderParameters.hxx:26
Defines parameters of the IFC_Reader.
Definition: IFC_ReaderParameters.hxx:27
Defines parameters of the IGES reader.
Definition: IGES_ReaderParameters.hxx:27
Defines parameters used by the Inventor reader.
Definition: INV_ReaderParameters.hxx:28
Defines parameters of the JT reader.
Definition: JT_ReaderParameters.hxx:27
Provides CAD Exchanger data model.
Definition: ModelData_Model.hxx:43
Reads any format that CAD Exchanger can import.
Definition: ModelData_ModelReader.hxx:33
void SetProgressStatus(const Base_ProgressStatus &theProgressStatus)
Sets the progress status for the reading process.
Definition: ModelData_ModelReader.cxx:222
void SetReaderParameters(const Base_ReaderParameters &theParameters)
Sets reader parameters.
Definition: ModelData_ModelReader.cxx:216
bool Read(const Base_UTF16String &theFilePath, ModelData_Model &theModel)
Reads the file at the specified path into the specified model.
Definition: ModelData_ModelReader.cxx:182
Defines parameters of the NX reader.
Definition: NX_ReaderParameters.hxx:27
Defines parameters of the OBJ reader.
Definition: OBJ_ReaderParameters.hxx:27
Defines parameters used by the PLY_Reader.
Definition: PLY_ReaderParameters.hxx:27
Defines parameters of the PRC_Reader.
Definition: PRC_ReaderParameters.hxx:26
Defines parameters of the Parasolid reader.
Definition: Para_ReaderParameters.hxx:27
Defines parameters of the Rhino reader.
Definition: Rhino_ReaderParameters.hxx:29
Defines parameters of the SLD_Reader.
Definition: SLD_ReaderParameters.hxx:28
Defines parameters of the SLDE_Reader.
Definition: SLDE_ReaderParameters.hxx:27
Defines parameters of the STEP_Reader.
Definition: STEP_ReaderParameters.hxx:27
Defines parameters of the STL reader.
Definition: STL_ReaderParameters.hxx:27
Defines parameters of the U3D reader.
Definition: U3D_ReaderParameters.hxx:27
Defines parameters of the VRML reader.
Definition: VRML_ReaderParameters.hxx:27
Defines parameters of the X3D reader.
Definition: X3D_ReaderParameters.hxx:27
Defines parameters of the X3DPDF reader.
Definition: X3DPDF_ReaderParameters.hxx:27
Defines parameters of the X3MF_Reader.
Definition: X3MF_ReaderParameters.hxx:27
Defines classes, types, and global functions related to CAD Exchanger.
Definition: A3DSTestLib.hxx:22