Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Poygon mesh creation with PMP

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Poygon mesh creation with PMP


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Poygon mesh creation with PMP
  • Date: Thu, 16 Aug 2018 12:11:48 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:4WvDOBQB6hSJY/iPxCRLzfZQitpsv+yvbD5Q0YIujvd0So/mwa6zYBWN2/xhgRfzUJnB7Loc0qyK6/6mATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfbJ/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4KB3RRLmiioKOSc1/H3Yh8dtiK5WoA6tqxl5zoXJYo+aKeB+c7vAc90ES2pPXsVfWSJPDYyzbYQAE+UPMP1Er4T/vVYCsQeyCAeuCe7p1zRGhmX23ao/0+k5Hw3IwRIvEMkUv3TPsNX1NbkdUeaox6fOyjXDdfJW2TDh6IPVdhwvoO+DXbV1ccXP1UkvDQPEgFWKpoP5IzOV0f4Nsmie4+ZuSOmijHUnqwV2oji1x8csjZXJipgQylDA7ih5z4M1Kse5SE5/e9KrDJxQtySDOoZwX8gsTWZouCMgxb0Hv562ZCkKyJI9xx7ecfOLaYaI4gj7WOaeIDd4mHJleK+kiBqo7Uegzej8W8+p21hJtipIitvBu38X2xDO9MSKSuFx80S/1TqV1w3f9PlILEI3mKbBNZIszb89moAOvUnHECL6gkf7ga+Qe0454Oan8f7nba/jppKEN497lAX+MqM2l8y6G+s4MwwOU3GV+OS5yLHv5EP5TbVUgvEsnanZt5faJcsfpqGnGQNazoEj6xOnAzen1tQXg2UHIUpHdR+IlYTlJk/CLfDiAfq8nVigijdmy+7eMr3kGJrNL3zDkLn7fbZ67k5R0BEzzdRY55JOC7EBJ+7zVlX0tNzcFRI5PAm0zPzmCNV5zI8RRWWPAqqBPKPIrVCI/v4vI/WLZIINpDn9JOIq5/r3gXAkmF8dZrWm3YYMaHCjBflmOEWYYX/0gtgbC2sKvww+TPbriFKYSzJTaWyyDOoB4ComAtemEZvbXdLqx6eQ2T+yWJxQfGFPTF6WVmz5cp2NHPYKZiXVKcBolnkIVKOqVpQ6hi2p4QT1wr4iIuvP8TADrrri0sJ07qvdj0Ic7ztxWo6m3muEVH11k2VAYzgs3adj6QxSx1CG3LRiktJRHsBU/eIIGE9uLprb1e19F5b3XirOe96ITBCtRdDwUmJ5dc4439JbOxU1IN6llB2WgnLzUu0l0oeTDZlxyZrymn34JsJz0XHDjfBzgFwvQ88JPmqj1Pcmq1rjQrXRmkDcrJ6EMLwG1XeUpmiGxGuK+kpfVVwoCPiXbTUkfkLT6O/ByAbCQrupU+l1NwJAzYudL/MPZICzy1pBQ/jnNZLVZGfjw2o=

As is your model is detected as valid surface mesh.
This is because you have many duplicated vertices.
If you merge them (using something like [1] for example)
you will end up with a mesh with only one boundary cycle.
It is not stitch-able because it is would produce a set of non-manifold
edges.

From there, depending on what you want to do with the model, you can
still try to close the model but you'll endup with some
self-intersection.

Sebastien.

[1] https://gist.github.com/sloriot/12f6ba2c5d593b1b0e2e82a07fc82df7

On 08/15/2018 11:44 PM,

wrote:
Hi Sebastien,

thank you for looking into this. I've exported the polygon soup into .off (see attachment) - let me know if you need any further information.

Claudio

On Wed, Aug 15, 2018 at 12:29 PM Sebastien Loriot (GeometryFactory) < <mailto:>> wrote:

You probably have some non-manifold faces in your soup. If this is the
case, it probably needs some clean up. Can you share the input so that
we can give more info?


Sebastien.



On 08/14/2018 10:05 AM,


<mailto:>
wrote:
> Hello,
>
> I'm trying to use the CGAL's PMP package to create a mesh out of a
> polygon soup (extracted from a spatial subdivision structure using a
> min-cut approach). I've usedorient_polygon_soup() and
> polygon_soup_to_polygon_mesh(). A subsequent call to
> is_polygon_soup_a_polygon_mesh() return true, but the mesh
produced is
> not closed. This also creates problems when using other functions
of the
> package, such as
>
> is_outward_oriented()/reverse_face_orientations(). Also using
> stitch_borders did not improve the mesh.
>
> Is this the expected behaviour of the functions?
>
> Thanks,
>
> Claudio
>
>
>

-- You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss





Archive powered by MHonArc 2.6.18.

Top of Page