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:
  • To:
  • Subject: Re: [cgal-discuss] Poygon mesh creation with PMP
  • Date: Thu, 16 Aug 2018 23:06:17 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:sIZpeBJeNPKwB+PInNmcpTZWNBhigK39O0sv0rFitYgRL/nxwZ3uMQTl6Ol3ixeRBMOHs6wC07KempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffwRFiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLdQgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QLYpUjqg8qhrUgflhygJNzE78G/ZhM9+gr9Frh29vBFw2ZLYbZuPOfZiYq/Qf9UXTndBUMZLUCxBB5uxb44SD+obJ+lUtZXyp18TohalCgmsAfngyj5MhnPswaI61OEhHAfb1wIuGNIOtW7brNTzNKoKUOC1yrPIzTTZYP9M1zf98pDEch8gofGQXbJwbNHexVMzGAPCi1Wdr5HuMTCN1ukVsWWW4PBsWf+xh2MnsQ18oSajyt0jh4XUgI8e10rK+j9jwIkvIN21UE57bsCgEJtXryyaMpF5QsImQ21xtic6z6EKtYe1fCUF1Zgr3RHfa/uAc4iH5hLsSvydLit/hHJgYL6/hhCy/la8yuDkVMS530xGojdbntTMrHwA1ALf5tKIR/dg5kuh3CyA1wHX6uFKO0A0kq/bJoYkwr4tjJocq17PETPymErrl6KWeUAk9fKp6+TjeLnpupicN4pshgHkLqsugtC/Afg/MgUWQ2eb9v6z1Ln68ULkQbVKleE5krTCsJDBPskbva64AwpN0ok58Rq/DjGm0M4ZnXYdNl5FdgiH3MDUPUrTKqX4EeunmAbr1yx6wujPeLznGJTEaHbZ16zweK50rE9axg10xt9W49dYC6oKPenoCXP24dfXBxt8Pw2vyPv8E/180JkfUCSBGPy3KqTX5FqV/OtpKO2ATIAQsTf5bfMi4q29xUQlkEMQKPH6laAcb2q1S6w/chepJEH0i9JEKl8k+w83TejkklqHCGcBaHO7XqZ67TY+Wtv/UdXzA7u1ibnE5x+VW4VMbzkfWF+JGHbsMY6DXqVUMX/AEopaijUBEIOZZcoh2BWp7lKozrNmKq/L/3Vdu866ktdy4OLXmFc58jkmV8k=

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) <> 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, 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
>
>

--
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