[matplotlib-devel] Creating 3d file

2013-06-25 Thread James Cline
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.

Thanks,
James
--
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


Re: [matplotlib-devel] Creating 3d file

2013-06-26 Thread James Cline
This was my original attempt to go about this problem. This however, did
not give back the data that I need. Using the get_path() method returns the
vertices for the 2d protection of the 3d functions. The data that I need is
the raw 3d data for the function.

James
On Jun 26, 2013 12:42 PM, "Erik Bray"  wrote:

> On Tue, Jun 25, 2013 at 8:52 AM, James Cline 
> 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