<p>There is the Free online tool to convert STL to OFF within second: <a href="https://cadcook.com/stl-off/" rel="nofollow noreferrer">https://cadcook.com/stl-off/</a></p>
<p>I used it for stl conversations..</p>

CC BY-SA 4.0
2020-10-07T09:32:48.673Z
2020-10-07T09:32:48.673Z
Pawankumar Gurav
<p>I would suggest using <a href="http://www.meshlab.net/" rel="nofollow noreferrer">Meshlab</a>. You can convert from <code>.stl</code> to <code>.off</code> and you can try other operations for quick results too, instead of diving to code for mesh manipulation. </p>

CC BY-SA 3.0
2017-01-23T23:45:59.370Z
2017-01-23T23:45:59.370Z
ilke444
<p>If you can handle a single intermediate step, you may find that OpenSCAD will perform as required. As a test, I created a cube 10 x 20 x 5 within OpenSCAD.  I kept the model simple, hoping the code generated would be short.</p>

<p>The results:</p>

<pre><code>OFF
</code></pre>

<p>8 12 0</p>

<p>0 0 5</p>

<p>10 0 5</p>

<p>10 20 5</p>

<p>0 20 0</p>

<p>0 0 0</p>

<p>10 0 0</p>

<p>10 20 0</p>

<p>0 20 5</p>

<p>3  4 5 1</p>

<p>3  0 4 1</p>

<p>3  0 7 4</p>

<p>3  4 7 3</p>

<p>3  0 1 2</p>

<p>3  7 0 2</p>

<p>3  3 6 4</p>

<p>3  4 6 5</p>

<p>3  5 6 2</p>

<p>3  1 5 2</p>

<p>3  7 2 3</p>

<p>3  3 2 6</p>

<p>In your example, it would be necessary to use the import_stl feature of OpenSCAD, then render the model. Once rendered, use File, Export, Export as OFF to create the file you need. </p>

<p>I cannot provide certainty of the exported code, however, as I am not familiar with the format you seek.</p>

<p><a href="http://www.openscad.org/" rel="nofollow noreferrer">Openscad</a></p>

CC BY-SA 3.0
2016-11-21T17:00:22.943Z
2016-11-21T17:00:22.943Z
fred_dot_u
<p>I want to skeletize the surface mesh. For that I need to export .STL from Solidworks and then convert that into .OFF file to be able to use it in CGAL library for skeletonzation. How can I do this?</p>

CC BY-SA 3.0
2016-11-21T17:05:48.987Z
Look at MeshLab  it imports and exports both .stl and .off   I have not used .off so not familiar on how well MeshLab handles them.  MeshLab is open source.
spicetraders
<3d-models>
How can I convert .STL file to .OFF to use in CGAL?
Narek
# How can I convert .STL file to .OFF to use in CGAL?

(Asked by: username_0 on 2016-11-21)

I want to skeletize the surface mesh. For that I need to export .STL from Solidworks and then convert that into .OFF file to be able to use it in CGAL library for skeletonzation. How can I do this?

**Tags:** 3d-models

> **Comments:**
> **username_1**: Look at MeshLab  it imports and exports both .stl and .off   I have not used .off so not familiar on how well MeshLab handles them.  MeshLab is open source.  

---

## 3 answers

### Answer by username_2 on 2020-10-07. Score: 1

There is the Free online tool to convert STL to OFF within second: <https://cadcook.com/stl-off/>

I used it for stl conversations..


---

### Answer by username_3 on 2017-01-23. Score: 1

I would suggest using [Meshlab](http://www.meshlab.net/). You can convert from `.stl` to `.off` and you can try other operations for quick results too, instead of diving to code for mesh manipulation.


---

### Answer by username_4 on 2016-11-21. Score: 1

If you can handle a single intermediate step, you may find that OpenSCAD will perform as required. As a test, I created a cube 10 x 20 x 5 within OpenSCAD. I kept the model simple, hoping the code generated would be short.

The results:

```
OFF

```

8 12 0

0 0 5

10 0 5

10 20 5

0 20 0

0 0 0

10 0 0

10 20 0

0 20 5

3 4 5 1

3 0 4 1

3 0 7 4

3 4 7 3

3 0 1 2

3 7 0 2

3 3 6 4

3 4 6 5

3 5 6 2

3 1 5 2

3 7 2 3

3 3 2 6

In your example, it would be necessary to use the import\_stl feature of OpenSCAD, then render the model. Once rendered, use File, Export, Export as OFF to create the file you need.

I cannot provide certainty of the exported code, however, as I am not familiar with the format you seek.

[Openscad](http://www.openscad.org/)


---

