raster file to mesh

30 views
Skip to first unread message

Ring Zero

unread,
Oct 1, 2015, 4:24:31 PM10/1/15
to deal.II User Group

Sorry for asking dumb questions, but I am sure somebody has already solved the questions I encounter, so apologies in advance.
My question is , how can I turn a raster file to a mesh, no refinement needed.
Thanks a lot.

Jean-Paul Pelteret

unread,
Oct 2, 2015, 2:54:12 AM10/2/15
to deal.II User Group
Can you elaborate on what a raster file is? Is this a point cloud or some type of CAD format?

Ring Zero

unread,
Oct 2, 2015, 7:05:16 AM10/2/15
to deal.II User Group
raster file :
please see the following information:

https://en.wikipedia.org/wiki/Esri_grid
https://en.wikipedia.org/wiki/GIS_file_formats#Raster

thanks a gain.






On Thursday, October 1, 2015 at 10:24:31 PM UTC+2, Ring Zero wrote:

Jean-Paul Pelteret

unread,
Oct 2, 2015, 7:24:23 AM10/2/15
to deal.II User Group
Well, if its in ASCII format then maybe this tutorial could help you?

Wolfgang Bangerth

unread,
Oct 13, 2015, 8:47:37 AM10/13/15
to dea...@googlegroups.com

Ring Zero,
there is no function that already does exactly what you want, but it should
not be very difficult to do. You'd first create a rectangular mesh with all
cells present, using GridGenerator::subdivided_hyper_rectangle.

Then, you'd delete all of those cells you don't want using
GridGenerator::create_triangulation_with_removed_cells.

Of course, if you write a function that reads raster files, we'd be very happy
to put it into the library itself if you contribute it!

Best
W.
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dealii+un...@googlegroups.com
> <mailto:dealii+un...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.


--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@math.tamu.edu
www: http://www.math.tamu.edu/~bangerth/

Reply all
Reply to author
Forward
0 new messages