Yixin-Hu / TetWild

Robust Tetrahedral Meshing in the Wild.
https://yixin-hu.github.io/tetwild.pdf
GNU General Public License v3.0
620 stars 98 forks source link

TetWild producing unexpected results in Prusaslicer #73

Open Sineos opened 3 years ago

Sineos commented 3 years ago

TetWild:

grafik

Left is the STL as created by Fusion 360, right the TetWild OBJ file

Various combinations with --stage 2, --filter-energy 7, --is-laplacian did not yield an improvement. STL file is attached (remove txt ending)

test.stl.txt

Sineos commented 3 years ago

I did some more experiments and the results are really strange.

  1. Windows, Issue #47
  2. Windows, self compiled, commit https://github.com/Yixin-Hu/TetWild/commit/f6ca5d970f151bd57fbec22df9dfe02932e94555
  3. Windows, unknown source

The following three images from PrusaSlicer are all created via the command:

TetWild.exe -l 6 -e 0.01 d:\test.stl

Ordering of the images as per the order above: TetWild_compare

Attached are the logs of the run with --level 0 tetwild-logs.zip

Yixin-Hu commented 3 years ago

Hi,

What do you mean by "unexpected"? Could you provide both input and output meshes?

For the second question, you are using -e 0.01 which is a quite large envelope size and thus the output surface would be "far" from the input.

Sineos commented 3 years ago

Thanks for coming back to this @Yixin-Hu

What do you mean by "unexpected"?

I tried different combination of parameters including but not limited to:

The result was always a more or less severely deformed mesh as shown in the examples above

Now in my eyes the strangest thing:

Could you provide both input and output meshes?

The input STL is already attached to the very first post. For the output mesh, which settings would you prefer?

For the second question, you are using -e 0.01 which is a quite large envelope size and thus the output surface would be "far" from the input.

Thanks for the clarification. As mentioned above I tried a lot of combinations already (possible not the right one) and always ended up with the deformed mesh. In addition there is this significant difference to this "unknown TetWild.exe" which is producing a perfect result with -l 6 -e 0.01

foreachthing commented 3 years ago

In addition there is this significant difference to this "unknown TetWild.exe" which is producing a perfect result with -l 6 -e 0.01

I was able to build fTetWild (for Windows) and trying the previously working parameter (as stated above), I come to the conclusion that this version I have is not working correctly (despite the wonderful results)!

Now I can start all over finding working parameters. It would be great if one could enter actual dimensional values, rather than percentages over an unknown diagonal. Example: -l 2mm -e 0.1mm. This would make it easier to find the "correct" parameters - I think.

Yixin-Hu commented 3 years ago

Hi Sineos,

I tried the input using default parameters on MacOS and there is no problem (the output is attached). Is the "severe deformation" you mentioned means that the output surface is different from the input? (TetWild does not exactly preserve the input surface but approsimate it within certain tolerance.)

--is-laplacian flag is needed (bur noe necessary) only for input with open boundaries (e.g. large holes).

Archive.zip