This is the discussion page of Specifications/GeometryGeneration. Please provide your input in regard to this specification


Comments

-- aerdemir 2016-04-14 17:41:11 Information below was ported from the main specifications page. It illustrates various iterations for smoothing, etc.

-- arielschwartz 2018-03-02 17:55:01 some users may benefit from seeing the geometry generation page in reverse order. Beginning with the component specific procedures, with links to instructions for Laplacian Smoothing, Taubin smoothing, etc. This way they can follow along with the instructions applicable to the part they are working with. Alternatively, a paragraph at the beginning of the page explaining the layout of this page (with links) will give users an idea of what they are reading before they begin.


Following are examples (oks001) of distance maps (using MeshLab: Hausdorf distance) between various pairs of surfaces to assess:

  1. spatial error between corresponding surfaces with varying levels of smoothing/refinement
  2. distance between different model components (e.g. femur vs. femur cartilage, BACK SURFACE)
  3. thickness of model components (e.g. cartilage):

To map tissue thicknesses (e.g. cartilage), opposing surfaces (i.e. BACK SURFACE, FRONT SURFACE) from a manifold (i.e. watertight) STL mesh were split into two complementary, shell STL mesh sets using Blender.

NOTE: all units are displayed in mm.

Smoothing Errors

UNSMOOTHED vs. SMOOTHED:

Distance between Model Components

FEMUR vs. FEMUR CARTILAGE:

FEMUR CARTILAGE vs. FEMUR:

Tissue Thickness

FEMUR CARTILAGE THICKNESS (UNSMOOTHED):

FEMUR CARTILAGE THICKNESS (VCG smoothed, 0.7):

FEMUR CARTILAGE THICKNESS (VCG smoothed, 0.7; ISO, 10):

FEMUR CARTILAGE THICKNESS (LVTIT):

NOTE: spurious distances (0.0 mm, which are known not to be correct) are present only in the FRONT SURFACE (REF) vs BACK SURFACE, despite similar relative normal directions between reference and measured surfaces!!!


Blender Procedures

Input/Output

IMPORT STL:

  1. File -> Import -> 'Stl (.stl)'.

  2. Select desired STL file(s) (multiple contiguous by holding 'Shift', multiple non-contiguous by holding 'Ctrl').
  3. Click 'Import STL'.

EXPORT STL:

  1. Select the desired mesh to export from the hierarchical Outliner editor pane (default: upper right).
  2. File -> Export -> 'Stl (.stl)'

  3. Specify a desired folder and filename (extension: .stl).
  4. Click 'Export STL'.

Useful Shortcuts

3D Viewport Interaction

Triangulated surface mesh (STL) splitting

In order to determine tissue thickness for thin structures (e.g. cartilage, ligament, tendon) using MeshLab, the manifold (water-tight) triangulated surface mesh must be split into to non-manifold, complementary shells. The procedure to do this is as follows:

  1. Import desired STL(s).
  2. Ensure you are in 'Object Mode' (shown in drop-down menu underneath the 3D Viewport).
  3. Selected the desired STL with one of the following options:
    1. In the 'Outliner' panel (default: upper right), showing the scene graph and datablocks hierarchy, left-click the desired STL.
    2. In the 3D View, right-click on the desired STL interactively.
  4. Hit 'Tab' to change to 'Edit Mode'.
  5. Make sure 'Face Select' mode is selected:
    • in the 3D Viewport menu (underneath), left-click the icon showing a cube with one orange face (in a group of three icons, in the ).
  6. Press 'a' to deselect all faces (automatically selected by default when entering 'Edit Mode').
  7. SELECT DESIRED SET OF CONTIGUOUS TRIANGLES:
    • Right-click a single triangular face on the desired side of the thin model component.
    • In 3D Viewport menu -> Select -> 'Linked Flat Faces':

    • Adjust Sharpness (angle: degrees) until the desired set of contiguous triangular faces are obtained (determine the max. angle that includes the largest region of one side of the thin structure, without spilling over onto the opposite face of the structure).
    • MODIFY SELECTION, IF NEEDED:
      1. Add/select 'holes' (unselected triangles) in contiguously selected region: use 'Circle Select' or 'Lasso Select'
      2. Tidy boundary of select contiguous triangles: use 'Circle Select'
  8. PARTITION STL MESH:
    • Press 'p' ('Separate').
    • From Pop-up menu -> 'Selection P'


General Procedures

General Procedure: NO Smoothing (RAW)

  1. Slicer:

    1. Load desired segmented label map/image volume.
    2. Generate triangulated surface (STL) from desired component using (Smooth = 0, Decimate = 0, 'Post Merge Simplification').
    3. Save STL to file using naming convention (Specifications/DataManagement).

General Procedure: Smoothing (LVTIT)

  1. Slicer:

    1. Load desired segmented label map/image volume.
    2. Generate triangulated surface (STL) from desired component using 'Laplacian Smoothing' [L] (Smooth = 20, Decimate = 0, 'Post Merge Simplification'), to provide maximum mesh volume prior to following processing steps, which tend to shrink the volume.
    3. Save STL to file using naming convention (Specifications/DataManagement).

  2. Meshlab:

    1. Load STL generated in prior step.
    2. Perform 'Surface Reconstruction: VCG' [V] ('Voxel Side'(world unit) = 0.35-0.7, for cartilage MRI, resolution = 0.35 x 0.35 x 0.7 mm), to smooth out step-i-ness of mesh.
    3. Perform 'Taubin Smoothing' [T] (Lambda = 0.5, mu = -0.53), to make discretized triangules more uniform in areas of high curvature or triangle node density.
    4. Perform 'Iso Parametrization' [I].
    5. Perform 'Iso Parametrization Remeshing' (Sampling rate = 3-20).
    6. Perform 'Taubin Smoothing' [T] (Lambda = 0.5, mu = -0.53), to untwist potentially collapsed triangles at focal points from iso parametrization.


Specifications/GeometryGeneration/Discussion (last edited 2018-05-18 18:19:34 by arielschwartz)