Code Monkey home page Code Monkey logo

Comments (5)

krober10nd avatar krober10nd commented on June 25, 2024 1
However, is there any reason you wrote custom code to use CGAL? Was any functionality missing from the SWIG generated bindings?

I had a lot of difficulty implementing and deploying SWIG and had some prior experience with pybind11.

from oceanmesh.

krober10nd avatar krober10nd commented on June 25, 2024

Hi Soroosh, I didn't finish the CGAL call (in cpp) to support constraining edges in the triangulation. If you're interesting in learning more about that, I can point you in the right direction.

I don't agree that the meshers should just "mesh". For numerical simulation, the user needs to understand how best to construct the model. Besides, this requires a small number of parameter selections inspired by the downstream application.

Anyway, I believe that automation shouldn't result in a loss of knowledge.

from oceanmesh.

SorooshMani-NOAA avatar SorooshMani-NOAA commented on June 25, 2024

Hi Keith, thank you for your response.

I started looking into using CGAL directly too. They have a nice SWIG binding package which covers most of the triangulation and meshing use cases (I still need to try it!).

In any case, I was wondering if oceanmesh already supports constrained triangulation-only use case? In my case there's an algorithm developed by VIMS team that provides optimal node location for river/watershed mesh. I just need a library to triangulate it. I failed to do so with jigsawpy through ocsmesh, so I tried oceanmesh where I was unsuccessful again. So I started looking into CGAL direct use.

If you believe this use case is not something relevant to oceanmesh I can close the ticket.

from oceanmesh.

krober10nd avatar krober10nd commented on June 25, 2024

Soorosh,

oceanmesh uses CGAL to do the Delaunay triangulation already.

What I'm saying is that I did not finish adding the functionality to constrain edges in the triangulation, as noted.

In this folder you can see the existing interface with CGAL.
https://github.com/CHLNDDEV/oceanmesh/tree/master/oceanmesh/cpp

additional code would need to be written to constrain edges.

Anyway, I think meshing rivers would ideally be a supported use-case.

from oceanmesh.

SorooshMani-NOAA avatar SorooshMani-NOAA commented on June 25, 2024

I think we're kind of saying the same thing, but there's a miscommunication:

Anyway, I think meshing rivers would ideally be a supported use-case.

The reason I thought you might not be considering this use case was what you said in the earlier comment that:

I don't agree that the meshers should just "mesh". For numerical simulation, the user needs to understand how best to construct the model. Besides, this requires a small number of parameter selections inspired by the downstream application.

Anyway, I believe that automation shouldn't result in a loss of knowledge.

oceanmesh uses CGAL to do the Delaunay triangulation already.

I know! And actually oceanmesh inspired me to look into using CGAL directly, and it looks like a great library with a lot of functionalities!

In this folder you can see the existing interface with CGAL.
https://github.com/CHLNDDEV/oceanmesh/tree/master/oceanmesh/cpp

additional code would need to be written to constrain edges.

I see that you're just inserting points in the triangulation, but not the constraint edges. So it looks relatively straightforward. However, is there any reason you wrote custom code to use CGAL? Was any functionality missing from the SWIG generated bindings?

from oceanmesh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.