# Draw specific dimension

**URL:** <https://discourse.slicer.org/t/draw-specific-dimension/22934>\
**Category:** Support\
**Created:** [April 13, 2022, 12:19pm UTC](https://discourse.slicer.org/t/draw-specific-dimension/22934 "2022-04-13T12:19:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![BORIPHAT](https://avatars.discourse-cdn.com/v4/letter/b/67e7ee/32.png) [@BORIPHAT](https://discourse.slicer.org/u/BORIPHAT)\
**Post date:** [April 13, 2022, 12:19pm UTC](https://discourse.slicer.org/t/draw-specific-dimension/22934/1 "2022-04-13T12:19:06Z")

</div>

Hello all,  
How can I draw two specific dimension on CT image? Could you please give me some advice? Thank you very much.

 ![Picture1](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/7/67cf63b81dc5f44af7041523ef5892489c85db0a.jpeg)

---

<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:** [April 13, 2022, 2:23pm UTC](https://discourse.slicer.org/t/draw-specific-dimension/22934/2 "2022-04-13T14:23:56Z")

</div>

Tough not exactly what you are showing, you can use the ‘Scissors’ tool of Segment Editor to get close to your picture. Choose Fill inside/ Circle/ Centered/ Symmetric (1.0 mm) to draw a circular segment. You won’t be able to specify an arbitrary diameter numerically.

For more precise drawing, have a look at [vtkDiskSource](https://vtk.org/doc/nightly/html/classvtkDiskSource.html). Of course, a new interactive tool should be created if you want to draw with the mouse, or even if you want to specify a center with a fiducial point and a radius with a slider.

Since such a tool does not already exist, it’s usefulness in Slicer’s realm is probably questionable.

---

<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:** [April 13, 2022, 2:30pm UTC](https://discourse.slicer.org/t/draw-specific-dimension/22934/3 "2022-04-13T14:30:40Z")

</div>

Various markups exist for simple measurements such as “Line” for linear measurement, “Angle” for measuring degrees and others for area measurements such as “Closed Curve” and “ROI”, but there is not a markup for creating circles to then get radius values.

[https://slicer.readthedocs.io/en/latest/user\_guide/modules/markups.html?highlight=markups#place-new-markups](https://slicer.readthedocs.io/en/latest/user_guide/modules/markups.html?highlight=markups#place-new-markups)

---

<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:** [April 13, 2022, 6:06pm UTC](https://discourse.slicer.org/t/draw-specific-dimension/22934/4 "2022-04-13T18:06:42Z")

</div>

For any measurement types that are not supported already by an existing markup, you can create your own custom markup by a little Python scripting. The idea is that you use markups to position models. You can add an observer to the markup so that if a control point position is changed then you get notified and you update the model.

There are a few simple examples in the script repository, as [this](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#define-edit-a-circular-region-of-interest-in-a-slice-viewer). There is a more complex example here:

> [@Drawing Circle on CT Image](https://discourse.slicer.org/t/drawing-circle-on-ct-image/20387/3):
>
> You can also use 2 points of a markups fiducial node to specify a circle by copy-pasting a few lines of code to into the Python console as shown in [this example](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#define-edit-a-circular-region-of-interest-in-a-slice-viewer). I’ve created a modified script that allows you to place 2 circles by specifying 6 points on the circumference: [Compute bone axis in 3D Slicer by specifying two circles. · GitHub](https://gist.github.com/lassoan/99514fb5edf98e1e3dda926253dc9742) You can use this by placing one fiducial list containing 6 points then copy-pasting into the Python console: [[Custom interactive measurement using P…](https://www.youtube.com/watch?v=1DG3y1TqWvw)

I would recommend using a vtkSphereSource for drawing a circle because then you don’t need to worry about orientation.

---

<div class="post-metadata">

**Author:** ![BORIPHAT](https://avatars.discourse-cdn.com/v4/letter/b/67e7ee/32.png) [@BORIPHAT](https://discourse.slicer.org/u/BORIPHAT)\
**Post date:** [April 14, 2022, 5:12am UTC](https://discourse.slicer.org/t/draw-specific-dimension/22934/5 "2022-04-14T05:12:58Z")

</div>

Thank you very much for your suggestion.

---

<div class="post-metadata">

**Author:** ![BORIPHAT](https://avatars.discourse-cdn.com/v4/letter/b/67e7ee/32.png) [@BORIPHAT](https://discourse.slicer.org/u/BORIPHAT)\
**Post date:** [April 14, 2022, 5:17am UTC](https://discourse.slicer.org/t/draw-specific-dimension/22934/6 "2022-04-14T05:17:19Z")

</div>

Thank you very much for your guidance. It was very useful, and now I did it.  
 ![Picture5](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/4/542dcf0f45e40963736e275575f201e86648c25d.png)

---

<div class="post-metadata">

**Author:** ![BORIPHAT](https://avatars.discourse-cdn.com/v4/letter/b/67e7ee/32.png) [@BORIPHAT](https://discourse.slicer.org/u/BORIPHAT)\
**Post date:** [April 14, 2022, 5:18am UTC](https://discourse.slicer.org/t/draw-specific-dimension/22934/7 "2022-04-14T05:18:14Z")

</div>

Thank you very much for your suggestion.
