matlab - 如何在 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
看法:
解决方案
推荐阅读
- angularjs - 在一个按钮上禁用多个元素
- jenkins - 如何在 Bitbucket 中自定义 Jenkins 设置的构建消息
- php - Laravel 将请求输入从字符串更改为数组
- javascript - 过滤对象键,在日期之间
- c# - 如何从kafka消息总线推送通知消费者
- adobe-indesign - 在 Adobe Indesign 中创建上下文菜单
- django - Django“ValueError:源代码字符串不能包含空字节”
- python - 根据子列表中项目的顺序将列表列表转换为字典列表
- angular - Angular cli - 组件样式的输出
- rest - 模块可以在rest api中有自己的命名空间吗?