How to find minimum thickness of 3D .stl file ?

조회 수: 6 (최근 30일)
Teerapong Poltue
Teerapong Poltue 2021년 1월 4일
편집: DGM 2025년 9월 27일 6:42
Now I got .stl file, and I imported to matlab via stlread function
So I've face, vertices and normal vector of my .stl file. How can I get thickness of each point of my .stl file ?
Or is there any alternative way for finding minimum thickness of .stl file.

답변 (1개)

Imran
Imran 2022년 11월 9일
편집: Imran 2022년 11월 9일
Hello Teerapong.
I understand that you've imported the .stl file in MATLAB and you want to get the thickness of each point in the .stl file.
In order to fetch the thickness of each point
1. Import the .stl using stlread function
TR = stlread('FILENAME');
2. Create and plot a triangulation object from the data contained in the .stl file. and store the line object.
h = triplot(TR)
3. There's one property called "MarkerSize" of the object. This property value will give you the thickness of points. Make sure the "Marker" property is not "none".
disp(h.MarkerSize)
I hope this help.
  댓글 수: 1
DGM
DGM 2025년 3월 31일
This obviously doesn't solve the problem. OP asked to find object thickness. This simply returns the default marker size, which is irrelevant. The marker size is completely independent of the model geometry or physical units.
unzip testfiles.zip
% a 1x1x1 mm cube
TR = stlread('unitcube.stl');
h = triplot(TR);
disp(h.MarkerSize)
6
% a 1x1x1 km cube
TR = stlread('megacube.stl');
h = triplot(TR);
disp(h.MarkerSize)
6

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

카테고리

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