# Bug found in vtkSplineWidget2 when a point is inserted

**URL:** https://discourse.vtk.org/t/bug-found-in-vtksplinewidget2-when-a-point-is-inserted/2071
**Category:** Support
**Created:** [November 8, 2019, 9:52am UTC](https://discourse.vtk.org/t/bug-found-in-vtksplinewidget2-when-a-point-is-inserted/2071 "2019-11-08T09:52:29Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![zandarina](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/z/4af34b/32.png) [@zandarina](https://discourse.vtk.org/u/zandarina)
#### Post date: [November 8, 2019, 9:52am UTC](https://discourse.vtk.org/t/bug-found-in-vtksplinewidget2-when-a-point-is-inserted/2071/1 "2019-11-08T09:52:29Z")

</div>

Hi,

I wonder if someone has realized that when a point is inserted in a vtkSplineWidget2 (ctrl+right button) from time to time the point is not set in the correct order so the spline is not smooth anymore. I wonder if this bug is already known. I will try to fix it by myself and i share it here.

Thanks

---

<div class="post-metadata">

### Author: ![flaviu2](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/f/74df32/32.png) [@flaviu2](https://discourse.vtk.org/u/flaviu2)
#### Post date: [August 12, 2020, 4:59pm UTC](https://discourse.vtk.org/t/bug-found-in-vtksplinewidget2-when-a-point-is-inserted/2071/2 "2020-08-12T16:59:43Z")

</div>

Hi. Did you fixed this bug ?

---

<div class="post-metadata">

### Author: ![zandarina](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/z/4af34b/32.png) [@zandarina](https://discourse.vtk.org/u/zandarina)
#### Post date: [October 5, 2020, 9:13am UTC](https://discourse.vtk.org/t/bug-found-in-vtksplinewidget2-when-a-point-is-inserted/2071/3 "2020-10-05T09:13:37Z")

</div>

Not yet

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [October 12, 2020, 1:48am UTC](https://discourse.vtk.org/t/bug-found-in-vtksplinewidget2-when-a-point-is-inserted/2071/4 "2020-10-12T01:48:18Z")

</div>

If you can reproduce the bug in Paraview then maybe it’s developers can fix this issue. If they don’t use this widget then you might need to take care of this issue yourself.

In 3D Slicer we tried to make use of VTK widgets for about a decade but they had so many issues (not just superficial issues like this one, but fundamental problems, too) that we gave up on them and implemented similar widgets with simpler and more efficient design. We have a spline widget that works well (for example, does not have this particular bug). If you need interactive pointset, line, angle, open/closed curve, or plane VTK widgets then you can use the implementation in 3D Slicer’s Python environment.

---

<div class="post-metadata">

### Author: ![zandarina](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/z/4af34b/32.png) [@zandarina](https://discourse.vtk.org/u/zandarina)
#### Post date: [October 13, 2020, 9:17am UTC](https://discourse.vtk.org/t/bug-found-in-vtksplinewidget2-when-a-point-is-inserted/2071/5 "2020-10-13T09:17:29Z")

</div>

Hello, Thank you for answering I will try this issue in paraview and in the newest version of vtk. I had an old version of vtk so it might be fixed now. Thanks.
