# STL data in ROOT

**URL:** <https://root-forum.cern.ch/t/stl-data-in-root/38058>\
**Category:** Newbie\
**Created:** [February 19, 2020, 8:43pm UTC](https://root-forum.cern.ch/t/stl-data-in-root/38058 "2020-02-19T20:43:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![svetashasharina](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/f08c70/32.png) [@svetashasharina](https://root-forum.cern.ch/u/svetashasharina)\
**Post date:** [February 19, 2020, 8:43pm UTC](https://root-forum.cern.ch/t/stl-data-in-root/38058/1 "2020-02-19T20:43:05Z")

</div>

Hi everybody, I would like to import data which is a tessellated surface (list of triangles) and create a geometry object in ROOT. Suggestions?  
Thank you,  
Svetlana

---

<div class="post-metadata">

**Author:** ![agheata](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/agheata/32/37311_2.png) [@agheata](https://root-forum.cern.ch/u/agheata)\
**Post date:** [February 20, 2020, 6:28am UTC](https://root-forum.cern.ch/t/stl-data-in-root/38058/2 "2020-02-20T06:28:41Z")

</div>

Hi, you can try using a STL to OBJ format converter, then use the OBJ reader in ROOT: $ROOTSYS/tutorials/geom/visualizeWavefrontObj.C

---

<div class="post-metadata">

**Author:** ![svetashasharina](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/f08c70/32.png) [@svetashasharina](https://root-forum.cern.ch/u/svetashasharina)\
**Post date:** [February 20, 2020, 1:53pm UTC](https://root-forum.cern.ch/t/stl-data-in-root/38058/3 "2020-02-20T13:53:17Z")

</div>

Thank you!  
Sveta

---

<div class="post-metadata">

**Author:** ![svetashasharina](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/f08c70/32.png) [@svetashasharina](https://root-forum.cern.ch/u/svetashasharina)\
**Post date:** [February 20, 2020, 3:10pm UTC](https://root-forum.cern.ch/t/stl-data-in-root/38058/4 "2020-02-20T15:10:19Z")

</div>

Hi, I have root-6.18.00 and I do not see this file there:

```
  ls

```

RadioNuclides.C geomD0.C rootgeom.C  
assembly.C geometry.C runplugin.C  
building.C index.md shapes.C  
cheongwadae.C iterplugin.cxx shapesAnim.C  
csgdemo.C lego.C south\_gate.C  
gdml mp3player.C station1.C  
geodemo.C na49.C station2.C  
geomAlice.C na49geomfile.C tank.C  
geomAlice\_itsv.C na49view.C xtruDraw.C  
geomAtlas.C parallel\_world.C xtruSamples.C  
geomBrahms.C robot.C

Thank you,

Sveta

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [February 20, 2020, 3:19pm UTC](https://root-forum.cern.ch/t/stl-data-in-root/38058/5 "2020-02-20T15:19:46Z")

</div>

[ROOT -\> Tutorials -\> Geometry tutorials -\> visualizeWavefrontObj.C](https://root.cern.ch/doc/master/visualizeWavefrontObj_8C.html)

---

<div class="post-metadata">

**Author:** ![agheata](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/agheata/32/37311_2.png) [@agheata](https://root-forum.cern.ch/u/agheata)\
**Post date:** [February 20, 2020, 3:27pm UTC](https://root-forum.cern.ch/t/stl-data-in-root/38058/6 "2020-02-20T15:27:48Z")

</div>

You need ROOT master
