public static bool ImportOBJToDMesh(DMesh dm, string obj_file_name, bool units_inches, Editor editor, TextureManager tex_manager)
        {
            if (!File.Exists(obj_file_name))
            {
                return(false);
            }

            ObjFile obj_file = new ObjFile();

            obj_file.Load(obj_file_name);

            ConvertObjFileToDMesh(obj_file, dm, units_inches, obj_file_name, editor, tex_manager);

            return(true);
        }
Esempio n. 2
0
 static void Test()
 {
     var model = ObjFile.Load("teapot_0.obj");
 }