Displaying STL file with colored facets

25 visualizaciones (últimos 30 días)
Sleh Eddine Brika
Sleh Eddine Brika el 6 de Mzo. de 2016
Editada: Sleh Eddine Brika el 8 de Dic. de 2017
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

Respuesta aceptada

Ahmet Cecen
Ahmet Cecen el 6 de Mzo. de 2016
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 comentarios
Mohammad Ismail
Mohammad Ismail el 8 de Dic. de 2017
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 el 8 de Dic. de 2017
Editada: Sleh Eddine Brika el 8 de Dic. de 2017
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.

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by