How to use normal, length, width, and center coordinates to create a rectangular surface in three dimensions?
6 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
darova
on 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 Comments
More Answers (0)
See Also
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!