필터 지우기
필터 지우기

Getting an error message when trying to import .stl file

조회 수: 62 (최근 30일)
Matheus Queiroz
Matheus Queiroz 2015년 9월 11일
답변: mkassa 2020년 10월 13일
Dear users,
I'm a Ph.D. student in Brazil/Canada researching in the domain of flow separation and I would like to ask you a question about the following error I get when I try to import a geometry with .stl extension. Hope so you can help me.
Error using pde.DiscreteGeometry
Failed to create geometry, the input does not form a closed volume. This may be due to missing faces or gaps in the input.
Error in pde.PDEModel/importGeometry (line 160) gm = pde.DiscreteGeometry(geofilename);
Thank you very much.
Matheus de Queiroz

채택된 답변

Damian Sheehy
Damian Sheehy 2017년 1월 27일
The geometry may well have tiny gaps along an edge where two adjacent curved surfaces intersect. It may not be obvious when looking at the geometry in the parent CAD system unless it provides tools for querying and healing geometry defects. We occasionally see this problem when CAD geometry is imported from one system into another and the STL is then generated from the latter. Different CAD systems use different tolerances in their surface intersection algorithms. When the geometry is exchanged faces may not be stitched together properly, giving rise to gaps. The PDE toolbox will error if these gaps are detected on import.
If you email the STL file to me together with and any info on translation history then we can investigate; though at this point we cannot heal geometry with defects like this. email: firstname dot lastname at mathworks dot com

추가 답변 (2개)

Brian Chen
Brian Chen 2017년 1월 27일
I get this issue as well. Any progress?
  댓글 수: 2
michio
michio 2017년 1월 27일
Just to clarify, does the error messages not apply to your model defined in STL file that you are trying to import?
"Failed to create geometry, the input does not form a closed volume. This may be due to missing faces or gaps in the input.
Somayeh Mirzaee
Somayeh Mirzaee 2017년 6월 23일
Hi, I have the same issue, any progress?

댓글을 달려면 로그인하십시오.


mkassa
mkassa 2020년 10월 13일
Switching from m to mm worked for me :
[F,V] = stlread('old_file_name.stl');
stlwrite('new_file_name.stl',F,V*1000)
model = createpde();
importGeometry(model,'new_file name.stl');

카테고리

Help CenterFile Exchange에서 STL (STereoLithography)에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by