想做一个三维曲面管道,通过程序计算,得到了一系列各截面上点的坐标值,接下来怎么造型啊,各位朋友救救我啊.
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/18 14:37:18
想做一个三维曲面管道,通过程序计算,得到了一系列各截面上点的坐标值,接下来怎么造型啊,各位朋友救救我啊.
想做一个三维曲面管道,通过程序计算,得到了一系列各截面上点的坐标值,接下来怎么造型啊,各位朋友救救我啊.
想做一个三维曲面管道,通过程序计算,得到了一系列各截面上点的坐标值,接下来怎么造型啊,各位朋友救救我啊.
你是求坐标值吗?
clf;clear;
hold on;
axis([3.3000 3.3250 0.0000 0.5500 -0.5500 0.0100]);
x=[3.3000,3.3001,3.3003,3.3004,3.3005,3.3012,3.3019,3.3025,3.3032,3.3055,3.3079,3.3102,3.3125,3.3152,3.3179,3.3206];
y=[0.1000,0.1050,0.1100,0.1150,0.1200,0.1447,0.1690,0.1929,0.2163,0.2934,0.3613,0.4177,0.4610,0.4932,0.5048,0.4951];
z=[-0.5000,-0.4989,-0.4978,-0.4966,-0.4954,-0.4886,-0.4805,-0.4712,-0.4607,-0.4151,-0.3567,-0.2874,-0.2093,-0.1110,-0.0085,0.0941];
%三次样条插值
t1=0:1:15;
t=0:0.01:16;
XX=spline(t1,x,t);
YY=spline(t1,y,t);
ZZ=spline(t1,z,t);
%画点
plot3(XX,YY,ZZ,'r-')
xlabel('X轴');
ylabel('Y轴');
zlabel('Z轴');