[Gmsh] python example files?
Christophe Geuzaine
cgeuzaine at ulg.ac.be
Fri Mar 25 07:37:53 CET 2011
On 24/03/11 23:12, Perrin Meyer wrote:
> Hi.
>
> I svn co https://geuz.org/svn/gmsh
>
> but I don't really see any python files, or even what is wrapping stuff
> for python.
>
> Where would I find an example of using python to create a mesh?
>
Hi Perrin - If you have swig >= 2.0 installed on your system the
wrappers should be automatically built (make _gmshpy). Attached is a
small example.
Ch.
> Thanks,
>
> Perrin
>
>
> On Mar 16, 2011, at 2:23 PM, Christophe Geuzaine wrote:
>
>> On 16/03/11 19:44, Perrin Meyer wrote:
>>>
>>> Hi.
>>>
>>> I would like to use Lua to create gmsh meshes. So far I have two issues.
>>>
>>> (1) - I can't seem to find any documentation?
>>>
>>> (2) when I start gmsh -lua and get a prompt >, after every syntax error
>>> I make, lua exits. Is this a bug with my lua installation? I'm running
>>> gmsh 2.5.0
>>>
>>
>> Hello Perrin,
>>
>> After a long internal debate we are actually transitioning from the
>> integrated lua bindings to more traditional (swig-generated) python
>> bindings.
>>
>> We are actively working on this; the latest SVN contains fairly
>> functional python binding generation. Lots of new things are in the
>> pipeline in this regards, e.g. python-binded gui-driven data generation.
>>
>> Christophe
>>
>>> Thank you for your help, and also a great open source tool.
>>>
>>> Sincerely,
>>>
>>> Perrin Meyer
>>>
>>> --------------------
>>> Perrin Meyer
>>> Senior DSP Engineer
>>> perrin at MeyerSound.com <mailto:perrin at MeyerSound.com>
>>> phone: 510-486-1166
>>>
>>>
>>>
>>>
>>>
>>> NOTICE: This email may contain confidential information. Please see
>>> http://www.meyersound.com/confidential/ for our complete policy.
>>>
>>>
>>>
>>> _______________________________________________
>>> gmsh mailing list
>>> gmsh at geuz.org
>>> http://www.geuz.org/mailman/listinfo/gmsh
>>
>>
>> --
>> Prof. Christophe Geuzaine
>> University of Liege, Electrical Engineering and Computer Science
>> http://www.montefiore.ulg.ac.be/~geuzaine
>
>
> --------------------------
> Perrin Meyer
> Senior DSP Engineer
> perrin at MeyerSound.com
> phone: 510-486-1166
>
>
>
>
> NOTICE: This email may contain confidential information. Please see
> http://www.meyersound.com/confidential/ for our complete policy.
>
--
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wikipedia.py
Type: text/x-python-script
Size: 695 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20110325/044a54d3/attachment.py>