필터 지우기
필터 지우기

Displaying STL file with colored facets

조회 수: 11 (최근 30일)
Sleh Eddine Brika
Sleh Eddine Brika 2016년 3월 6일
편집: Sleh Eddine Brika 2017년 12월 8일
I have an STL file of a part for 3D printing, for each facet I had calculated the surface roughness.How to display the STL file with the facets colored according to the value of its specific surface roughness? I want to get something like that

채택된 답변

Ahmet Cecen
Ahmet Cecen 2016년 3월 6일
p = patch('faces',F,'vertices',V,'FaceColor',[0.8 0.8 1.0],'FaceLighting','gouraud');
Pass the surface roughness vector as the argument to the 'FaceColor' option.
  댓글 수: 2
Mohammad Ismail
Mohammad Ismail 2017년 12월 8일
Hi I want to import complext geometry from solid work the command readstl did not work. Could you please help me in that
Sleh Eddine Brika
Sleh Eddine Brika 2017년 12월 8일
편집: Sleh Eddine Brika 2017년 12월 8일
Hi, it worked perfectly for me and I tried it with several complex parts. Maybe be you can try this function https://www.mathworks.com/matlabcentral/fileexchange/22409-stl-file-reader. And if you still have problems, you may try importing your CAD in IGES format using this function https://www.mathworks.com/matlabcentral/fileexchange/13253-iges-toolbox Could you please put your code.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Colormaps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by