Search code examples
c++meshcgal

How to create a rectangular mesh using cgal?


I am currently trying to create a 2D rod. So its basically a rectangle with length and breadth. Now I want to mesh this rectangle using triangle and squares (or small rectangle).

I was trying to achieve this task using cgal. I know we can do this using CGAL::Constrained_Delaunay_triangulation_2 for generating triangular mesh. But I was trying to find mesh in cgal that could generate square (or rectangle) mesh.


Solution

  • Some maybe interesting pointers: