Compound surface Segfault
The attached surface cannot be remeshed with any remeshing algorithm, and often ends with a segmentation fault. From gdb, it seems that the problem is at meshGFace.cpp:559, when a error message is to be raised. The error is not shown because some invalid array access when forming the string, I guess. Thus, there is a bug in showing the error. However, this doesn't help me with the mesh. Is the STL mesh wrong somehow?
No, the old remeshing code is just not robust.
Gmsh 3.2 or 4.0 will contain our new reparametrization code, which should improve things quite a bit. You can test an undocumented new algorithm (soon to be replaced by yet another implementation...) as follows:
gmsh foo.stl -meshdiscrete -clscale 0.2
It's a bit slow, but seems to work fine.