How to Use SUTransform to correctly render my geometry?

I am working on a code to render skp models directly into Unreal. I am able to render flat models(which do not have hierarchy), but the models which have hierarchies are not rendered correctly.
eg.
Hierarchy Models


In my code I am multiplying the transform to vertices ,

I am updating the finaltransform value from each group/component by multiplying the transform vector for previous group / component!

I want to ask if I am doing wrong? If so, what should I rather do ?
Thanks

Please learn how to use code blocks in the forum, ie:

Did you notice the geometry helper functions in “geometry.h” ?

http://extensions.sketchup.com/developer_center/sketchup_c_api/sketchup/model_2geometry_8h.html

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.