# Development

**URL:** https://discourse.slicer.org/c/dev/5.md?no_subcategories=false&page=51

[Latest](https://discourse.slicer.org/latest.md) · [Categories](https://discourse.slicer.org/categories.md) · [Tags](https://discourse.slicer.org/tags.md)

**Page:** 52

---

## [How to set FOV through XML](https://discourse.slicer.org/t/how-to-set-fov-through-xml/24586)

<div class="topic-metadata">

**Author:** [@michabermoy](https://discourse.slicer.org/u/michabermoy)\
**Replies:** 3\
**Last updated:** [August 1, 2022, 12:36pm UTC](https://discourse.slicer.org/t/how-to-set-fov-through-xml/24586 "2022-08-01T12:36:49Z")

</div>

I have written code that generates a customized tabbed layout based on the number of segments as shown below: However, the field of view for the Red (Axial), Green (Coronal), and Yellow (Sagittal) view windows is n…

---

## [Debugging cannot attach on Linux?](https://discourse.slicer.org/t/debugging-cannot-attach-on-linux/24526)

<div class="topic-metadata">

**Author:** [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Replies:** 1\
**Last updated:** [August 1, 2022, 9:29am UTC](https://discourse.slicer.org/t/debugging-cannot-attach-on-linux/24526 "2022-08-01T09:29:37Z")

</div>

Hi all, I’m trying to debug Slicer (few commits after 5.0.3) on Ubuntu 20.04. I built Slicer in debug mode, and tried the following: Attach debugger from VS Code after starting the debug Slicer with its launcher (Slic…

---

## [Change interactor style for a little time](https://discourse.slicer.org/t/change-interactor-style-for-a-little-time/24584)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 1\
**Last updated:** [July 31, 2022, 10:00pm UTC](https://discourse.slicer.org/t/change-interactor-style-for-a-little-time/24584 "2022-07-31T22:00:26Z")

</div>

Hi, I’m trying to allow rubber band 2D to change field of view of a slice node. Thus I change interactor style for vtkInteractorStyleRubberBand2D for a while and then I need to restore the default vtkMRMLSliceViewInter…

---

## [Rotate a vtkMRMLModelNode() in a specific direction](https://discourse.slicer.org/t/rotate-a-vtkmrmlmodelnode-in-a-specific-direction/24512)

<div class="topic-metadata">

**Author:** [@mosenco](https://discourse.slicer.org/u/mosenco)\
**Replies:** 1\
**Last updated:** [July 27, 2022, 10:59am UTC](https://discourse.slicer.org/t/rotate-a-vtkmrmlmodelnode-in-a-specific-direction/24512 "2022-07-27T10:59:05Z")

</div>

I have created a cylinderSource = vtk.vtkCylinderSource() and then a cylindermodel = slicer.vtkMRMLModelNode() and “linked together” with cylindermodel.SetAndObservePolyData(cylinderSource.GetOutput()) then i created a…

---

## [New Module for Labelmap/Segmentation Evaluation](https://discourse.slicer.org/t/new-module-for-labelmap-segmentation-evaluation/24501)

<div class="topic-metadata">

**Author:** [@Mehran](https://discourse.slicer.org/u/Mehran)\
**Replies:** 0\
**Last updated:** [July 26, 2022, 3:01pm UTC](https://discourse.slicer.org/t/new-module-for-labelmap-segmentation-evaluation/24501 "2022-07-26T15:01:45Z")

</div>

Dear members, I shared a new module to evaluate labelmap/segmentation by extracting several metrics such as DICE, Jaccard, AUC, AVD,… . In order to use this module you need to provide a reference and a test image to ext…

---

## [How to judge a curve model obtained with vtkplanecut or vtkcutter is closed?](https://discourse.slicer.org/t/how-to-judge-a-curve-model-obtained-with-vtkplanecut-or-vtkcutter-is-closed/24470)

<div class="topic-metadata">

**Author:** [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Replies:** 5\
**Last updated:** [July 25, 2022, 10:01pm UTC](https://discourse.slicer.org/t/how-to-judge-a-curve-model-obtained-with-vtkplanecut-or-vtkcutter-is-closed/24470 "2022-07-25T22:01:30Z")

</div>

How to judge a curve model obtained with vtkplanecut or vtkcutter is closed? @lassoan@Juicy@jamesobutler @jcfr @pieper@ jmhuie @manjula @szhang

---

## [Sequence Get & Set Current Frame](https://discourse.slicer.org/t/sequence-get-set-current-frame/24372)

<div class="topic-metadata">

**Author:** [@connorh](https://discourse.slicer.org/u/connorh)\
**Replies:** 1\
**Last updated:** [July 25, 2022, 4:04pm UTC](https://discourse.slicer.org/t/sequence-get-set-current-frame/24372 "2022-07-25T16:04:23Z")

</div>

I’m trying to get and set the current ‘frame’ (timepoint) of a vtkMRMLSequenceBrowserNode in python. I can use browserNode.SelectNextItem(0) to get the current frame without error, but then following that when playing t…

---

## [Visual studio 2022 project never up-to-date after build](https://discourse.slicer.org/t/visual-studio-2022-project-never-up-to-date-after-build/24461)

<div class="topic-metadata">

**Author:** [@PaulMartinMurphy](https://discourse.slicer.org/u/PaulMartinMurphy)\
**Replies:** 2\
**Last updated:** [July 25, 2022, 3:43am UTC](https://discourse.slicer.org/t/visual-studio-2022-project-never-up-to-date-after-build/24461 "2022-07-25T03:43:02Z")

</div>

Hi all, I am trying to build Slicer for Windows 10 with Visual Studio Community 2022 version 17.2.6, after configuring it in CMake 3.23.2 with Qt 5.15.2, according to the directions here The build for target ALL\_BUILDS…

---

## [Howto get a centroid of a section in a slice?](https://discourse.slicer.org/t/howto-get-a-centroid-of-a-section-in-a-slice/24339)

<div class="topic-metadata">

**Author:** [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Replies:** 8\
**Last updated:** [July 24, 2022, 12:23am UTC](https://discourse.slicer.org/t/howto-get-a-centroid-of-a-section-in-a-slice/24339 "2022-07-24T00:23:30Z")

</div>

I want to get each centroid of the pedicle sections in green slice(as shown below) by code.

---

## [Importing label maps with MultiVolumeImporter as segmentations](https://discourse.slicer.org/t/importing-label-maps-with-multivolumeimporter-as-segmentations/24458)

<div class="topic-metadata">

**Author:** [@pitfall24](https://discourse.slicer.org/u/pitfall24)\
**Replies:** 1\
**Last updated:** [July 23, 2022, 5:53am UTC](https://discourse.slicer.org/t/importing-label-maps-with-multivolumeimporter-as-segmentations/24458 "2022-07-23T05:53:19Z")

</div>

I have a series of nifti files which form a 4D sequence. Using MultiVolumeImporter/Explorer I was able to view the volumes perfectly. However I also have a series of corresponding segmentations in the same nifti format w…

---

## [Can't use \`launchConsoleProcess\`](https://discourse.slicer.org/t/cant-use-launchconsoleprocess/24414)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 9\
**Last updated:** [July 21, 2022, 6:24pm UTC](https://discourse.slicer.org/t/cant-use-launchconsoleprocess/24414 "2022-07-21T18:24:41Z")

</div>

Hi, From this topic I’m trying to run simple command and see output in Slicer Log messages: slicer.util.launchConsoleProcess(\[sys.executable, '-c', 'print(\\"Hi\\")'\]) I get the output in Python console \<Popen: returnco…

---

## [Creating a parameterized hemisphere](https://discourse.slicer.org/t/creating-a-parameterized-hemisphere/24431)

<div class="topic-metadata">

**Author:** [@AMK](https://discourse.slicer.org/u/AMK)\
**Replies:** 0\
**Last updated:** [July 21, 2022, 2:25pm UTC](https://discourse.slicer.org/t/creating-a-parameterized-hemisphere/24431 "2022-07-21T14:25:48Z")

</div>

Hi, I am trying to develop a module where I need to create a hollow hemisphere whose parameters such as inner radius and outer radius can be varied as per command of the user. I am able to perform the required operation…

---

## [How to judge whether a point in a model node (3d model)](https://discourse.slicer.org/t/how-to-judge-whether-a-point-in-a-model-node-3d-model/24427)

<div class="topic-metadata">

**Author:** [@1023185654](https://discourse.slicer.org/u/1023185654)\
**Replies:** 2\
**Last updated:** [July 21, 2022, 9:41am UTC](https://discourse.slicer.org/t/how-to-judge-whether-a-point-in-a-model-node-3d-model/24427 "2022-07-21T09:41:59Z")

</div>

hello everyone, i suppose to judge whether a point inside or outside with 3D model, how i can do this? i tried to use vtk.vtkSelectEnclosedPoints() but it dosent work

---

## [NthMarkup changed into NthControlPoint?](https://discourse.slicer.org/t/nthmarkup-changed-into-nthcontrolpoint/24424)

<div class="topic-metadata">

**Author:** [@mosenco](https://discourse.slicer.org/u/mosenco)\
**Replies:** 1\
**Last updated:** [July 20, 2022, 10:07pm UTC](https://discourse.slicer.org/t/nthmarkup-changed-into-nthcontrolpoint/24424 "2022-07-20T22:07:54Z")

</div>

As someone suggested me, i read the documentation about the Migration to Slicer 5.0 I have this method called SetNthMarkupDescription() but i found no clue into the guide except for this line: vtkMRMLMarkupsNode::GetNt…

---

## [vtkSlicerMarkupsLogic methods from v4.8 missing from master version](https://discourse.slicer.org/t/vtkslicermarkupslogic-methods-from-v4-8-missing-from-master-version/24418)

<div class="topic-metadata">

**Author:** [@mosenco](https://discourse.slicer.org/u/mosenco)\
**Replies:** 2\
**Last updated:** [July 20, 2022, 7:39pm UTC](https://discourse.slicer.org/t/vtkslicermarkupslogic-methods-from-v4-8-missing-from-master-version/24418 "2022-07-20T19:39:48Z")

</div>

I’m trying to upgrade the code of modules developed for slicer4.6 with python 2.7 into slicer5.0.3 with python3.9 All went good until i found out that some methods are missing in the new slicer version. mlogic = slicer…

---

## [How to extract the vertex coordinates of a polygon of a model in the current section?](https://discourse.slicer.org/t/how-to-extract-the-vertex-coordinates-of-a-polygon-of-a-model-in-the-current-section/24380)

<div class="topic-metadata">

**Author:** [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Replies:** 2\
**Last updated:** [July 19, 2022, 4:47pm UTC](https://discourse.slicer.org/t/how-to-extract-the-vertex-coordinates-of-a-polygon-of-a-model-in-the-current-section/24380 "2022-07-19T16:47:12Z")

</div>

I want to extract the vertex coordinates of a polygon of the model (blue) in the current slice… @lassoan@pieper@Juicy@jamesobutler @jcfr @pieper

---

## [The SlicerWthSlicerRT executable file doesn't work](https://discourse.slicer.org/t/the-slicerwthslicerrt-executable-file-doesnt-work/24062)

<div class="topic-metadata">

**Author:** [@Mrwa\_Awoda](https://discourse.slicer.org/u/Mrwa_Awoda)\
**Replies:** 2\
**Last updated:** [July 19, 2022, 5:07pm UTC](https://discourse.slicer.org/t/the-slicerwthslicerrt-executable-file-doesnt-work/24062 "2022-07-19T17:07:45Z")

</div>

OP: Windows 10 3D Slicer 4.13 The build process of SlicerRT extension completed with no errors, but the executable file (SlicerWithSlicerRT) won’t open with me. would you tell me what could be wrong here?

---

## [Customized tabbed view](https://discourse.slicer.org/t/customized-tabbed-view/24375)

<div class="topic-metadata">

**Author:** [@michabermoy](https://discourse.slicer.org/u/michabermoy)\
**Replies:** 3\
**Last updated:** [July 19, 2022, 12:33pm UTC](https://discourse.slicer.org/t/customized-tabbed-view/24375 "2022-07-19T12:33:18Z")

</div>

Is there a way to create a customized tabbed view so that one tab has multiple windows? For example, one tab of the customized tabbed view will have a table window and the four default view windows (3D, Axial, Sagittal, …

---

## [How to run a python file on 3D slicer and generate output](https://discourse.slicer.org/t/how-to-run-a-python-file-on-3d-slicer-and-generate-output/24363)

<div class="topic-metadata">

**Author:** [@ashuashu](https://discourse.slicer.org/u/ashuashu)\
**Replies:** 2\
**Last updated:** [July 18, 2022, 11:00pm UTC](https://discourse.slicer.org/t/how-to-run-a-python-file-on-3d-slicer-and-generate-output/24363 "2022-07-18T23:00:51Z")

</div>

Operating system: macOS M1 Slicer version: 5.0.2 Expected behavior: Actual behavior: Hello, I am completely new to the 3D slicer. I have my deep learning model coded in python and my dataset ready. I want to deploy…

---

## [Jupyter notebook](https://discourse.slicer.org/t/jupyter-notebook/24150)

<div class="topic-metadata">

**Author:** [@Isabella\_Romero](https://discourse.slicer.org/u/Isabella_Romero)\
**Replies:** 7\
**Last updated:** [July 18, 2022, 9:17pm UTC](https://discourse.slicer.org/t/jupyter-notebook/24150 "2022-07-18T21:17:27Z")

</div>

I am using Jupyter notebook to manage 3D slicer. I am trying to control 3D slicer using python commands to automate the use of one Module. I want to edit the buttons of the module so that I can insert the data from Jup…

---

## [Sending error messages from python](https://discourse.slicer.org/t/sending-error-messages-from-python/24376)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 4\
**Last updated:** [July 18, 2022, 9:01pm UTC](https://discourse.slicer.org/t/sending-error-messages-from-python/24376 "2022-07-18T21:01:56Z")

</div>

Hi, As I can see there are at least two ways of sending errors from scripted modules: logging.error() qt.qCritical() Which is the preferred one? Also does Slicer write logs somewhere in the text file? For example if…

---

## [Change color box within 3D view](https://discourse.slicer.org/t/change-color-box-within-3d-view/24350)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 2\
**Last updated:** [July 18, 2022, 12:54pm UTC](https://discourse.slicer.org/t/change-color-box-within-3d-view/24350 "2022-07-18T12:54:07Z")

</div>

Hi, The issue already been asked but still I’m trying to struggle with this. The idea is to modify the color of the cube from 3D view when the view is created within SlicerCAT. To solve this I need to understand how …

---

## [Unable to commit](https://discourse.slicer.org/t/unable-to-commit/24365)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 1\
**Last updated:** [July 18, 2022, 12:45pm UTC](https://discourse.slicer.org/t/unable-to-commit/24365 "2022-07-18T12:45:56Z")

</div>

Hi, when executing git commit I get error: Your work tree has not been configured for Slicer development. Paste the following commands into a shell: ./Utilities/SetupForDevelopment.sh See http://www.slicer.org/slic…

---

## [Get oriented bounding boxes for each segment](https://discourse.slicer.org/t/get-oriented-bounding-boxes-for-each-segment/19796)

<div class="topic-metadata">

**Author:** [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Replies:** 4\
**Last updated:** [July 18, 2022, 12:45pm UTC](https://discourse.slicer.org/t/get-oriented-bounding-boxes-for-each-segment/19796 "2022-07-18T12:45:19Z")

</div>

是不是可以开发自动boundingbox功能呢?如果能够 oriented bounding box 就太好了… Is it possible to develop an automatic boundingbox function? It would be great if it could be oriented bounding box…

---

## [Obtaining input from mouse click in python not working inside function: wait functionality?](https://discourse.slicer.org/t/obtaining-input-from-mouse-click-in-python-not-working-inside-function-wait-functionality/24336)

<div class="topic-metadata">

**Author:** [@KateDelb](https://discourse.slicer.org/u/KateDelb)\
**Replies:** 1\
**Last updated:** [July 16, 2022, 8:27pm UTC](https://discourse.slicer.org/t/obtaining-input-from-mouse-click-in-python-not-working-inside-function-wait-functionality/24336 "2022-07-16T20:27:26Z")

</div>

I am basing myself on this code https://discourse.slicer.org/t/how-to-get-input-value-from-mouse-click/5903 to create a widget that allows you to select a point on the GUI. The part of my code that selects the point is …

---

## [Whats is the best volume rendering present for the human bronchus](https://discourse.slicer.org/t/whats-is-the-best-volume-rendering-present-for-the-human-bronchus/24311)

<div class="topic-metadata">

**Author:** [@mohammed\_toro](https://discourse.slicer.org/u/mohammed_toro)\
**Replies:** 9\
**Last updated:** [July 15, 2022, 3:49pm UTC](https://discourse.slicer.org/t/whats-is-the-best-volume-rendering-present-for-the-human-bronchus/24311 "2022-07-15T15:49:04Z")

</div>

Whats is the best volume rendering present for the human bronchus

---

## [The curve cut tool in dynamic modeler cuts off the jagged edges of the model](https://discourse.slicer.org/t/the-curve-cut-tool-in-dynamic-modeler-cuts-off-the-jagged-edges-of-the-model/24302)

<div class="topic-metadata">

**Author:** [@janus\_zhu](https://discourse.slicer.org/u/janus_zhu)\
**Replies:** 1\
**Last updated:** [July 14, 2022, 4:52pm UTC](https://discourse.slicer.org/t/the-curve-cut-tool-in-dynamic-modeler-cuts-off-the-jagged-edges-of-the-model/24302 "2022-07-14T16:52:43Z")

</div>

1、The first step is to place curves on the surface of the model 2、Use the cueve cut tool in dynamic model to cut 3、Result : the edges of the model are jagged

---

## [When building custom template in release mode getting error](https://discourse.slicer.org/t/when-building-custom-template-in-release-mode-getting-error/22488)

<div class="topic-metadata">

**Author:** [@Dwij\_Mistry](https://discourse.slicer.org/u/Dwij_Mistry)\
**Replies:** 3\
**Last updated:** [July 13, 2022, 7:05pm UTC](https://discourse.slicer.org/t/when-building-custom-template-in-release-mode-getting-error/22488 "2022-07-13T19:05:31Z")

</div>

I am following all build steps mentioned in \[readthedocs\] for release (Windows — 3D Slicer documentation) I have tried both the way command line build and GUI build. but getting same error as bellow. Couldn't open …

---

## [Feedback about other algorithm improving the efficiency of Slicer](https://discourse.slicer.org/t/feedback-about-other-algorithm-improving-the-efficiency-of-slicer/24250)

<div class="topic-metadata">

**Author:** [@mau\_igna\_06](https://discourse.slicer.org/u/mau_igna_06)\
**Replies:** 6\
**Last updated:** [July 13, 2022, 12:42pm UTC](https://discourse.slicer.org/t/feedback-about-other-algorithm-improving-the-efficiency-of-slicer/24250 "2022-07-13T12:42:21Z")

</div>

Here is the change: It appears it doesn’t breaks anything in the build or while using Slicer. It was implemented according to this (and it is said to have a faster convergence): @pieper I would appreciate your opini…

---

## [Current TBB 2021 is not supported by GCC 9 or 10 with \`std::execution\`](https://discourse.slicer.org/t/current-tbb-2021-is-not-supported-by-gcc-9-or-10-with-std-execution/24282)

<div class="topic-metadata">

**Author:** [@keri](https://discourse.slicer.org/u/keri)\
**Replies:** 3\
**Last updated:** [July 12, 2022, 8:23pm UTC](https://discourse.slicer.org/t/current-tbb-2021-is-not-supported-by-gcc-9-or-10-with-std-execution/24282 "2022-07-12T20:23:10Z")

</div>

Hi, Slicer recently moved to TBB 2021 version. I just figured out that this version is not compatible with neither GCC 9 or 10 (issue link1 and issue link2) when using std::execution to paralelize stl algorithms. As I…

[Previous page](https://discourse.slicer.org/c/dev/5.md?no_subcategories=false&page=50)

[Next page](https://discourse.slicer.org/c/dev/5.md?no_subcategories=false&page=52)
