dimension of imported STL file

조회 수: 5 (최근 30일)
Rishabh Chaudhary
Rishabh Chaudhary 2019년 8월 3일
편집: DGM 2025년 10월 3일 7:25
I have imported a STL file of a CAD model which is designed with dimensions in mm. will the model imported in pdetoolbox will have dimensions in mm or m? if it have dimension in m then how to convert it into mm?
  댓글 수: 2
dpb
dpb 2019년 8월 3일
Well, one would presume the dimensions would come with the file...why don't you pdegplot it and see what you get? I (also presume) the axis scaling would match the model dimensions.
The answer to what is actually imported will, I expect, make the second question moot...
Rishabh Chaudhary
Rishabh Chaudhary 2019년 8월 3일
thank you

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

답변 (1개)

DGM
DGM 2025년 4월 2일
편집: DGM 2025년 10월 3일 7:25
STL files contain no scale information. It's just a dimensionless shape. It's up to you to interpret what its units are supposed to be and scale it according to your expectations and needs. A 100x100 surface might be 100x100 mm, or it might be 100x100 km. Depends if it's a topological scan of a machined part or geographical data.
That said, there are sometimes nonstandard things crammed into STL files, so never say never. Some files may have units specified in the header text, but there is no standard regarding if or how they will be presented. That said, the built-in decoder does not return the header text, so you'd have to use something else if you want to find that information (if it exists). Automating its retrieval would take some foreknowledge of how it would be presented. I doubt any of the PDE toolbox tools attempt to look for such inconsistent, nonstandard information.

카테고리

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