Is it possible to add animation around user selected edge (Custom axis)) while exporting in GLTF?

I am trying to rotate rectangular box around its edge. Its like door. Which is rotate around pivot point.
Currently the component is rotating around axis which is defined by the origin point. I am not able to set the axis at the user selected point or edge.
So while writing the file is there any way to set the axis co-ordinates ?
Is there any way to do so?
Thank you for any suggestion.

gkv311 n's picture

Are you asking if OCCT supports exporting animation into glTF format (currently it doesn't) or something else (what exactly then? please share some code/sample)?

rahulmulik9's picture

Yes. Current I am only able to rotate component along the origin point. I am trying to do rotation along the edge.
I am attached file which rotate along center point. I want to rotate along the edge.
In the code while writing bin file I am not able to set the proper axis. Each time it is taking origin as axis point?
So is there is way to set the rotation of axis?
I am using C++ language and RWGltf_CafWriter api for writing the GLTF file.

Attachments: 
gkv311 n's picture

I don't know rotation logic works in your application that reads generated glTF (which application?), so that it is unclear by which means this application could expect rotation axis to be exported.

rahulmulik9's picture

I have attached two files.
First file consist of two images that will show the expected output which I achieve using Open cascade library in MFC viewer.
I want to export that into GLTF file.
Second image shows that output file rotating around center not the edge.