# Mesh with Unique element

**URL:** <https://prepomax.discourse.group/t/mesh-with-unique-element/3241>\
**Category:** General Questions\
**Created:** [February 9, 2026, 9:44am UTC](https://prepomax.discourse.group/t/mesh-with-unique-element/3241 "2026-02-09T09:44:39Z")\
**Posts on this page:** 20\
**Page:** 1

<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:** [February 9, 2026, 9:44am UTC](https://prepomax.discourse.group/t/mesh-with-unique-element/3241/1 "2026-02-09T09:44:39Z")

</div>

Hi,

Could someone help me to figure how to mesh a cube geometry with a unique element in Prepomax?

That’s relevant for simple test and to fullfill certain assumtions.

Thank you very much.

---

<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:** [February 9, 2026, 9:45am UTC](https://prepomax.discourse.group/t/mesh-with-unique-element/3241/2 "2026-02-09T09:45:49Z")

</div>

What do you mean by “unique element” ? Do you want to get just a single element on a cube ? Then you can use this:

[Cube 1 element.pmx](https://prepomax.discourse.group/uploads/short-url/5jbMliifbjgWNBLy8iB9f81iYgk.pmx) (9.4 KB)

---

<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:** [February 9, 2026, 9:52am UTC](https://prepomax.discourse.group/t/mesh-with-unique-element/3241/3 "2026-02-09T09:52:39Z")

</div>

I can’t open the file.

I mean how to set up the meshing window. No matter how big the minimum element size is. It always mesh with a minimum of four elements. Could you post an image of your set up.

 ![imagen](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/0/01f0106655c7c34e2bc981734b83b8d48e8cd9ee.png)

---

<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:** [February 9, 2026, 9:54am UTC](https://prepomax.discourse.group/t/mesh-with-unique-element/3241/4 "2026-02-09T09:54:20Z")

</div>

I have these settings:

 ![image](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/c/c5ad652c5fa95bc50b2bd038d58dd9056c2293b5.png)

 ![image](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/f/fdf4b1851f2b35c8cebcc661844eaaffea93966b.png)

The size of the cube is 10 mm.

This results in:

![image](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/a/aabfc093e1bf23ddf53a58d0087b1158848c4149.png)

---

<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:** [February 9, 2026, 10:00am UTC](https://prepomax.discourse.group/t/mesh-with-unique-element/3241/5 "2026-02-09T10:00:20Z")

</div>

Doesn’t work for me. Is there any additional set up in general config maybe.?

My base cube has been scaled so it measures 11mm.

Preview looks good but final mesh is 2x2x2

 ![imagen](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/e/e31d2bc91ffe7b2af20b94a0982ac6083278e9fa.png)

---

<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:** [February 9, 2026, 10:06am UTC](https://prepomax.discourse.group/t/mesh-with-unique-element/3241/6 "2026-02-09T10:06:55Z")

</div>

> [@ANYS](#):
>
> Is there any additional set up in general config maybe.?

Here’s what I have there:

 ![image](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/2/27775ab1231b2b36ea3b4969986b7d23f5eec1ae.png)

> [@ANYS](#):
>
> My base cube has been scaled so it measures 11mm.

For 11 mm cube it also works for me. Did you try with Extrude mesh too ?

---

<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:** [February 9, 2026, 10:21am UTC](https://prepomax.discourse.group/t/mesh-with-unique-element/3241/7 "2026-02-09T10:21:56Z")

</div>

Sorry to insist. Do you have an isolated cube? I’m using your Mortar example pmx file.

---

<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:** [February 9, 2026, 10:46am UTC](https://prepomax.discourse.group/t/mesh-with-unique-element/3241/8 "2026-02-09T10:46:48Z")

</div>

Sure, this is the cube from my first file:

[Cube.zip](https://prepomax.discourse.group/uploads/short-url/hAkg58ha3hIfeYKCgA5tx9Itxx0.zip) (2.2 KB)

---

<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:** [February 9, 2026, 11:01am UTC](https://prepomax.discourse.group/t/mesh-with-unique-element/3241/9 "2026-02-09T11:01:00Z")

</div>

Thank you very much.

I will try later.

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [February 9, 2026, 12:35pm UTC](https://prepomax.discourse.group/t/mesh-with-unique-element/3241/10 "2026-02-09T12:35:47Z")

</div>

Sometimes, when more elements are generated with Gmsh, the number of elements per edge can be adjusted using Mesh refinement. Use a large number to force it to create a single element.

---

<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:** [February 9, 2026, 12:41pm UTC](https://prepomax.discourse.group/t/mesh-with-unique-element/3241/11 "2026-02-09T12:41:15Z")

</div>

> [@Matej](#):
>
> Use a large number to force it to create a single element.

I wouldn’t guess it can work this way, good to know.

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [February 9, 2026, 1:11pm UTC](https://prepomax.discourse.group/t/mesh-with-unique-element/3241/12 "2026-02-09T13:11:59Z")

</div>

It works for Gmsh only. But I will add a mesh setting to set the number of elements per edge to solve this problem.

---

<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:** [February 9, 2026, 1:15pm UTC](https://prepomax.discourse.group/t/mesh-with-unique-element/3241/13 "2026-02-09T13:15:31Z")

</div>

> [@Matej](#):
>
> But I will add a mesh setting to set the number of elements per edge to solve this problem.

This setting for Mesh refinement would be super useful, thank you in advance 🙂

---

<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:** [February 9, 2026, 1:27pm UTC](https://prepomax.discourse.group/t/mesh-with-unique-element/3241/14 "2026-02-09T13:27:29Z")

</div>

It still doesn’t work for me. I have tried so much combinations that PPM has crashed twice. 😅

Maybe it is because I previously scale the model.?¿?. Preview is correct but then mesh is always 2x2x2

---

<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:** [February 9, 2026, 1:34pm UTC](https://prepomax.discourse.group/t/mesh-with-unique-element/3241/15 "2026-02-09T13:34:43Z")

</div>

> [@ANYS](#):
>
> Maybe it is because I previously scale the model.

In PrePoMax ? What if you scale the geometry in CAD software before importing it to PrePoMax ?

---

<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:** [February 9, 2026, 1:48pm UTC](https://prepomax.discourse.group/t/mesh-with-unique-element/3241/16 "2026-02-09T13:48:43Z")

</div>

> [@FEAnalyst](#):
>
> In PrePoMax ?

Yes.

> [@FEAnalyst](#):
>
> What if you scale the geometry in CAD software before importing it to PrePoMax ?

Haven’t try that.

---

<div class="post-metadata">

**Author:** ![Gunnar](https://avatars.discourse-cdn.com/v4/letter/g/ed655f/32.png) [@Gunnar](https://prepomax.discourse.group/u/Gunnar)\
**Post date:** [February 10, 2026, 7:30pm UTC](https://prepomax.discourse.group/t/mesh-with-unique-element/3241/17 "2026-02-10T19:30:31Z")

</div>

> [@ANYS](#):
>
> It still doesn’t work for me

There is still an unresolved problem that some options set in gmsh affect meshing in prepomax. So you could try saving “order 1” in gmsh as default:

![Animation](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/5/5d19be63eac251074ad6473b71fba20a73775dc5.gif)

---

<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:** [February 10, 2026, 7:50pm UTC](https://prepomax.discourse.group/t/mesh-with-unique-element/3241/18 "2026-02-10T19:50:22Z")

</div>

So Gmsh’s default element order indirectly affects the number of generated elements instead of only affecting their order directly ?

---

<div class="post-metadata">

**Author:** ![Gunnar](https://avatars.discourse-cdn.com/v4/letter/g/ed655f/32.png) [@Gunnar](https://prepomax.discourse.group/u/Gunnar)\
**Post date:** [February 10, 2026, 8:19pm UTC](https://prepomax.discourse.group/t/mesh-with-unique-element/3241/19 "2026-02-10T20:19:07Z")

</div>

Yes, it does not change the element order in prepomax but only the number of elements.

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [February 11, 2026, 7:33am UTC](https://prepomax.discourse.group/t/mesh-with-unique-element/3241/20 "2026-02-11T07:33:46Z")

</div>

There is also a problem in PrePoMax that tends to assign an even number of elements per edge. I am looking into it.

[Next page](https://prepomax.discourse.group/t/mesh-with-unique-element/3241.md?page=2)
