You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hope to control assimp export format.
I use GetExportFormatDescription(index) from 0 to last one and get follow result:
0: dae 1: x 2: stp 3: obj 4: obj 5: stl 6: stl 7: ply 8: ply 9: 3ds 10: gltf 11: glb 12: gltf2 13: assbin 14: assxml 15: x3d 16: 3mf
There are two obj (3,4) and two ply(7,8).
I think that two obj or ply format, maybe one ascii and another one bin.
But how does it control or choose?
Assimp::Exporter exporter;
auto numExporters = exporter.GetExportFormatCount();
int index = -1;
for (auto i = 0; i < numExporters; i++) {
const aiExportFormatDesc format = exporter.GetExportFormatDescription(i);
TRACE("%d: %s\n", i, format->fileExtension);
if (ext.compare(format->fileExtension) == 0)
index = i;
}
if (index == -1)
{
AfxMessageBox(L"No support format");
}
const aiExportFormatDesc format = exporter.GetExportFormatDescription(index);
aiReturn ret = exporter.Export(scene, format->id, out);
}
The text was updated successfully, but these errors were encountered:
kimkulling
added
Bug
Global flag to mark a deviation from expected behaviour
API
Bugs related to the public API
labels
May 22, 2019
I hope to control assimp export format.
I use GetExportFormatDescription(index) from 0 to last one and get follow result:
0: dae 1: x 2: stp 3: obj 4: obj 5: stl 6: stl 7: ply 8: ply 9: 3ds 10: gltf 11: glb 12: gltf2 13: assbin 14: assxml 15: x3d 16: 3mf
There are two obj (3,4) and two ply(7,8).
I think that two obj or ply format, maybe one ascii and another one bin.
But how does it control or choose?
my code as follow:
The text was updated successfully, but these errors were encountered: