# VMTK centrelines - stl format in ascii mode

**URL:** <https://discourse.slicer.org/t/vmtk-centrelines-stl-format-in-ascii-mode/16058>\
**Category:** VMTK\
**Created:** [February 18, 2021, 12:09pm UTC](https://discourse.slicer.org/t/vmtk-centrelines-stl-format-in-ascii-mode/16058 "2021-02-18T12:09:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dhaya](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@Dhaya](https://discourse.slicer.org/u/Dhaya)\
**Post date:** [February 18, 2021, 12:09pm UTC](https://discourse.slicer.org/t/vmtk-centrelines-stl-format-in-ascii-mode/16058/1 "2021-02-18T12:09:51Z")

</div>

I am new to VTMK software nad have generated the centrelines in vtp format.

vmtksurfacereader -ifile “E:/geometry/v3\_shortIliacExtendIMACAP\_V2\_vtmk.stl” --pipe vmtkcenterlines -seedselector openprofiles -ofile “C:/Users/Dhaya/surface\_centerlines.vtp”

But I want the file in .stl format (ascii). Would any one help me to solve the problem?

---

<div class="post-metadata">

**Author:** ![Dhaya](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@Dhaya](https://discourse.slicer.org/u/Dhaya)\
**Post date:** [February 18, 2021, 12:11pm UTC](https://discourse.slicer.org/t/vmtk-centrelines-stl-format-in-ascii-mode/16058/2 "2021-02-18T12:11:05Z")

</div>

I want to create a centerline for my patient specific geometry. I have successfully created in .vtp format using VMTK sotware.

code:

vmtksurfacereader -ifile “E:/geometry/v3\_shortIliacExtendIMACAP\_V2\_vtmk.stl” --pipe vmtkcenterlines -seedselector openprofiles -ofile “C:/Users/Dhaya/surface\_centerlines.vtp”

will it possible to create or convert to .stl format in ascii mode?

Note: The above generated .stl file is imported into the Ansys CFD Post.

Operating system: Windows 10  
Slicer version: VMTK 1.4.0 software  
Expected behavior:  
Actual behavior:

---

<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:** [February 18, 2021, 12:16pm UTC](https://discourse.slicer.org/t/vmtk-centrelines-stl-format-in-ascii-mode/16058/3 "2021-02-18T12:16:05Z")

</div>

STL cannot store lines, only triangles. I would recommend to process the centerline data (extract data, write in any format you need) in Python - either by writing separate scripts or modifying existing PypeS scripts.

---

<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:** [February 18, 2021, 12:33pm UTC](https://discourse.slicer.org/t/vmtk-centrelines-stl-format-in-ascii-mode/16058/4 "2021-02-18T12:33:52Z")

</div>

Shouldn’t this request go to the VMTK mailing list ? It does not imply Slicer anywhere.

---

<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:** [February 18, 2021, 12:37pm UTC](https://discourse.slicer.org/t/vmtk-centrelines-stl-format-in-ascii-mode/16058/5 "2021-02-18T12:37:18Z")

</div>

Slicer forum hosts several other communities, such as pyRadiomics and VMTK. The author accidentally wrote to the Slicer category as well, probably because the post did not appear immediately due to moderation requirements for new users.
