Plot 3D mesh from node list and patch list?

3 views (last 30 days)
ANAND KUMAR
ANAND KUMAR on 24 Nov 2020
Answered: Shubham Rawat on 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?

Answers (1)

Shubham Rawat
Shubham Rawat on 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!