How to use normal, length, width, and center coordinates to create a rectangular surface in three dimensions?
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How to draw a rectangle in 3D space with the following information in txt:
Plane, x [m], y [m], z [m], Width [m], Height [m], Dir x, Dir y, Dir z, Up x, Up y, Up z, DIP Dir [deg], DIP Angle [deg]
Plane001, 789229.980, 2957594.692, 684.368, 160.000, 86.000, 0.9652463, -0.2271602, 0.1292203, 0.2287111, 0.9734900, 0.0029077, 103.243, 82.575
2 commentaires
Réponse acceptée
darova
le 30 Mar 2020
Create Left vector using cross product
p0 = [X Y Z]; % origin
p1 = p0 + height/2*Up + width/2*left;
p2 = ... % do all combinations to calculate vertices
Rember that all vectors should be normalized (length=1)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur File Operations 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!