GLVis / glvis

Lightweight OpenGL tool for accurate and flexible finite element visualization
http://glvis.org
BSD 3-Clause "New" or "Revised" License
249 stars 51 forks source link

Triangular patches when in smoother mode #270

Closed altineller closed 7 months ago

altineller commented 7 months ago

Hello,

I managed to make my program create MFM mesh, and also create a Const3D solution file, and I am getting the results below:

Screenshot from 2024-01-31 05-00-14

when I press the f key o get the smoother on I get the following results:

Screenshot from 2024-01-31 05-00-00

Some triangular parts are missing. Does this mean that my mesh is generated wrong? Maybe there is a problem with ordering or reverseness of the boundary?

Any ideas/recomendations/help greatly appreciated.

Best Regards, C.

justinlaughlin commented 7 months ago

Hi @altineller :). I'm still learning GLVis myself so I can't say for sure, but your second image has patterns that look very similar to incorrect cell/face ordering (as a quick sanity check you could permutate your indices and see if those artifacts still appear). Please post your mesh/sol file and I can take a look. If you can generate a smaller example illustrating your problem that would be helpful.

altineller commented 7 months ago

Hello @justinlaughlin,

Yes, the ordering of certain boundaries were in wrong order. We have fixed it.

Thank you.