# Segment Editor: Draw Tube

**URL:** <https://discourse.slicer.org/t/segment-editor-draw-tube/6050>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [March 6, 2019, 8:32pm UTC](https://discourse.slicer.org/t/segment-editor-draw-tube/6050 "2019-03-06T20:32:02Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![triple\_axel](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@triple\_axel](https://discourse.slicer.org/u/triple_axel)\
**Post date:** [March 6, 2019, 8:32pm UTC](https://discourse.slicer.org/t/segment-editor-draw-tube/6050/1 "2019-03-06T20:32:02Z")

</div>

Hi,

I am having issues creating a segment using the “Draw Tube” widget on Slicer 4.10.1.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/a/3a5943c96ee06c0e4810d0687f58b023f6f33e2c.png)

Once I mark the fudicials, why won’t the “Apply” button be enabled?  
What instances would render the “Apply” button enabled?

Thanks!

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [March 6, 2019, 8:45pm UTC](https://discourse.slicer.org/t/segment-editor-draw-tube/6050/2 "2019-03-06T20:45:07Z")

</div>

You need to place at least 3 fiducials for the apply button to become enabled for effects like “Draw tube” and “Surface cut”.

---

<div class="post-metadata">

**Author:** ![triple\_axel](https://avatars.discourse-cdn.com/v4/letter/t/e56c9b/32.png) [@triple\_axel](https://discourse.slicer.org/u/triple_axel)\
**Post date:** [March 6, 2019, 8:58pm UTC](https://discourse.slicer.org/t/segment-editor-draw-tube/6050/3 "2019-03-06T20:58:08Z")

</div>

Ahhh that did the trick. Thanks.

---

<div class="post-metadata">

**Author:** ![doc-xie](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@doc-xie](https://discourse.slicer.org/u/doc-xie)\
**Post date:** [June 25, 2019, 1:31am UTC](https://discourse.slicer.org/t/segment-editor-draw-tube/6050/4 "2019-06-25T01:31:24Z")

</div>

Hi,  
But in my software(4.11.0), the button of "place a markup point and delete last added markup point in Fiducial Placement is grey and can not be activated, what’s the reason about this?  
Thanks,  
Xie

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [June 25, 2019, 2:04am UTC](https://discourse.slicer.org/t/segment-editor-draw-tube/6050/5 "2019-06-25T02:04:45Z")

</div>

Have you added a segment? Do you have a master volume selected?

---

<div class="post-metadata">

**Author:** ![doc-xie](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@doc-xie](https://discourse.slicer.org/u/doc-xie)\
**Post date:** [June 26, 2019, 1:26am UTC](https://discourse.slicer.org/t/segment-editor-draw-tube/6050/6 "2019-06-26T01:26:17Z")

</div>

Hi Csaba Pinter,  
I have created a new segment and set the master volume, but the button of “place a markup point and delete last added markup point” in Fiducial Placement was still gray.  
Thanks,  
Xie

 ![15%20AM](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/7/d73bd0834dbf8b487b319066e4a890eeeaccf099.png)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [June 26, 2019, 2:19am UTC](https://discourse.slicer.org/t/segment-editor-draw-tube/6050/7 "2019-06-26T02:19:00Z")

</div>

I’ve just checked and it works well on Windows using both 4.10.2 and recent 4.11.x.

Please use latest stable version (currently 4.10.2) or later. Make sure to install “Markups to model” extension when offered (during installation of SegmentEditorExtraEffects extension). Is there any error in the application log?

---

<div class="post-metadata">

**Author:** ![doc-xie](https://avatars.discourse-cdn.com/v4/letter/d/c77e96/32.png) [@doc-xie](https://discourse.slicer.org/u/doc-xie)\
**Post date:** [July 30, 2019, 1:08am UTC](https://discourse.slicer.org/t/segment-editor-draw-tube/6050/8 "2019-07-30T01:08:11Z")

</div>

Hi Lassoan,  
After I delete the software and download the latest stable version again, the “Draw Tube” work well.  
Thanks,  
Dr.Xie

---

<div class="post-metadata">

**Author:** ![jens-k](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jens-k/32/6336_2.png) [@jens-k](https://discourse.slicer.org/u/jens-k)\
**Post date:** [March 23, 2020, 7:08pm UTC](https://discourse.slicer.org/t/segment-editor-draw-tube/6050/9 "2020-03-23T19:08:58Z")

</div>

Hey guys,  
why this decision to require the user to mark 3 points? Doesn’t that mean I basically cannot draw a straight tube?

Have you thought about linking the undo/redo buttons under the fiducial gui to the fiducial placement, so that one can undo those?

Best,  
Jens

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [March 23, 2020, 7:28pm UTC](https://discourse.slicer.org/t/segment-editor-draw-tube/6050/10 "2020-03-23T19:28:06Z")

</div>

There is no such limitation anymore. You can specify a straight line using 2 points.

If you use Slicer-4.10.2 then you need to update (or uninstall and reinstall) SegmentEditorExtraEffects extension. Or, you can install a recent Slicer Preview Release.

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [March 23, 2020, 10:39pm UTC](https://discourse.slicer.org/t/segment-editor-draw-tube/6050/11 "2020-03-23T22:39:10Z")

</div>

@lassoan 3 points is still required to be able to press “Apply” for the Draw Tube effect and Surface Cut. I guess it could be changed for Draw Tube to support \>= 2 points, but doesn’t make sense for Surface Cut.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [March 24, 2020, 1:05am UTC](https://discourse.slicer.org/t/segment-editor-draw-tube/6050/12 "2020-03-24T01:05:53Z")

</div>

Good point, “Apply” button was indeed disabled for 2 points. I’ve updated the extension now. Tomorrow’s version should allow you to draw a line using 2 points.

---

<div class="post-metadata">

**Author:** ![Jiuling\_SHEN](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jiuling_shen/32/67074_2.png) [@Jiuling\_SHEN](https://discourse.slicer.org/u/Jiuling_SHEN)\
**Post date:** [November 24, 2023, 8:44am UTC](https://discourse.slicer.org/t/segment-editor-draw-tube/6050/14 "2023-11-24T08:44:02Z")

</div>

Hi Lassoan,  
Can I input the coordinate values of fiducial position, such as X, Y, Z coordinates when Draw Tube ?  
Thanks,  
Dr.Shen
