contour plot of a 3D Solid Object

6 次查看(过去 30 天)
I imported the .stl file like this
fv = stlread('EXAMPLE.stl');
patch(fv,'FaceColor', [0.8 0.8 1.0], ...
'EdgeColor', 'none', ...
'FaceLighting', 'gouraud', ...
'AmbientStrength', 0.15);
grid off
hold on
axis equal
But I can't create the outline of the solid object. Anyone know how I can do?
For example the sphere in the figure

回答(1 个)

Shadaab Siddiqie
Shadaab Siddiqie 2020-11-18
You can create outlines only on the edges not on a curved surface. For more information refer STL File Import.
  2 个评论
Alberto Acri
Alberto Acri 2020-11-18
The surface is characterized by a triangular mesh. Is it possible to see it in the figure?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

标签

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by