[Gmsh] 1d line elements from picture

Jose Paulo Moitinho de Almeida moitinho at civil.ist.utl.pt
Mon Mar 14 18:49:13 CET 2011


On Monday 14 March 2011, Abushaikha, Ahmed wrote:
> Hello,
> 
> Thanks you a lot for this great software that helps alot during my PhD.
> 
> I would like to create  1D line elements from a black and white picture.
> where the black lines where i would like the lines to be created and then
> the inside white area will be meshed using 2D elements later on when 1D
> lines are drawn. Please see picture attached.
> 
> regards,
> A

You should try "autotrace -centerline" 

Just wonder which output is more appropriate for gmsh? DXF?

>    -output-format format
>           Employ the specified output format, where format is one of:
>           ai(Adobe Illustrator)
>           cgm(Computer Graphics Metafile)
>           dr2d(IFF DR2D format, used almost exclusively on Amiga platforms)
>           dxf(AutoCAD Drawing Exchange format)
>           emf(Windows Enhanced Metafile format)
>           epd(Encapsulated Vectorial Graphics format)
>           eps(Encapsulated PostScript)
>           er(Elastic Reality Shape format)
>           fig(xfig (1) 3.2)
>           mif(FrameMaker MIF format)
>           pdf(Portable Data Format)
>           p2e(pstoedit (1) frontend)
>           sk(Sketch)
>           svg(Scalable Vector Graphics)
>           swf(Shockwave Flash 3)
> 

Regards

ZP