Plot 3D mesh from node list and patch list?

1 Ansicht (letzte 30 Tage)
ANAND KUMAR
ANAND KUMAR am 24 Nov. 2020
Beantwortet: Shubham Rawat am 30 Nov. 2020
I have a nx3 node list and nx3 patch list for a 3D object and I want to plot it. I am using patch() but it produces a 2D image. How can I get a 3D plot?

Antworten (1)

Shubham Rawat
Shubham Rawat am 30 Nov. 2020
Hi Anand,
You may use patch(X,Y,Z,C) creates the polygons in 3-D coordinates using X, Y, Z.
To view the polygons in a 3-D view, you may use the view(3) command. C determines the polygon colors.
Hope This Helps!

Community Treasure Hunt

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

Start Hunting!

Translated by