jigsaw-python icon indicating copy to clipboard operation
jigsaw-python copied to clipboard

Align configuration parameters between jigsaw-python and mesh2d

Open FaugereE opened this issue 4 months ago • 1 comments

Hello,

First, thank you for your work on both jigsaw-python and mesh2d – they are very useful libraries.

I am currently using jigsaw-python with a custom configuration, and I noticed that mesh2d seems to be a simplified version of JIGSAW. However, I could not find an equivalent way to define some of the detailed configuration parameters in mesh2d (e.g. mesh_eps1, mesh_eps2, mesh_rad2, mesh_rad3, mesh_off2, mesh_off3, etc.).

Would it be possible to expose or document these parameters in mesh2d, so that both libraries can behave more consistently when generating meshes?

This would make it much easier to transfer workflows between the two tools.

Thanks a lot for your help and for maintaining these projects!

Best regards,

FaugereE avatar Sep 28 '25 17:09 FaugereE

Hi @FaugereE, This'd be nice to do, but in general it isn't possible as the underlying algorithms and behaviour are different. There are a few (rough) equivalents:

jigsaw.opts.mesh_kern = mesh2d.opts.kind
jigsaw.opts.mesh_rad2 = mesh2d.opts.rho2
jigsaw.opts.mesh_siz1 = mesh2d.opts.siz1
jigsaw.opts.mesh_siz2 = mesh2d.opts.siz2

but overall jigsaw is a fair bit more complex, handles 2d + 3d cases, etc, etc...

dengwirda avatar Sep 29 '25 01:09 dengwirda