如何在 Matlab 中重新缩放 STL 表面

问题描述

我已经在 Matlab 中使用函数 stlread 导入了一个 STL 文件

我的问题是,我们如何使用任意大小因子重新缩放它(例如,假设您想将其尺寸减半)?

这是我导入和查看 stl 的一段代码

fv = stlread ( 'Femur_Head.stl' );


patch(fv,'FaceColor',[0.8 0.8 1.0],...
         'EdgeColor','none',...
         'FaceLighting','gouraud',...
         'AmbientStrength',0.15);

% Add a camera light,and tone down the specular highlighting
camlight('headlight');
material('dull');

axis([-50 50 -50 50 0 80]);
 
view([-135 35]);
 
title('Femur Head');
 
xlabel('X');ylabel('Y');zlabel('Z');
 
% Fix the axes scaling,and set a nice view angle
 
axis('image');
view([-135 35]);
 
hold on

查看:

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)