where is the origin of the coordinate system when I use the stlread function to get the coordinates of an stl file?
조회 수: 33 (최근 30일)
이전 댓글 표시
%I want to write a code to find out the surface roughness of a rectangular stl surface with a thickness. But if I directly use the z-coordinates from the function, i might be taking into account the thickness of the file. I can just subtract the thickness from all the points if the position of the origin is known.
댓글 수: 0
채택된 답변
Rik
2020년 4월 6일
In general an stl reader function will use the origin that is encoded in the file itself. If you open the file file with a plain text editor you can check if the z coordinates in the file match those that your function returns.
댓글 수: 2
Rik
2020년 4월 6일
Isn't that trivial for you to check? If you are using this stlread function from the FEX it looks like that is the syntax it returns.
An important note to be aware of: since R2018b there is a built-in function stlread, so be careful with your assumptions if you run this code on another system.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!