Please use the following template to help us solving your issue.
Issue Details
I've a tunnel which is in the middle of a big rectangle box (the width and height of the box is about 5 times the tunnel width and height ), and My final goal is to geneate mesh for this regtangle box which has a smaller mesh size near around the tunnel and bigger mesh size near the box boudnary.
To simplify this model , I firstly made a rectangle box without tunnel, and I would like to generate 3D mesh within this box. I studied the Mesh_3/mesh_implicit_sphere_variable_size.cpp example, but in my model, the the mesh size should change within box, thus I proposed a Box_sizing_field as follows:
Then I tested this code using my model, but the program keeps running without stopping. I doubt I made some mistake but could not solve it myself.
BTW I also looked the Lipschitz Sizing Field example, but in that example the mesh size is bigger inside and smaller outside, which is the opposite way. I swapped its min_size and max_size and the program also kept running without stopping.
The boundingbox-large.off file is attached at the end of the post.
Please use the following template to help us solving your issue.
Issue Details
I've a tunnel which is in the middle of a big rectangle box (the width and height of the box is about 5 times the tunnel width and height ), and My final goal is to geneate mesh for this regtangle box which has a smaller mesh size near around the tunnel and bigger mesh size near the box boudnary. To simplify this model , I firstly made a rectangle box without tunnel, and I would like to generate 3D mesh within this box. I studied the Mesh_3/mesh_implicit_sphere_variable_size.cpp example, but in my model, the the mesh size should change within box, thus I proposed a Box_sizing_field as follows:
Then I tested this code using my model, but the program keeps running without stopping. I doubt I made some mistake but could not solve it myself.
BTW I also looked the Lipschitz Sizing Field example, but in that example the mesh size is bigger inside and smaller outside, which is the opposite way. I swapped its min_size and max_size and the program also kept running without stopping.
The boundingbox-large.off file is attached at the end of the post.
Source Code
Environment