Subject: CGAL users discussion list
List archive
- From: Efi Fogel <>
- To:
- Subject: Re: [cgal-discuss] overlay of polygon and its raster
- Date: Tue, 2 Aug 2016 12:49:16 +0300
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:bGuTAR2Be9WGH+FasmDT+DRfVm0co7zxezQtwd8ZsegUI/ad9pjvdHbS+e9qxAeQG96Ks7Qb1KGO4+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL2PbrnD61zMOABK3bVMzfbWtXNGNxJznn8mJuLTrKz1SgzS8Zb4gZD6Xli728vcsvI15N6wqwQHIqHYbM85fxGdvOE7B102kvpT4r9Zf9HFbtPslssJBSq7nZL8QTLpCDT1gPXpmytfssEzuQwrHyHwTX2FexhdGAgbC4xz+dpj0uyr+8OF63X/JboXNUbkoVGH6vO9QQxjyhXJfOg==
On Tue, Aug 2, 2016 at 12:39 PM, 郭斌 <> wrote:
Hi guys,Rookie here and now I encounter two problems and turn to you for help.1. Can I raster a polygon (both simple-polygon-2d-type and polygon-with-holes-2d-type) using CGAL? I can realize this myself, but I'm not satisfied with the speed.
Not with CGAL.
2. Suppose I raster my polygon to a M x N grid. For pixel (i,j), I want to get its overlay area with this polygon. I try to create a polygon using the four corner point of each pixel, but the speed is a bit slow even when grid size is 150 x 150 of simple-polygon-2d-type, let alone the polygon-with-holes-2d-type situation.
When you raster the polygon, for each pixel, especially those on the border, you compute the area covered by the polygon. Perhaps OpenGL or OpenCV can help.
Best regards!
- [cgal-discuss] overlay of polygon and its raster, 郭斌, 08/02/2016
- Re: [cgal-discuss] overlay of polygon and its raster, Efi Fogel, 08/02/2016
- Re: [cgal-discuss] overlay of polygon and its raster, 郭斌, 08/04/2016
- Re: [cgal-discuss] overlay of polygon and its raster, Efi Fogel, 08/02/2016
Archive powered by MHonArc 2.6.18.