Plot 3D mesh from node list and patch list?

1 visualización (últimos 30 días)
ANAND KUMAR
ANAND KUMAR el 24 de Nov. de 2020
Respondida: Shubham Rawat el 30 de Nov. de 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?

Respuestas (1)

Shubham Rawat
Shubham Rawat el 30 de Nov. de 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