infinite plane passing through four points
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi everyone, do you know how to create an "infinite" plane that passes through 4 points? I started this way but I don't know how to proceed:
fv = openfig('NAME');
p1=[3.089 42.22 -15.06];
p2=[2.728 39.61 -12.88];
p3=[3.329 24.87 -33.42];
p4=[0.8426 33.42 -42.55];
h=patch('Faces',1:4,'Vertices',[p1;p2;p3;p4]);
set(h,'FaceColor','r','EdgeColor','w','LineWidth',1,'FaceAlpha',0.1)
axis equal
view([30 30])
xlabel('x','FontSize',10)
ylabel('y','FontSize',10)
zlabel('z','FontSize',10)
thanks to all
0 commentaires
Réponses (1)
John D'Errico
le 5 Déc 2020
P=[3.089 42.22 -15.06;
2.728 39.61 -12.88;
3.329 24.87 -33.42;
0.8426 33.42 -42.55];
svd(P - P(1,:))
Unless that third number was quite small, the 4 points don't all lie in one plane. It is too large by roughly a factor of 100, if we assume those numbers were rounded to 4 decimal places. So you cannot form an infinite plane.
You might decide to find some surface that passes through all 4 points, but there are infinitely many such surfaces.
Regardless, before you decide to plot some surface, you will need to find the relationship that describes that surface.
Voir également
Catégories
En savoir plus sur Surface and Mesh Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!