Filter löschen
Filter löschen

Make a contour plot of a 3D Solid Object

8 Ansichten (letzte 30 Tage)
Tianshu Yu
Tianshu Yu am 3 Jul. 2019
Beantwortet: Mingta Yang am 5 Mär. 2021
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 Kommentare
darova
darova am 4 Jul. 2019
Looks like you have a sphere. Contours of a sphere are just circles. You want circles?
Tianshu Yu
Tianshu Yu am 5 Jul. 2019
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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Mingta Yang
Mingta Yang am 5 Mär. 2021
Check out fill3. It might be what you need.

Weitere Antworten (1)

KSSV
KSSV am 5 Jul. 2019
  1 Kommentar
Tianshu Yu
Tianshu Yu am 5 Jul. 2019
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?

Melden Sie sich an, um zu kommentieren.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by