lutraconsulting / MDAL

Mesh Data Abstraction Library
http://www.mdal.xyz/
MIT License
160 stars 50 forks source link

id mesh generator planned ? #110

Closed vcloarec closed 5 years ago

vcloarec commented 5 years ago

Hello, is a mesh generator planned to be realised in MDAL ?

PeterPetrik commented 5 years ago

Hi, what would be the requirements for such generator? What are the inputs? The mesh generation is not a trivial task and such functionality would require quite detailed description of usage and funding.

vcloarec commented 5 years ago

Hello, I have just asked the question because this mesh generator (or rather mesh calculator) is evoked here in “Future developments” : https://www.lutraconsulting.co.uk/blog/2018/10/18/mdal/. But maybe, it means a calculator for the data linked with the mesh, like the raster calculator.

I need a mesh generator for my project based on the QGis API, and to avoid double work, I wanted to know if this work had begun. If not, I have to do the work for my project …

I guess it is not a trivial task, and, now, I am only to think about the method. I don’t want to build a new mesh generator, but use existing code, like Jonathan Richard Shewchuk's Triangle https://www.lutraconsulting.co.uk/blog/2018/10/18/mdal/ or the CGAL library www.cgal.org.

The new QgsMeshLayer in Qgis and MDAL is a great opportunity to manage mesh under GIS environment, and I think it is possible to exploit thats API to have mesh generator tool in GIS environment.

PeterPetrik commented 5 years ago

If you are C++ developer, feel free to start some online doc with your ideas and/or pull request to this repository, I am happy to review it. In case you want to fund the work, please contact info@lutraconsulting.co.uk. Thanks

saberraz commented 5 years ago

@vcloarec in the blog post, we are referring to mesh writer which outputs the result from mesh calculator to a specific format.

Mesh generator is a different topic, as you need to first to create a TIN (as you mentioned) based on some input geometries and then write it a specific format.

vcloarec commented 5 years ago

Thanks for this information. So I will start to work on this mesh generator. If you want, I will feedback about it.