Walter Frei
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
6 nov. 2018, 13:11 UTC−5
Hello David,
The STL file describes parts via a triangular tesselation of the surfaces. That is, the surfaces of the domains are approximated as a set of triangular patches. Now, this format is good for some purposes, in particular for 3D printing, which is what it was designed for. However, for transferring CAD data for meshing, it is not as good. One issue in particular is that the data in the file itself can have small gaps or overlaps, where the triangles do not line up exactly. This is an issue on the part of the software that was used to write the STL file, and once such a "bad" STL file has been created, it can be hard to fix.
This is not to say that the STL file format itself is "bad", it just depends upon the source of the STL file itself, and how precise that data is. There are thousands of different software programs out there than can generate an STL file, and it is (unfortunately) possible that any of them could generate an imprecise file. You may find the tips here useful:
https://www.comsol.com/blogs/improved-functionality-and-tips-for-importing-stl-and-nastran-files/
Alternatively, since this is scan data, you may want to look to a tool such as Simpleware:
https://www.synopsys.com/simpleware.html
which can read in scan data and directly write out a valid COMSOL mesh file.
Hello David,
The STL file describes parts via a triangular tesselation of the surfaces. That is, the surfaces of the domains are approximated as a set of triangular patches. Now, this format is good for some purposes, in particular for 3D printing, which is what it was designed for. However, for transferring CAD data for meshing, it is not as good. One issue in particular is that the data in the file itself can have small gaps or overlaps, where the triangles do not line up exactly. This is an issue on the part of the software that was used to write the STL file, and once such a "bad" STL file has been created, it can be hard to fix.
This is not to say that the STL file format itself is "bad", it just depends upon the source of the STL file itself, and how precise that data is. There are thousands of different software programs out there than can generate an STL file, and it is (unfortunately) possible that any of them could generate an imprecise file. You may find the tips here useful:
https://www.comsol.com/blogs/improved-functionality-and-tips-for-importing-stl-and-nastran-files/
Alternatively, since this is scan data, you may want to look to a tool such as Simpleware:
https://www.synopsys.com/simpleware.html
which can read in scan data and directly write out a valid COMSOL mesh file.