Skip to content
Snippets Groups Projects

support surface writer output transform (#2505)

Merged Mark OLESEN requested to merge feature-surfaceWriter-coordinateTransform into develop
  1. Jun 13, 2022
    • Mark OLESEN's avatar
      ENH: support surface writer output transform (#2505) · ad0235a7
      Mark OLESEN authored and Andrew Heather's avatar Andrew Heather committed
      - this allows the "relocation" of sampled surfaces. For example,
        to reposition into a different coordinate system for importing
        into CAD.
      
      - incorporate output scaling for all surface writer types.
      
        This was previously done on an adhoc basis for different writers,
        but with now included in the base-level so that all writers
        can automatically use scale + transform.
      
        Example:
      
        formatOptions
        {
            vtk
            {
                scale 1000;  // m -> mm
                transform
                {
                    origin  (0.05 0 0);
                    rotation axisAngle;
                    axis    (0 0 1);
                    angle   -45;
                }
            }
        }
      ad0235a7