CGAL, Cropped voronoi diagram confined in a rectangle

前端 未结 3 1490
鱼传尺愫
鱼传尺愫 2021-02-06 17:38

I\'m using CGAL with Qt to draw Voronoi diagram. I used CGAL::Voronoi_diagram_2since I need the faces. This is the example code:

for         


        
3条回答
  •  走了就别回头了
    2021-02-06 18:40

    I know it's possible to do it with CGAL, but I found a workaround for now. in Qt, QPolygon class has the function to find intersected polygons. Qpolygon::intersected(yourPolygon). this is the results:

提交回复
热议问题