背景
函数原型
function export_spline_curves(P_cell, U_cell, p_arr, filename)
% P_cell, 控制点-元胞数组
% U_cell, 节点向量-元胞数组
% p_arr, 曲线次数-数组
% filename, iges文件名
%
if ~iscell(P_cell) || ~iscell(U_cell)
error('P_cell and U_cell must be cell!')
end
if ~isvector(p_arr) && ~isreal(p_arr)
error('p_arr must be vector with real integer!')
end
%
spline_curve_to_iges(P_cell, U_cell, p_arr, filename)
end
视频展示
基于MATLAB的B样条曲线组导出-IGES