SourceForge logo
SourceForge logo
Menu

matplotlib-devel

From: James C. <jcs...@gm...> - 2013年06月25日 12:52:34
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
From: Erik B. <eri...@gm...> - 2013年06月26日 16:42:40
On Tue, Jun 25, 2013 at 8:52 AM, James Cline <jcs...@gm...> 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
From: James C. <jcs...@gm...> - 2013年06月26日 16:59:21
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" <eri...@gm...> wrote:
> On Tue, Jun 25, 2013 at 8:52 AM, James Cline <jcs...@gm...>
> 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
>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /