orthogonal projection of 3D nodes onto a 2D plane
조회 수: 3 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
채택된 답변
Matt J
2024년 6월 8일
편집: Matt J
2024년 6월 8일
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)
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Model Scripting에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!