How to find 3 same edges in two/more graphs and rotate and translate second graph according to first one?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I creted two different graphs, where is every of them in (different) local coordinate sistem. So i have to find tree same edges between first an second graph and according to coordiates of (same) edges in first graph rotate and translate edges in second graph. And in the last step i have to merge/join those two graphs together.
Graph 1:
edges1 = "9" "9" "9" "9" "9" "9" "9" "9"
egdes2 = "5" "7" "8" "6" "1" "2" "3" "4"
x = 0 0 2.3034 10.8282 8.0886 6.7474 5.0620 3.1418 1.7700
y = 0 34.2871 58.7102 32.8487 9.9545 4.0519 -5.8322 -15.2789 -24.7557
z = 0 0.6755 5.1917 1.0319 2.5470 0.6672 0.6404 0.6373 0.6769
Graph 2
edges1 = "6" "6" "6"
egdes2 = "7" "8" "9"
x = 0 0 12.2406 6.5249
y = 0 69.0487 44.9219 11.0428
z = 0 2.6449 -1.5150 -2.5465
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/922069/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/922074/image.jpeg)
Thanks for advice/ help.
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Graph and Network Algorithms 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!