SlicerRt / SlicerRT

Open-source toolkit for radiation therapy research, an extension of 3D Slicer. Features include DICOM-RT import/export, dose volume histogram, dose accumulation, external beam planning (TPS), structure comparison and morphology, isodose line/surface generation, etc.
https://slicerrt.org
126 stars 60 forks source link

Improve RTSTRUCT end-capping #178

Open lassoan opened 3 years ago

lassoan commented 3 years ago
  1. End-capping creates nice smooth segments but sometimes it creates unexpected results (see for example https://github.com/SlicerRt/SlicerRT/issues/171#issuecomment-758283111). It should be possible to enable/disable it using a conversion parameter (enabled by default).

  2. End-capping creates incorrectly oriented normals at the bottom of the structure. See for example (phantom-ent dataset - https://downgit.github.io/#/home?url=https://github.com/SlicerRt/SlicerRtData/tree/master/eclipse-8.1.20-phantom-ent/Original) brain segment. It is visible when exported to models:

image

lassoan commented 3 years ago

@Sunderlandkyl it would be great if you could have a look at this, too. Multiple groups would like to use SlicerRT DICOM importers because it is so good. However, it is not nice that exported models have to be fixed up (e.g., using vtkPolyDataNormals).

Sunderlandkyl commented 3 years ago

Ok. End cap normal direction should now be fixed, and I've added a conversion parameter to enabled/disable end capping (default enabled).

I plan to add these additional improvements to the end capping:

lassoan commented 3 years ago

Thanks a lot!

Both planned tasks would be really nice.

Maybe instead of an additional conversion parameter, we could have multiple values for endcapping (0=none, 1=smooth, 2=straight).