From: Amneet B. <mai...@gm...> - 2018-06-08 18:41:27
|
John looks like this is what I need. I following the script given on http://libmesh.github.io/doxygen/classlibMesh_1_1MatlabIO.html filename = 'geometry.xda'; fid = fopen(filename, 'w'); fprintf(fid, '%d %d', length(p), length(t)); fprintf(fid, '%f %f', p); fprintf(fid, '%d %d %d %d', t); fclose(fid); Want to make sure that there should be *NO *new lines in the ASCII file as the above MATLAB script shows? On Fri, Jun 8, 2018 at 10:04 AM John Peterson <jwp...@gm...> wrote: > > > On Fri, Jun 8, 2018 at 9:57 AM, Amneet Bhalla <mai...@gm...> > wrote: > >> Hi Folks, >> >> Is it possible to use DistMesh with libMesh? If so, is there an example >> code? >> I want to use DistMesh as it generates very symmetric (well shaped) >> triangulation, which is important for an application that I am >> considering. >> >> http://persson.berkeley.edu/distmesh/ > > > > Depending on the distmesh output format, you may be able to adapt the very > simplistic MatlabIO reader to work for you... > > -- > John > -- --Amneet |