How can I plot a cube in matplotlib(python) when the 8 vertices are given in Numpy Arrays(3*1) (x y z)?

Viewed 37

I have the corner points(vertices) of the cube (each point is in (x y z) format) -

[[0],[0],[0]] , [[2],[0],[0]] , [[0],[2],[0]] , [[2],[2],[0]] ... and so on.. 

Given the 8 vertices how can I plot a cube using these (3*1)Arrays in Matplotlib?

0 Answers
Related