public FbxWriter CreateWriter(FbxManager pManager, FbxExporter pExporter, int pPluginID)
        {
            global::System.IntPtr cPtr = FbxWrapperNativePINVOKE.FbxIOPluginRegistry_CreateWriter(swigCPtr, FbxManager.getCPtr(pManager), FbxExporter.getCPtr(pExporter), pPluginID);
            FbxWriter             ret  = (cPtr == global::System.IntPtr.Zero) ? null : new FbxWriter(cPtr, false);

            if (FbxWrapperNativePINVOKE.SWIGPendingException.Pending)
            {
                throw FbxWrapperNativePINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Esempio n. 2
0
        static void FbxExample()
        {
            //string pathI = @".\..\..\..\..\file_samples\fbx\objects_ascii_2014-2015.fbx";
            string pathI = @".\..\..\..\..\file_samples\fbx\test_project_arq_acsii.fbx";
            //string pathO = @".\..\..\..\..\file_samples\fbx\objects_ascii_2014-2015_out.fbx";
            string pathO = @".\..\..\..\..\file_samples\fbx\test_project_arq_acsii_out.fbx";

            Scene scene = FbxReader.Read(pathI, ErrorLevel.Checked);

            FbxWriter.WriteAscii(pathO, scene);
        }
Esempio n. 3
0
        static void GltfExample()
        {
            //string pathI = @".\..\..\..\..\file_samples\gltf\Box.glb";
            //string pathO = @".\..\..\..\..\file_samples\gltf\Box_out.fbx";
            //string pathI = @".\..\..\..\..\file_samples\gltf\objects_ascii_2014-2015.glb";
            //string pathO = @".\..\..\..\..\file_samples\gltf\objects_ascii_2014-2015_out.fbx";
            //string pathI = @".\..\..\..\..\file_samples\gltf\2CylinderEngine.glb";
            //string pathO = @".\..\..\..\..\file_samples\gltf\2CylinderEngine_out.fbx";
            //string pathI = @".\..\..\..\..\file_samples\gltf\canoe.glb";
            //string pathO = @".\..\..\..\..\file_samples\gltf\canoe_out.fbx";
            string pathI = @".\..\..\..\..\file_samples\gltf\GearboxAssy.glb";
            string pathO = @".\..\..\..\..\file_samples\gltf\GearboxAssy_out.fbx";

            using (GltfReader reader = new GltfReader(pathI))
            {
                Scene scene = reader.Read();
                FbxWriter.WriteAscii(pathO, scene);
            }
        }
Esempio n. 4
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxWriter obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }