⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 demotorus.m

📁 非均匀有理B样条的matlab程序
💻 M
字号:
function demotorus
% A second demonstration of surface construction
% by revolution.
%

% D.M. Spink
% Copyright (c) 2000

sphere = nrbrevolve(nrbcirc(1,[],0.0,pi),[0.0 0.0 0.0],[1.0 0.0 0.0]);
nrbplot(sphere,[20 20],'light','on');
title('Ball and torus - surface construction by revolution');
hold on;
torus = nrbrevolve(nrbcirc(0.2,[0.9 1.0]),[0.0 0.0 0.0],[1.0 0.0 0.0]);
nrbplot(torus,[20 10],'light','on');
nrbplot(nrbtform(torus,vectrans([-1.8])),[20 10],'light','on');
hold off;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -