背景
函数原型
function [P, U, V] = lofted_approximate(xls_path, p, q, alpha, is_closed, TOL)
% INPUT
% xls_path - rows of data points stored in an xls file, each row of data points is organized in a Sheet
% p - spline degree of the first direction
% q - spline degree of the second direction
% alpha - parametrization strategy (0-uniform, 0.5-centripetal, 1.0-chord-length)
% is_closed - whether or not close row
% TOL - tolerance of surface approximation
% OUTPUT
% P - control points of B-spline surface
% U - knot vector in the first direction
% V - knot vector in the second direction
视频演示
基于MATLAB的B样条闭合曲面逼近-行数据点(闭合)
基于MATLAB的B样条曲面逼近-行数据点