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
127 stars 60 forks source link

Many warnings in planar contour to closed surface conversion #103

Closed cpinter closed 5 years ago

cpinter commented 5 years ago

A warning is logged many times and pollutes the output

Warning: In C:\d\S4R\VTK\Common\DataModel\vtkPolyData.cxx, line 993 vtkPolyData (0000022C698427F0): Building VTK_LINE 1 with only one point, but VTK_LINE needs at least two points. Check the input.

Can be reproduced for sure with the dataset from the issue https://github.com/SlicerRt/SlicerRT/issues/102

Sunderlandkyl commented 5 years ago

During the end cap decimation, some lines were decimated to < 2 points. Fixed in 2f2920a,

cpinter commented 5 years ago

Awesome, thank you!