Plotting a 3D object from coordinates

260 ビュー (過去 30 日間)
Craig Atkinson
Craig Atkinson 2021 年 2 月 22 日
回答済み: Keerthana Chiruvolu 2021 年 2 月 28 日
I have a 3d object and I know all of the dimensions. I can use these dimensions to create a coordinate for each corner of the face, but I can't quite figure out how to get the last point to connect to the next, and so on. I tried using fill3 and surf, both of which failed miserably. I couldn't even get a 2d version to work for the face. Attached is a picture of the object that I am trying to plot along with what I believe the coordinates for each point are in terms of variables. I gave some random example values for each variable, because I plan on implementing it using variables that way I can change their values and get a different sized shape.
It would be beneficial if the entire thing was centered, though I feel that would make it quite a bit more complicated, so it's not absolutely necessary. If you could make it clear where each dimension comes into play so that I can learn how to do this for similar objects, that would also be great.
  1 件のコメント
Paul Hoffrichter
Paul Hoffrichter 2021 年 2 月 23 日
編集済み: KSSV 2021 年 2 月 23 日

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

採用された回答

Keerthana Chiruvolu
Keerthana Chiruvolu 2021 年 2 月 28 日
Hi Craig,
You can use the alphaShape() function to create and fill a 3D object using its coordinates.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by