On Tue, Jun 25, 2013 at 8:52 AM, James Cline <jcskyhaw...@gmail.com> wrote: > Hi, > > I am trying to use matplotlib to create obj file that I can render in > blender. I have already created the code to create the file itself. I am > currently trying to find the best place to put my code into. I have tried > editing the axes3d file and was able to create a working file. However, I am > worried there will be too much code recreation at this level. I have also > attempted to edit the art3d file to try to have less code generation. > However, I was unable to find all of the data for the points. Any help or > ideas on where to put the code would be greatly appreciated. > > If anymore information is needed please let me know, this is my first post > so I apologize if I left something out.
I'm not an expert on Matplotlib's 3D toolkit, but it sounds to me like you're trying to insert your code directly into Matplotlib itself somewhere? And I don't think that's what you want to be doing. If you already have code to write the blender format then in order to dump, say, the polygons for the model call .get_children() on the Axes3D object and look for the Poly3DCollection. Then call .get_paths() on that it will return a list of all the polygons in the model and the vertices that define them. Check the documentation for the Path class for understanding these. Erik ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel