Thu, 05/16/2024 - 15:00
I am using the Open CASCADE 7.7.0 version on Linux machine.
I am trying to read a GLB file using the RWGltf_CafReader class, add some extra data into the model then again export the new glb model using the RWGltfCafWriter.
But looks like reader is not reading the GLB model properly. I am not getting any error but the exported model is empty.
The code I am using to do this all operations are as below
const char* glbPath = "somepath";
RWGltf_CafReader reader;
Message_ProgressRange msg;
reader.SetDocument(doc);
reader.SetParallel(true);
bool result = reader.Perform(glbPath , msg)
Please guide me if I am going wrong somewhere in the code.
I am attaching the sample input glb model as well as output glb model.
Attachments:
Fri, 05/17/2024 - 12:43
Hi
It got resolved. Everything is fine with the reading part. Due to some operations post reading the entire data was getting removed and as a result empty file was getting generated.
regards