The Translation Transform

Translation is the type of transform that simply moves a figure to another location without changing its size or orientation. The TranslateTransform3D class defines three properties of type double with default values of 0: OffsetX, OffsetY, and OffsetZ. You might want to apply a TranslateTransform3D to a GeometryModel3D element, for example. This requires property element syntax for the Transform property of GeometryModel3D to enclose the TranslateTransform3D element:

<GeometryModel3D>
    ...
    <GeometryModel3D.Transform>
        <TranslateTransform3D OffsetX="2" OffsetY="0" OffsetZ="-1" />
    </GeometryModel3D.Transform>
</GeometryModel3D>

The figure described by the GeometryModel3D is effectively transposed as if you had added 2 to the ...

Get 3D Programming for Windows® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.