[Gmsh] Hex-dominant meshing of STL surface

Gunnar Jansen jansen.gunnar at gmail.com
Fri Jul 17 11:18:46 CEST 2015


Dear all,

I am experimenting with the gmsh hex-dominated algorithm for stl surfaces.
In order to use a simple example I chose one of the stl remeshing examples
from the wiki and tried to build a hex-dominated mesh on it. However, when
I run the 3D meshing I get an ANN error : "ANN: ERROR------->Requesting
more near neighbours than data points<-------------ERROR"

I can only guess what went wrong inside, but it seems the neighbour search
does not work with the nodes generated on the 2D stl mesh.

Any hints on how to tackle this problem are greatly appreciated!

Best,
Gunnar

PS: The .geo file I used is the following:

Geometry.HideCompounds = 0; // show underlying STL
Mesh.RemeshAlgorithm=1; //(0) nosplit (1) automatic (2) split metis
Mesh.CharacteristicLengthFactor=0.2;
Merge "skull.stl";
Compound Surface(200)={1};
Physical Surface (501)={200};

CreateTopology;
Surface Loop(2) = 1;
Volume(3) = 2;

Mesh.Algorithm=9;
Mesh.Algorithm3D = 9; //(1=tetgen, 4=netgen, 7=MMG3D, 9=R-tree)
Mesh.Optimize=1;
Mesh.Recombine3DAll=1;
Mesh.Smoothing=0;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20150717/730b48e5/attachment.html>