Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Poygon mesh creation with PMP
- Date: Mon, 20 Aug 2018 08:38:37 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:ccBjrh/5ZGhC+f9uRHKM819IXTAuvvDOBiVQ1KB20u4cTK2v8tzYMVDF4r011RmVBduds6oMotGVmpioYXYH75eFvSJKW713fDhBt/8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1Ifn+FpLPg8it2O2+55zebx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTFUACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMMvrRr42RDui9b9mRgL2hicJNzA382/ZhcJ/g61ZvB2vqAdyw5LXbYyPKPZyYq3QcNEcSGFcXshRTStBAoakYocBEuQOI/1XoJPmp1sSrBuxGw+sD/7pxD9PnH/23Ko60/g8Gg3C3QIvAdUOsHHKo9XpLqcTUeC7w7PUwjXfaPNWwzf85I3Gfhs8pvyMRrZwcc3LyUkuEAPFkk+cqYnhPz6O2eQNtnKU7+tkVe61l2EnrARxryGpy8wxhIfJgYcVxUrF9SV/2Is1JNu4SFR6YdG+CpdQuTuaO5N5QsMjX2FouDs6xaYctZGneygKzZIqzAPcZfyfa4WF4B3uWPyMLTtmhH9pYrGyiwio/UWv1OHwTsu53VVQoiZbndTBt2oB2wHX58WJUPdw/Ees1DCS3A7J8O5EO1o7la/DJp4h3LEwkp0TvFzGHiDsmUX2iLaad0sh+uS08ujnbLrrqoGGO497jQH+NasumsihDugiLgcOWG2b9fy91L3l40L5XK1Hg/85n6XDrZzWO8QWqrS6DgNLyIou5AizAy+j0NsCnHkHKFxFeAiAj4jsI1zOO/T4DfClg1Stlzdr2+rKPrjlApjWIXjDla3ufbd560JG1AUzytVf64pOCr4dOPLzRlPxtNvAAxAlPAy72eLnBMxg2YMfQmKAHrKZMLjJsVKT/eIuI+yMZJcPtzrnKvgl4eTujX4jllMHc6mpx8hfVXajA/4zI1mFeWG+xZAaAGISt0w/SvbrgRuMS3lIdnOqVuU94D88T4mpBIOGSoG2i6Gax3SHGchdaWlCT1yNCnz1bJ6sWvEWaSvULNUyvCYDUO3rcIIr3AqytQL8g55gNOvT5mVYmp/k0dVp/fz9nBou8iZlTo7Vh3qJSHt1mX9OQjse06V2oEg7wVCGh/sry8dEHMBesqsaGjwxMoTRmrQjWoLCHznZd9LMc26IB9CvADU/VNU0moZcbEN0GtHkhRfGjXPzX+0l0oeTDZlxyZrymmDrLp8kmXnD3aglyVIhR5kXbDD0tutE7wHWQrXxvQCZmqKtL/lO2SfM8CKcyDLLsh0CFgF3VqrBUDYUYU6E9dk=
Orient polygon soup will duplicate vertices when some non-manifold situations are encountered.
polygon_soup_to_polygon_mesh() creates a mesh out of a correctly oriented soup representing a manifold mesh.
The merging of "duplicated" vertices can be done using stitching.
Right now we do nothing for non-manifold situtations but we have
some pull-request that will improve it.
Sebastien.
On 08/16/2018 11:06 PM,
wrote:
I see, thanks for the clarification. After merging the duplicated vertices the non-manifold edges become evident. Incidentally, I though the input polygon soup could be represented redundantly by storing an instance of a vertex in each incident triangle, and that merging the vertices would be done by polygon_soup_to_polygon_mesh(). So from my understanding, this function "only" takes care of building the data structure and of explicitly setting the adjacency relations between its elements - correct?
Claudio
On Thu, Aug 16, 2018 at 12:12 PM Sebastien Loriot (GeometryFactory) < <mailto:>> wrote:
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,
<mailto:>
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:>
<mailto:
<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:>
>
<mailto:
<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
>
>
-- You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [cgal-discuss] Poygon mesh creation with PMP, mura . cld, 08/14/2018
- Re: [cgal-discuss] Poygon mesh creation with PMP, Sebastien Loriot (GeometryFactory), 08/15/2018
- Re: [cgal-discuss] Poygon mesh creation with PMP, mura . cld, 08/15/2018
- Re: [cgal-discuss] Poygon mesh creation with PMP, Sebastien Loriot (GeometryFactory), 08/16/2018
- Re: [cgal-discuss] Poygon mesh creation with PMP, mura . cld, 08/16/2018
- Re: [cgal-discuss] Poygon mesh creation with PMP, Sebastien Loriot (GeometryFactory), 08/20/2018
- Re: [cgal-discuss] Poygon mesh creation with PMP, mura . cld, 08/16/2018
- Re: [cgal-discuss] Poygon mesh creation with PMP, Sebastien Loriot (GeometryFactory), 08/16/2018
- Re: [cgal-discuss] Poygon mesh creation with PMP, mura . cld, 08/15/2018
- Re: [cgal-discuss] Poygon mesh creation with PMP, Sebastien Loriot (GeometryFactory), 08/15/2018
Archive powered by MHonArc 2.6.18.