# position and to move (x,y,z)  object in 3D Scene

**URL:** <https://discourse.slicer.org/t/position-and-to-move-x-y-z-object-in-3d-scene/10541>\
**Category:** Support\
**Created:** [March 4, 2020, 1:23pm UTC](https://discourse.slicer.org/t/position-and-to-move-x-y-z-object-in-3d-scene/10541 "2020-03-04T13:23:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kobidk](https://avatars.discourse-cdn.com/v4/letter/k/ee59a6/32.png) [@kobidk](https://discourse.slicer.org/u/kobidk)\
**Post date:** [March 4, 2020, 1:23pm UTC](https://discourse.slicer.org/t/position-and-to-move-x-y-z-object-in-3d-scene/10541/1 "2020-03-04T13:23:09Z")

</div>

I would like to know whether the package 3D Slicer ( C++ Windows OS) provides APIs which allow to position and to move (x,y,z) object in 3D Scene ( build from DICOM CT scan files) and update the object position R.T (10 Hz) in the scene.  
Could you please provide an example code that shows how to do it?

Thanks  
Kobi

---

<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 5, 2020, 1:44am UTC](https://discourse.slicer.org/t/position-and-to-move-x-y-z-object-in-3d-scene/10541/2 "2020-03-05T01:44:09Z")

</div>

Yes, this should be no problem at all. Slicer is used widely in various real-time image guidance and robotic applications. In general, achieving 30Hz update rate should be no problem. See [SlicerIGT website](http://www.slicerigt.org/) for more details and lots of step-by-step tutorials. You can also do all these real-time object manipulations in [virtual reality](https://github.com/KitwareMedical/SlicerVirtualReality), using 6-DoF controllers.

---

<div class="post-metadata">

**Author:** ![kobidk](https://avatars.discourse-cdn.com/v4/letter/k/ee59a6/32.png) [@kobidk](https://discourse.slicer.org/u/kobidk)\
**Post date:** [March 9, 2020, 2:04pm UTC](https://discourse.slicer.org/t/position-and-to-move-x-y-z-object-in-3d-scene/10541/3 "2020-03-09T14:04:46Z")

</div>

Hi Andras,

Thank you for your valuable information. I looked over the material and it looks like it is a very good platform to be based on.

I tried to investigate it a little further, unfortunately, I got some error (see below) when I built the package SlicerIGT-mater using CMake. The file “SlicerConfig.cmake” is missing and I couldn’t find it in either one of the packages ( the above and the Slicer-master).

I appreciate your assistance.

BR

Kobi

CMake Error at CMakeLists.txt:20 (find\_package):  
By not providing “FindSlicer.cmake” in CMAKE\_MODULE\_PATH this project has  
asked CMake to find a package configuration file provided by “Slicer”, but  
CMake did not find one.

Could not find a package configuration file provided by “Slicer” with any  
of the following names:

```
SlicerConfig.cmake
slicer-config.cmake

```

![image001.jpg](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/f/6f17e1e6ea504fc01d3a45f11060b000bb73da86.jpeg)

---

<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 9, 2020, 2:36pm UTC](https://discourse.slicer.org/t/position-and-to-move-x-y-z-object-in-3d-scene/10541/4 "2020-03-09T14:36:48Z")

</div>

You don’t need to build SlicerIGT but you can install it from the extension manager.

If you want to build an extension then you need to build Slicer first, then follow [these instructions](https://www.slicer.org/wiki/Documentation/Nightly/Developers/FAQ/Extensions#How_to_build_an_extension_.3F).

---

<div class="post-metadata">

**Author:** ![kobidk](https://avatars.discourse-cdn.com/v4/letter/k/ee59a6/32.png) [@kobidk](https://discourse.slicer.org/u/kobidk)\
**Post date:** [March 11, 2020, 3:25pm UTC](https://discourse.slicer.org/t/position-and-to-move-x-y-z-object-in-3d-scene/10541/5 "2020-03-11T15:25:52Z")

</div>

Andres,

Thanks for ref material.

I attached 5 slides describe shortly what we are trying to do and my general understating about the 3DSlicer+ Extensions.

In slide #6, I added some questions.

I would appreciate your advice.

BR

Kobi

![image001.jpg](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/f/6f17e1e6ea504fc01d3a45f11060b000bb73da86.jpeg)

(Attachment Epidutech\_SW\_3DSlicer.pdf is missing)

---

<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 11, 2020, 4:20pm UTC](https://discourse.slicer.org/t/position-and-to-move-x-y-z-object-in-3d-scene/10541/6 "2020-03-11T16:20:16Z")

</div>

The attachment did not come through. Please upload the file to dropbox/onedrive/googledrive and post the link here.

---

<div class="post-metadata">

**Author:** ![kobidk](https://avatars.discourse-cdn.com/v4/letter/k/ee59a6/32.png) [@kobidk](https://discourse.slicer.org/u/kobidk)\
**Post date:** [March 11, 2020, 7:20pm UTC](https://discourse.slicer.org/t/position-and-to-move-x-y-z-object-in-3d-scene/10541/7 "2020-03-11T19:20:25Z")

</div>

Thanks for letting me know and I am sorry about that.

Here is the file dropbox link.

[https://www.dropbox.com/s/z0fj2fz2woympps/Epidutech\_SW\_3DSlicer.pdf?dl=0](https://www.dropbox.com/s/z0fj2fz2woympps/Epidutech_SW_3DSlicer.pdf?dl=0).

BR

![image001.jpg](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/f/6f17e1e6ea504fc01d3a45f11060b000bb73da86.jpeg)
