GLB file is not getting correctly read using RWGltf_CafReader

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: 
Vikas Beske's picture

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