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)
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
darova
darova le 30 Mar 2020
Can you make a simple drawing of what those values mean?
zhen ye
zhen ye le 30 Mar 2020
The information meaning of each column of the rectangle is as shown in the figure.
Thank you for your reply.

Connectez-vous pour commenter.

Réponse acceptée

darova
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)

Plus de réponses (0)

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!

Translated by