control parameters for a coarse mesh
Hello gmsh developers team,
I have a question about the mesh parameters. For my application, I need to get a coarsed mesh such a rectangle is meshed with 4 triangles adding the middle point of the face. For that, I set the MeshSizeFromPoints parameter to 0. The result is that I want for the unit cube. But when I enlarge the box in one dimension, the rectangles are meshed by only 2 triangles. The midpoint is not added.
This simple script reproduces what I have just explained. The first box is what I want with 4 triangles per face. But the rectangles in the second box are meshed with only 2 triangles per face. What parameters can I use to get 4 triangles per face whatever the dimensions of the box ?
Mesh.MeshSizeFromPoints = 0; Mesh.Algorithm = 6;
SetFactory("OpenCASCADE"); Box(1) = {0, 0, 0, 1, 1, 1}; Box(2) = {4, 0, 0, 1, 1, 3};
Mesh 2;