Difference between revisions of "Documentation/Nightly/FAQ/Models"

From Slicer Wiki
Jump to: navigation, search
(Created page with '<noinclude>__TOC__ ={{#titleparts: {{PAGENAME}} | | -1 }}=</noinclude><includeonly> ='''User FAQ: {{{1}}}'''= </includeonly> == How can I transform a model for output? == Slice…')
 
Line 10: Line 10:
 
However some output formats, such as .stl format, do not have defined physical units, and some software will insist that data be saved with respect to units other than millimeters.  In this case, you can pre-transform the data before saving using the following steps:
 
However some output formats, such as .stl format, do not have defined physical units, and some software will insist that data be saved with respect to units other than millimeters.  In this case, you can pre-transform the data before saving using the following steps:
  
# Create a linear transform using the Transforms module
+
# Create a linear transform using the [[Documentation/{{documentation/version}}/Modules/Transforms|Transforms module]]
 
# Enter the conversion factor along the main diagonal of the transform matrix (i.e. if the export should be in meters rather than millimeters, then enter 0.001 in place of 1.0 along the three locations in the main diagonal).
 
# Enter the conversion factor along the main diagonal of the transform matrix (i.e. if the export should be in meters rather than millimeters, then enter 0.001 in place of 1.0 along the three locations in the main diagonal).
 
# Apply the new transform to the model (it will appear much smaller now in slicer)
 
# Apply the new transform to the model (it will appear much smaller now in slicer)
# Go to the Data module
+
# Go to the [[Documentation/{{documentation/version}}/Modules/Data|Data module]]
 
## Right-click on the model
 
## Right-click on the model
 
## Pick the Harden Transform menu item.
 
## Pick the Harden Transform menu item.
  
 
The model will not change size, but it will move out of the transform, meaning that the internal data points have been changed and is ready for saving.
 
The model will not change size, but it will move out of the transform, meaning that the internal data points have been changed and is ready for saving.

Revision as of 23:24, 3 June 2013

Home < Documentation < Nightly < FAQ < Models

Models

How can I transform a model for output?

Slicer performs all operations in millimeters, and all anatomy is referenced to the patient space. When the data from from DICOM or other formats with well-defined geometry mappings, all the dimensions are handled automatically.

However some output formats, such as .stl format, do not have defined physical units, and some software will insist that data be saved with respect to units other than millimeters. In this case, you can pre-transform the data before saving using the following steps:

  1. Create a linear transform using the Transforms module
  2. Enter the conversion factor along the main diagonal of the transform matrix (i.e. if the export should be in meters rather than millimeters, then enter 0.001 in place of 1.0 along the three locations in the main diagonal).
  3. Apply the new transform to the model (it will appear much smaller now in slicer)
  4. Go to the Data module
    1. Right-click on the model
    2. Pick the Harden Transform menu item.

The model will not change size, but it will move out of the transform, meaning that the internal data points have been changed and is ready for saving.