# Help integrating vtkU3DExporter module in Slicer

**URL:** <https://discourse.slicer.org/t/help-integrating-vtku3dexporter-module-in-slicer/43540>\
**Category:** Support\
**Created:** [June 30, 2025, 4:26am UTC](https://discourse.slicer.org/t/help-integrating-vtku3dexporter-module-in-slicer/43540 "2025-06-30T04:26:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alientex](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@alientex](https://discourse.slicer.org/u/alientex)\
**Post date:** [June 30, 2025, 4:26am UTC](https://discourse.slicer.org/t/help-integrating-vtku3dexporter-module-in-slicer/43540/1 "2025-06-30T04:26:38Z")

</div>

Hello,

I came across the [VTKU3DExporter](https://github.com/Korijn/VTKU3DExporter) module, which allows exporting a VTK scene to the U3D file format. I would like to use the generated U3D file for including in 3D PDFs.

I have successfully built this module independently and tested it with a demo scene—it worked as expected. I’m now looking for an official way to integrate this module into Slicer.

I’m happy to provide more details about how I built the module independently.

Any help would be greatly appreciated.

Thank you.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [June 30, 2025, 12:27pm UTC](https://discourse.slicer.org/t/help-integrating-vtku3dexporter-module-in-slicer/43540/2 "2025-06-30T12:27:17Z")

</div>

You could do this by making a SuperBuild extension so the C++ code and python wrappings are build and packaged for all platforms. If this is a well-implemented VTK module that should be fairly straightforward. You can look at other extensions to get ideas.

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [June 30, 2025, 3:17pm UTC](https://discourse.slicer.org/t/help-integrating-vtku3dexporter-module-in-slicer/43540/3 "2025-06-30T15:17:36Z")

</div>

@alientex To follow-up, you should be able to integrate the module into your extension and/or custom application following an approach like the on used in [SlicerVirtualReality](https://github.com/KitwareMedical/SlicerVirtualReality).

---

<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:** [July 1, 2025, 1:23pm UTC](https://discourse.slicer.org/t/help-integrating-vtku3dexporter-module-in-slicer/43540/4 "2025-07-01T13:23:11Z")

</div>

How do you create 3D PDF from this file?  
Can you post a link to an example 3D PDF that you generate from a segmentation?

Can the VTK exporter preserves colors, opacities, material properties, and scene lights?

Can you specify segment names that appear in the PDF viewer (similar to [OpenAnatomy glTF exports](https://github.com/PerkLab/SlicerOpenAnatomy/blob/master/OpenAnatomyExport/README.md))?

Does the exporter support multiple time points? Can your step through the time points one by one in the PDF viewer?

Can you specify clipping planes and edit them in the PDF viewer?

I’m mainly asking these to see how the PDF solution compares to existing solutions, such as [3dviewer.net](http://3dviewer.net), and how could it compete in the long term with a VTK-based viewer apps. Based on my limited experience and little reading on 3D PDF it seems to me that it is very limited, legacy technology (just barely hanging on, maintained but not improved for many years) and so a modern VTK-based viewer could work much better (it would work with open file formats, it would be extensible and customizable, it could reslice 3D images, do volume rendering, etc). Even just packaging [3dviewer.net](http://3dviewer.net) as a mobile app would probably be a better 3D viewer than 3D PDF.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [July 1, 2025, 1:43pm UTC](https://discourse.slicer.org/t/help-integrating-vtku3dexporter-module-in-slicer/43540/5 "2025-07-01T13:43:56Z")

</div>

Also see this discussion: [Lighweight "zero footprint" 3D Slicer viewer wanted](https://discourse.slicer.org/t/lighweight-zero-footprint-3d-slicer-viewer-wanted/29202)
