Create a mesh with fixed edge length

Hi,

I have a squared brep of 500x500 mm and I want to create a mesh with an edge length of 0.1 mm for each quad.

I am using both the UI and CreateFromBrep from RhinoCommon but at most I have managed to create a mesh approximately 0.4 mm long. Is it a size restriction that prevents a shorter length? In fact, with a smaller brep I can create a mesh with an edge length less than 0.1

Thanks

If I read this right you would like a mesh with 25 million quads but the most you can get is a little more than 1.5 million (1,562,500)?

Perhaps a McNeel developer or someone with more knowledge than me will comment on the memory such a mesh would require vs the amount your computer has if that is an important factor.

It may be helpful for you to run the Rhino Systeminfo command and paste the output here.

El resultado de SystemInfo es este:

Windows 11 (10.0.26200 SR0.0) or greater (Physical RAM: 64GB)
.NET 8.0.24

Computer platform: DESKTOP

Standard graphics configuration.
Primary display and OpenGL: NVIDIA GeForce RTX 3050 (NVidia) Memory: 6GB, Driver date: 8-14-2024 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 560.94

Accelerated graphics device with 4 adapter port(s)

  • Windows Main Display attached to adapter port #0
  • Secondary monitor attached to adapter port #1

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
GPU Tessellation is: On
Redraw scene when viewports are exposed: On
Graphics level being used: OpenGL 4.6 (primary GPU’s maximum)

Anti-alias mode: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High

Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 8-14-2024
Driver Version: 32.0.15.6094
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 6 GB

Yo probé con una configuración parecida a la tuya, pero con Refine Mesh activado (subdivide aun más la malla)

También probé con el QuadRenseh, con la opción de longitud de arista a 0.1 y con 25M de quads, pero aparentemente no me da ninggún resultado

Hi @Eliseo
you can use SubDivide to further refine the mesh, but it’s gonna be a lengthy calculation! I guess there’s a hardcoded limit to what Mesh and QuadRemesh can do, but hopefully one of the McNeel brains will chime in to confirm or contradict.
-Jakob

Hi @Normand, I tried it, but it didn’t work.

I would optimize the mesh and use subdivide subsequently

Hi OBATT,

Sorry, I don´t understand…

What dou you mean with “Optimize the mesh”? If I reduce the number of polygons then I get the opposite effect to what I’m looking for

Hi @dale

Do you know what could be happening or what the solution could be?

Thanks

Hi @curtisw ,

It seems @dale is busy… do you know what can I do? The client is worried because he can´t create that mesh.

Thanks

@Eliseo - have you reviewed?

— Dale

Hi @dale

Right now, but it doesn’t work for me (and it is for Rhino 4…)

This is what I get:

With a value less than 1.5 the length of the right mesh does not decrease.

If I apply the quad remesh, I get this:

With a length lower than 0.3 the quad remesh fails.

So I can’t reach a length of 0.1 in both meshes

Hi again @dale

Anyway I have tested the quad remesher on my code and… surprise!!! It works!!!

This solution must be prevented at the user level so as not to block the system, but calling the quad remesher from Rhinocommon does work.

Thanks!!