How to use normal, length, width, and center coordinates to create a rectangular surface in three dimensions?

7 ビュー (過去 30 日間)
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 件のコメント
darova
darova 2020 年 3 月 30 日
Can you make a simple drawing of what those values mean?
zhen ye
zhen ye 2020 年 3 月 30 日
The information meaning of each column of the rectangle is as shown in the figure.
Thank you for your reply.

サインインしてコメントする。

採用された回答

darova
darova 2020 年 3 月 30 日
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 件)

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by