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
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!