This function unrolls the scene graph of a COLLADA file to produce a list of instanced primitives in MATLAB. It sequentially applies the necessary transformations to form instanced geometry.
This function only works on mesh geometry with triangle primitives (see http://www.khronos.org/files/collada_spec_1_4.pdf for more).
No other elements of the file are parsed.
Works with COLLADA file version 1.4
Randi Cabezas (2021). colladaParser (https://www.mathworks.com/matlabcentral/fileexchange/45687-colladaparser), MATLAB Central File Exchange. Retrieved .
Inspired by: xml2struct
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
I got something working with
https://www.mathworks.com/matlabcentral/fileexchange/28518-xml2struct
but not with
https://www.mathworks.com/matlabcentral/fileexchange/58700-xml2struct-with-bug-fix-and-added-features
The latter may corrupt some field names, including 'up_axis'.
Hello friend.. your implementation does not work even with the files you set as examples. You have probably missed something when you uploaded this or you have not finished it yet :P