Until now I thought that
Sketchup::Group transformations where local transformation matrix relative to their direct parent. But I bumped into a use case (443.4 KB) that I can’t understand/explanin and for which I need your help. The file is an extract from an existing scene.
In this use case the component instance has a transformation matrix and its direct child group also have the same exact transformation matrix. That means, if I’m right that both counteract each other :
subgroup_transform * cmp_transform.inverse == IDENTITY
- the visible shape is a non transformed shaped.
The use case behavior that I can’t understand is that :
- If I reset the component instance scale transform, the subgroup has its transform reset to an identity matrix (i’m fine with this) but its shape is altered and I can’t understand why…
- If I explode the component instance, the subgroup keeps the same shape and the same transform matrix… Its not what I was expected, I was much more wating for keeping the same shape but having the transform matrix altered.
- If I reset the sub group scale transformation first, then the component instance keeps its transform unchanged the shape is altered. Until there everything is fine to me but :
Reseting the component instance scale transform lead this time to alter the shape and the transform of the sub group.
These 3 tests aren’t consistants in their behaviour, moreover when using two instances transformed of the same definition we can check that the trnbsformation matrix of the subgroup isn’t the same… How can that be possible ?
Any idea ? Can anyone give me a clue of what is happening here ?