|
From: M.Rule <mru...@gm...> - 2011-03-07 20:09:28
|
I want to plot as if rendering a 3D object. Usually this would involve specifying vertices and facets. Its not obvious to me how to send this to functions like plot_wireframe. I have looked at the documentation and the tutorials, and am still not getting it. Maybe start with something very simple : how would I plot a cube ? verts = [[1,1,1],[1,1,-1],[1,-1,-1],[1,-1,1],[-1,1,1],[-1,1,-1],[-1,-1,-1],[-1,-1,1]] faces = [[0,1,2,3],[4,5,6,7],[0,4,5,1],[0,4,7,3],[1,5,6,2],[2,6,7,3]] |