# Centerline model has duplicate points

**URL:** <https://discourse.slicer.org/t/centerline-model-has-duplicate-points/27545>\
**Category:** VMTK\
**Created:** [January 30, 2023, 9:51pm UTC](https://discourse.slicer.org/t/centerline-model-has-duplicate-points/27545 "2023-01-30T21:51:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [January 30, 2023, 9:51pm UTC](https://discourse.slicer.org/t/centerline-model-has-duplicate-points/27545/1 "2023-01-30T21:51:36Z")

</div>

Centerline model has duplicate points

Centerline models from ‘Extract centerline’ often, if not always, have duplicate points. I don’t know since when, this is apparent when using ‘Cross-section analysis’. At the duplicate point, the normal is (0, 0, 1) and the slice view always looks upwards. vtkCleanPolyData on the freshly generated centerline polydata in ‘Extract centerline’ does not _always_ fix this.

 ![Duplicate_points](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/3/134fd46ec29ac001688d04d7ae7d8121c92f1da1.png)

The picture above deals with the simplest test situation : draw a segment with ‘Paint’ as a sphere brush, auto-detect end points in ‘Extract centerline’ and generate the centerline model. Then in ‘Cross-section analysis’, use the centerline model with ‘CE diameter’ for the plot. When using a centerline curve, this unexpected output is not observed.

With anatomical surfaces, the same observations can be made.

It’s quite new, don’t know since when. Posting here in the hope of a fix. Using Slicer preview and self-built on Arch Linux.

Regards.
