Effacer les filtres
Effacer les filtres

orthogonal projection of 3D nodes onto a 2D plane

14 vues (au cours des 30 derniers jours)
Alberto Acri
Alberto Acri le 8 Juin 2024
Modifié(e) : Matt J le 8 Juin 2024
I need to project 3D nodes (nodes) onto a 2D plane that I got from the code in FEX.
load xyz
fobjPlane=planarFit(xyz);
for i=1:2
subplot(1,2,i);
[hL,hD]=plot(fobjPlane); %Visualize the fit
end
legend([hL,hD],'Plane fit', 'XYZ samples', 'Location','northoutside','FontSize',15);
subplot(1,2,1)
view([-69.5 -24.6])
subplot(1,2,2)
view([9.6 -35.2])
So I need to always get nodes in space however that lie on that plan.

Réponse acceptée

Matt J
Matt J le 8 Juin 2024
Modifié(e) : Matt J le 8 Juin 2024
You should post questions about a FEX file on the submission's FEX Discussion forum, since only its author is likely to have the answer. In any case, the answer is to use the fobjplane objects' project2D() method, as demonstrated at the FEX page in the Advanced Topics section of the Examples tab,
fobjplane.project2D(xyz)

Plus de réponses (0)

Catégories

En savoir plus sur Project File Management dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by