How can I specify the unit system in my STL file to correctly import it through importGeometry?

조회 수: 17 (최근 30일)
Hello,
I hope the title says it all. I would like to always keep working under SI units, but my CAD software exports STLs files as [mm]. I want to, without changing my CAD files or adding new settings to my CAD software, be able to "say" to MATLAB that the files I'm importing are in [mm], [cm], or whatever other base I want to, so proper conversion can take place. I haven't found anything that could help searching the web, however.

답변 (1개)

Myrtle42
Myrtle42 2022년 5월 7일
In case someone else was also looking for the answer to this:
scale(model.Geometry,1e-3)

카테고리

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