ImportFile() public static method

public static ImportFile ( string filePath ) : Mesh
filePath string
return UnityEngine.Mesh
Esempio n. 1
0
 public void ScanInternal(string objMeshPath)
 {
     Mesh x = ObjImporter.ImportFile(objMeshPath);
     if (x == null)
     {
         Debug.LogError("Couldn't read .obj file at '" + objMeshPath + "'");
         return;
     }
     this.sourceMesh = x;
     base.ScanInternal();
 }
Esempio n. 2
0
        /** Scans the graph using the path to an .obj mesh */
        public void ScanInternal(string objMeshPath)
        {
            Mesh mesh = ObjImporter.ImportFile(objMeshPath);

            if (mesh == null)
            {
                Debug.LogError("Couldn't read .obj file at '" + objMeshPath + "'");
                return;
            }

            sourceMesh = mesh;
            ScanInternal();
        }
Esempio n. 3
0
        public void ScanInternal(string objMeshPath)
        {
            Mesh x = ObjImporter.ImportFile(objMeshPath);

            if (x == null)
            {
                Debug.LogError("Couldn't read .obj file at '" + objMeshPath + "'");
                return;
            }
            this.sourceMesh = x;
            IEnumerator <Progress> enumerator = this.ScanInternal().GetEnumerator();

            while (enumerator.MoveNext())
            {
            }
        }
        public void ScanInternal(string objMeshPath)
        {
            Mesh mesh = ObjImporter.ImportFile(objMeshPath);

            if (mesh == null)
            {
                Debug.LogError("Couldn't read .obj file at '" + objMeshPath + "'");
                return;
            }

            sourceMesh = mesh;

            var scan = ScanInternal().GetEnumerator();

            while (scan.MoveNext())
            {
            }
        }