FloSewn / TQMesh

A simple two-dimensional mesh generator with triangular and quadrilateral elements in C++
MIT License
57 stars 16 forks source link

Feature Request: Adding Fixed Edges Within The Domain #28

Open angelmusonda opened 4 months ago

angelmusonda commented 4 months ago

Hi Flo,

I find your library extremely useful for my work.

I would like to suggest adding a feature to define fixed edges within the boundary. This would enhance control by allowing users to preserve critical edges for certain purposes.

Angel

FloSewn commented 4 months ago

Hey Angel,

thanks for your kind feedback. Your idea sounds very promising! I put it on my to-do-list and I will try to add that feature as soon as possible :-)

Cheers Flo

angelmusonda commented 4 months ago

Great! Thanks @FloSewn

FloSewn commented 2 months ago

Hey Angel,

the "fixed-edges" feature is now available in the newest release v1.3.3. I also included a new example (input-file and cpp-file).

It is not yet possible to add fixed edges via CSV files, but I want to add that as soon as possible.

Maybe you can try it out if you want and tell me about possible bugs ;-)

Thanks again for your idea!

Cheers, Flo

angelmusonda commented 2 months ago

Hi @FloSewn,

Thank you so much for adding this feature. It works well in most cases.

However, I've encountered two limitations:

1) It doesn't work if one of the fixed vertices lies on the exterior boundary. 2) The _tri2quadmodification breaks the fixed edges.

I'm unsure if these issues can be resolved, especially the second one, as it's still a work in progress.

Regards, Angel