Improving mesh quality from STL files
Hello, I was given several STL files which together enclose a volume. I was able to stitch them together with the script:
Mesh.CharacteristicLengthMin = 0.1;
Mesh.CharacteristicLengthMax = 0.1;
Merge "Outlet_A.stl";
Merge "Outlet_B.stl";
Merge "Inlet_A.stl";
Merge "Inlet_B.stl";
Merge "Walls.stl";
Coherence Mesh; // Stitches the meshes and takes care of intersection issues
s() = Surface{:}; // Get all the surfaces
Surface Loop(1) = s(); // Creating a surface loop to be used to generate the volume
Volume(1) = 1; // Volumetric mesh to generate
and mesh the volume inside. The problem is that the quality from the STL files is pretty poor as you can see here:
The STL files are defining the sinusoidal geometry pattern that you see. My question is, can I use gmsh to improve the quality of the surface mesh defined by the STL? Otherwise, I will request higher quality stl to whom created them. I can see this being a bit tricky because I need to conserve the sinusoidal geometry after the remeshing.