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

📄 nrbtransp.m

📁 非均匀有理B样条的matlab程序
💻 M
字号:
function tsrf = nrbtransp(srf)
% 
% Function Name:
% 
%   nrbtransp - Transpose a NURBS surface, by swapping U and V directions.
% 
% Calling Sequence:
% 
%   tsrf = nrbtransp(srf)
%
% Parameters:
% 
%   srf		: NURBS surface, see nrbmak.
% 
%   tsrf	: NURBS surface with U and V diretions transposed.
% 
% Description:
% 
%   Utility function that transposes a NURBS surface, by swapping U and
%   V directions. NURBS curves cannot be transposed.

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

if ~iscell(srf.knots)
  error(' A NURBSs curve cannot be transposed.');
end  

tsrf = nrbmak(permute(srf.coefs,[1 3 2]), fliplr(srf.knots));

⌨️ 快捷键说明

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