Re: [Gmsh] Visualising point data imported from MED files

2018-05-18 Thread Christophe Geuzaine
Your file is almost correct: you just need to fix the node indices in the point elements (you start referencing nodes at index 0, while the nodes actually start at 1). (I have patched Gmsh to not crash anymore when the indices are incorrect.) Cheers, Christophe > On 18 May 2018, at 09:20, To

Re: [Gmsh] Surface mesh for 3D solids

2018-05-18 Thread michael.asam
Hi Christophe, it would be indeed a valuable feature if there is a command to reorient surfaces of volumes automatically in a way that the normal is pointing outwards, as it would help to set the natural boundary conditions with the correct sign :-) Have a nice weekend Michael From: gmsh [mai

Re: [Gmsh] Visualising point data imported from MED files

2018-05-18 Thread Tomasz Koziara
Dear Christophe, Here is an output file with POINT1 elements exported using the previously quoted lines of code: https://www.dropbox.com/s/izu5o15b2ow8y9u/spring_system0rb_ele.med.gz?dl=0 And here is a stack trace of the crush which I am getting on a OS X 10.10.5 when opening this file with Gmsh

Re: [Gmsh] Point coordinates at python api

2018-05-18 Thread Jeremy Theler
On Thu, 2018-05-17 at 21:12 +0200, Christophe Geuzaine wrote: > On Thu, 2018-05-17 at 08:46 +0200, Christophe Geuzaine wrote: > How could I get point coordinates at python api? > gmsh.model.getBoundingBox(0, point_tag) > Is there any way to get the center of gravity of a volume or surface? > No,

Re: [Gmsh] Visualising point data imported from MED files

2018-05-18 Thread Tomasz Koziara
Indeed, thank you, it worked:) Tomek On 18 May 2018 at 14:42, Christophe Geuzaine wrote: > > Your file is almost correct: you just need to fix the node indices in the > point elements (you start referencing nodes at index 0, while the nodes > actually start at 1). > > (I have patched Gmsh to not

Re: [Gmsh] Surface mesh for 3D solids

2018-05-18 Thread Jeremy Theler
On Fri, 2018-05-18 at 12:42 +, michael.a...@infineon.com wrote: > Hi Christophe, > > > > it would be indeed a valuable feature if there is a command to reorient > surfaces of volumes > > automatically in a way that the normal is pointing outwards, as it would help > to set the natural