Make a contour plot of a 3D Solid Object

5 ビュー (過去 30 日間)
Tianshu Yu
Tianshu Yu 2019 年 7 月 3 日
回答済み: Mingta Yang 2021 年 3 月 5 日
Hi, I want to make a contour plot of my 3D Mesh. The 3D mesh is not a surface. But a solid object. I have already extract the faces of the object. But still cannot make a contour. Anyone know how to do that? Also, if I can make the contour, can I extract the laterl position of these equal height lines? I want to do some calculation on these equal height lines, such as calculating the lateral distance between two equal height lines. Below are the pictures of my 3D mesh. The first one is just a solid scatter of my object. The second is the pdeplot. The third is the nodes on the face 1, and face 7.
NOTE: I only want the equal hight line of the part that can be hitted by a sunlight came from the top along the z axis.
  2 件のコメント
darova
darova 2019 年 7 月 4 日
Looks like you have a sphere. Contours of a sphere are just circles. You want circles?
Tianshu Yu
Tianshu Yu 2019 年 7 月 5 日
Well, yes currently I want circles. However, the difficult part is first this shape is triangulated rather than a rectanuglar mesh. Second, I don't want equal hight line of the downside half of the circle. I only want the upper side. It just like that when you hit a sunlight on the shape anything in the shadow would not have a hight. I only want the equal hight line of the part that can be hitted by a sunlight came from the top along the z axis. Also, sphere is not my final goal. I would like the algorithm to works on any shape. Not just these shapes which are convex.

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

採用された回答

Mingta Yang
Mingta Yang 2021 年 3 月 5 日
Check out fill3. It might be what you need.

その他の回答 (1 件)

KSSV
KSSV 2019 年 7 月 5 日
  1 件のコメント
Tianshu Yu
Tianshu Yu 2019 年 7 月 5 日
Well, the function is great, but I cannot generate a TRI matrix. Because the shape above is generated by the function generateMesh(). And the setting is 'quadratic'. So each tetrahedra is composed of 10 nodes rather than 4 nodes. Is there a way to get around this?

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

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by