我想使用从 3 个点计算出的矢量绘制平面,其中:
pointA = [0,0,0];
pointB = [-10,-20,10];
pointC = [10,20,10];
plane1 = cross(pointA-pointB, pointA-pointC)
如何在 3D 中绘制“plane1”?
最佳答案
下面是使用 fill3
绘制平面的简单方法:
points=[pointA' pointB' pointC']; % using the data given in the question
fill3(points(1,:),points(2,:),points(3,:),'r')
grid on
alpha(0.3)
关于matlab - 如何在 Matlab 中绘制 3D 平面?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13464304/