Component Instance Transformation

Each component instance or group has a single transformation (4×4 matrix). The transformation includes also the translation, so there is no additional data required.

  • make sure you interprete the axis correctly (in SketchUp: x = right, y = back, z = up)
  • components can be nested and form a hierarchy. The vertices of the most innerst component get the transformation of their parent component, then the transformation of the parent of the parent… etc. applied.
  • make sure to consider the 4th diagonal matrix element. It is a uniform scale factor, and if it’s not 1.0 it is multiplied to the x, y, z scale.