<div dir="ltr"><div>There's a template for exporting data to simple generic arrays that is easy to work with at the following site.  <a href="http://ksolek.fm.interiowo.pl/Blender/">http://ksolek.fm.interiowo.pl/Blender/</a><br><br></div>You may also want to check out #blendercoders and #blenderpython on <a href="http://irc.freenode.net">irc.freenode.net</a> <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 17, 2015 at 12:48 PM, Christopher Barry <span dir="ltr"><<a href="mailto:christopher.r.barry@gmail.com" target="_blank">christopher.r.barry@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, 17 May 2015 19:02:54 +1000<br>
Glen Fletcher <<a href="mailto:10716470@student.uts.edu.au">10716470@student.uts.edu.au</a>> wrote:<br>
<br>
>I'm currently doing my PhD in plasmonics at UTS, we often need to<br>
>create code to create and manipulate complex 3D structure to feed into<br>
>other modeling software. This is a problem that is difficult due to<br>
>the lack of good libraries for manipulating a  3D environment.<br>
><br>
>In our code we use python + scientific libraries: numpy, scipy,<br>
>matplotlib<br>
><br>
>I have also done 3d modeling as a hobby and use blender for this, I<br>
>understand from the blender manual that the object mapliculation<br>
>functions are exposed to the blender API such that any operations I<br>
>perform in the GUI could be performed by a python script thats run by<br>
>blender.<br>
><br>
>What I'm interested in doing is compiling the blender API as a python<br>
>extension module that we could import in to python allowing the use of<br>
>blender function when creating 3D structure, and importing/exporting of<br>
>common 3D formats.<br>
><br>
>In this regard I have several questions.<br>
><br>
>1) Is this possible with out modifying the source code?<br>
>2) Are there any project that all ready expose blender API in such a<br>
>way 3) What sort of integration with numpy arrays/buffer interface is<br>
>possible a) Get Array of faces/vertices suitable for use with<br>
>matplotlib 3D plotting. b) Apply operation of numpy array  to find<br>
>return Boolean map of enclosed points<br>
>4) Am I able to get assistance from the Blender Development Team in<br>
>Exposing this API<br>
>5) Is it possible to support both python 2.7 and 3.x<br>
><br>
>I believe if such extenstion module was published as part of the<br>
>blender project it would find wide usage in scientific applications,<br>
>and hope you can assist me in this task.<br>
><br>
>Thank You.<br>
><br>
>Glen Fletcher<br>
<br>
<br>
Are you familiar with PythonOCC[1] / OpenCascade[2]?<br>
<br>
[1] <a href="http://www.pythonocc.org/" target="_blank">http://www.pythonocc.org/</a><br>
[2] <a href="http://www.opencascade.org/getocc/download/loadocc/" target="_blank">http://www.opencascade.org/getocc/download/loadocc/</a><br>
<br>
--<br>
Regards,<br>
Christopher Barry<br>
<br>
Random geeky fortune:<br>
Airplanes are interesting toys but of no military value.<br>
        -- Marechal Ferdinand Foch, Professor of Strategy,<br>
           Ecole Superieure de Guerre<br>
_______________________________________________<br>
Bf-python mailing list<br>
<a href="mailto:Bf-python@blender.org">Bf-python@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-python" target="_blank">http://lists.blender.org/mailman/listinfo/bf-python</a><br>
</blockquote></div><br></div>