# Place the splineWidget to complete the judgment

**URL:** https://discourse.vtk.org/t/place-the-splinewidget-to-complete-the-judgment/8782
**Category:** Web
**Created:** [June 22, 2022, 10:16am UTC](https://discourse.vtk.org/t/place-the-splinewidget-to-complete-the-judgment/8782 "2022-06-22T10:16:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![654545342](https://discourse.vtk.org/user_avatar/discourse.vtk.org/654545342/32/5138_2.png) [@654545342](https://discourse.vtk.org/u/654545342)
#### Post date: [June 22, 2022, 10:16am UTC](https://discourse.vtk.org/t/place-the-splinewidget-to-complete-the-judgment/8782/1 "2022-06-22T10:16:12Z")

</div>

How can I tell that the widget placement is done with an indeterminate number of handles like splineWidget. distanceWidget can be judged by the length of handleList.

---

<div class="post-metadata">

### Author: ![finetjul](https://discourse.vtk.org/user_avatar/discourse.vtk.org/finetjul/32/154_2.png) [@finetjul](https://discourse.vtk.org/u/finetjul)
#### Post date: [June 22, 2022, 10:38am UTC](https://discourse.vtk.org/t/place-the-splinewidget-to-complete-the-judgment/8782/2 "2022-06-22T10:38:43Z")

</div>

I’m not sure to understand your question, can you please reformulate ?

---

<div class="post-metadata">

### Author: ![654545342](https://discourse.vtk.org/user_avatar/discourse.vtk.org/654545342/32/5138_2.png) [@654545342](https://discourse.vtk.org/u/654545342)
#### Post date: [June 22, 2022, 10:52am UTC](https://discourse.vtk.org/t/place-the-splinewidget-to-complete-the-judgment/8782/3 "2022-06-22T10:52:15Z")

</div>

In distanceWidget, I can judge by judging the length of handleList in `widgetFactory.getWidegtState().onModified()`, this widget is placed. In splineWidget, the length of HandleList cannot be used to determine whether the placement is complete

---

<div class="post-metadata">

### Author: ![finetjul](https://discourse.vtk.org/user_avatar/discourse.vtk.org/finetjul/32/154_2.png) [@finetjul](https://discourse.vtk.org/u/finetjul)
#### Post date: [June 22, 2022, 1:47pm UTC](https://discourse.vtk.org/t/place-the-splinewidget-to-complete-the-judgment/8782/4 "2022-06-22T13:47:18Z")

</div>

Indeed, a distance is made of 2 points. A spline is made of as many points as possible.

You can observe the Widget EndInteractionEvent instead of the widgetState ModifiedEvent.
