# Meshing problem with STL file

**URL:** <https://prepomax.discourse.group/t/meshing-problem-with-stl-file/657>\
**Category:** General Questions\
**Created:** [January 3, 2023, 4:41am UTC](https://prepomax.discourse.group/t/meshing-problem-with-stl-file/657 "2023-01-03T04:41:45Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![chumairo](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@chumairo](https://prepomax.discourse.group/u/chumairo)\
**Post date:** [January 3, 2023, 4:41am UTC](https://prepomax.discourse.group/t/meshing-problem-with-stl-file/657/1 "2023-01-03T04:41:45Z")

</div>

Dear All,

A model is created and exported from Autodesk Fusion as STL file for FEA in PrePoMax but however, it could not be meshed in PrePoMax. it can be previewed but meshing took forever without completion. Any advice or guidance would be highly appreciated. Thank you.

Regards,

 ![image](https://global.discourse-cdn.com/free1/uploads/prepomax/original/1X/a2f7251cbb491c493d3f369500171a06f82e6958.jpeg)

---

<div class="post-metadata">

**Author:** ![ANYS](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/anys/32/7737_2.png) [@ANYS](https://prepomax.discourse.group/u/ANYS)\
**Post date:** [January 3, 2023, 7:36am UTC](https://prepomax.discourse.group/t/meshing-problem-with-stl-file/657/2 "2023-01-03T07:36:08Z")

</div>

HI Chumairo,

I think Stl is already a mesh format ¿ isn’t it ? (surface mesh). Prepomax is probably trying to mesh a thousand of pre-existing surfaces (elements).

You can try to open the file in Gmsh and export it as Abaqus.inp format. This way it will directly open as mesh in Prepomax (Surface mesh).

If you need a volumetric mesh, you probably need to export your CAD file into other format (Step).

---

<div class="post-metadata">

**Author:** ![FEAnalyst](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/feanalyst/32/688_2.png) [@FEAnalyst](https://prepomax.discourse.group/u/FEAnalyst)\
**Post date:** [January 3, 2023, 8:00am UTC](https://prepomax.discourse.group/t/meshing-problem-with-stl-file/657/3 "2023-01-03T08:00:33Z")

</div>

@ANYS STL files are recognized as solids and meshed independently of their facets in PrePoMax. However, it’s better to use STEP format to make sure that proper faces will be available for BC/load/constraint application.

Can you share the file ? Did you try changing meshing parameters ?

---

<div class="post-metadata">

**Author:** ![Martin](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@Martin](https://prepomax.discourse.group/u/Martin)\
**Post date:** [January 3, 2023, 8:00am UTC](https://prepomax.discourse.group/t/meshing-problem-with-stl-file/657/4 "2023-01-03T08:00:49Z")

</div>

Using a step File for Export from Fusion 360 will be a better choice.

---

<div class="post-metadata">

**Author:** ![ANYS](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/anys/32/7737_2.png) [@ANYS](https://prepomax.discourse.group/u/ANYS)\
**Post date:** [January 3, 2023, 8:23am UTC](https://prepomax.discourse.group/t/meshing-problem-with-stl-file/657/5 "2023-01-03T08:23:52Z")

</div>

@Matej

When requesting to analyze a geometry the following message shows up.

 ![screenshot.49](https://global.discourse-cdn.com/free1/uploads/prepomax/original/1X/aae6856b1b9eaab3272cc0e7280868a1afd872dd.jpeg)

---

<div class="post-metadata">

**Author:** ![FEAnalyst](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/feanalyst/32/688_2.png) [@FEAnalyst](https://prepomax.discourse.group/u/FEAnalyst)\
**Post date:** [January 3, 2023, 8:27am UTC](https://prepomax.discourse.group/t/meshing-problem-with-stl-file/657/6 "2023-01-03T08:27:51Z")

</div>

Was that “infinity” there by default ? For what geometry ? It’s working correctly on my side.

---

<div class="post-metadata">

**Author:** ![ANYS](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/anys/32/7737_2.png) [@ANYS](https://prepomax.discourse.group/u/ANYS)\
**Post date:** [January 3, 2023, 8:30am UTC](https://prepomax.discourse.group/t/meshing-problem-with-stl-file/657/7 "2023-01-03T08:30:25Z")

</div>

Yep. It was by default . v1.3.5.1

EDIT: This is the geometry. It also gets stuck when trying to mesh. Exporting to inp with gmsh works fine.

> **[femur cortical\_smth0.40.stl](https://wetransfer.com/downloads/da8a981392cd6a8c0f905331c81a044520230103083248/89d21f)**
>
> 1 file sent via WeTransfer, the simplest way to send your files around the world

---

<div class="post-metadata">

**Author:** ![FEAnalyst](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/feanalyst/32/688_2.png) [@FEAnalyst](https://prepomax.discourse.group/u/FEAnalyst)\
**Post date:** [January 3, 2023, 8:38am UTC](https://prepomax.discourse.group/t/meshing-problem-with-stl-file/657/8 "2023-01-03T08:38:24Z")

</div>

This geometry is really tricky. There are some artifacts in form of tiny free-floating parts, for instance. I would clean it up in Meshlab or Meshmixer first.

---

<div class="post-metadata">

**Author:** ![ANYS](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/anys/32/7737_2.png) [@ANYS](https://prepomax.discourse.group/u/ANYS)\
**Post date:** [January 3, 2023, 9:09am UTC](https://prepomax.discourse.group/t/meshing-problem-with-stl-file/657/9 "2023-01-03T09:09:53Z")

</div>

> [@ANYS](#):
>
> When requesting to analyze a geometry the following message shows up.

Yes. It is not an easy example to start with.

---

<div class="post-metadata">

**Author:** ![chumairo](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@chumairo](https://prepomax.discourse.group/u/chumairo)\
**Post date:** [January 4, 2023, 4:16pm UTC](https://prepomax.discourse.group/t/meshing-problem-with-stl-file/657/10 "2023-01-04T16:16:36Z")

</div>

I can share the file but I don’t know how to attach to the case as it only accept image file formats from my end somehow.

FYI, let’s see if this shared link is working - [1.36 MB file on MEGA](https://mega.nz/file/juAACaIJ#vvTknATEizwrIfABml5MSjqJFK8g1IRrdq3XTWqehsU).

It seems STEP file would work better. I will try this format.

Thank you all for the inputs and supports. Really appreciated!

Regards,

---

<div class="post-metadata">

**Author:** ![synt](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/synt/32/4658_2.png) [@synt](https://prepomax.discourse.group/u/synt)\
**Post date:** [February 15, 2024, 10:36am UTC](https://prepomax.discourse.group/t/meshing-problem-with-stl-file/657/11 "2024-02-15T10:36:20Z")

</div>

i replied an old topic and it maybe too late, but can be useful for another user facing similar problem to deal with complex model of Stl files. It seems [TetWild](https://github.com/Yixin-Hu/TetWild) can handle example model given, below some screenshot at testing.

 ![2024-02-15 17_30_11-ModuleWorks STL View - C__CAE_TetWild_test1-Fusion.stl](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/f/f742e805c4d8ac594c339be40beaba5cde2a75ed.png)

![2024-02-15 17_11_57-C__Windows_system32_cmd.exe - tetwild test1-Fusion.stl](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/b/b58ec034993536f42adc72f652f183886f9ee671.png)

 ![2024-02-15 17_17_11-Gmsh - C__CAE_TetWild_test1-Fusion_.msh](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/7/7532e2932e0181d535b2e2a399791ff9c8a4c3ef.png)

 ![2024-02-15 17_25_30-](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/5/5573aa4c247442229fa3ca14610be3ad654262fa.png)

 ![2024-02-15 17_25_19-](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/a/a79856b5af31421c1fee2e4d042be5ffb95d1ed2.png)

---

<div class="post-metadata">

**Author:** ![synt](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/synt/32/4658_2.png) [@synt](https://prepomax.discourse.group/u/synt)\
**Post date:** [February 15, 2024, 12:19pm UTC](https://prepomax.discourse.group/t/meshing-problem-with-stl-file/657/12 "2024-02-15T12:19:50Z")

</div>

also, i tested with similar model from another [link](https://free3d.com/3d-model/femur-human-bone-17271.html), use Obj file format as input in TetWild and result shown its robustness.

![2024-02-15 19_07_32-Gmsh - C__CAE_TetWild_femur_.msh](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/6/636dbeab512ec102f81163f36be2b77ef1171d8e.png)

![2024-02-15 19_12_41-](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/9/9cd84c0fb8ccc046a5744989abff3cca32529eb7.png)

![2024-02-15 19_12_31-](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/e/eb79bfe442c5584d887a542d68344c307b22cc6a.png)
