Subject: CGAL users discussion list
List archive
- From: Shrabani Ghosh <>
- To:
- Subject: Re: [cgal-discuss] How to attach to mesh together under the same coorodinate?
- Date: Wed, 25 Sep 2019 01:34:56 -0400
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:3OXp6x0jQiUsAthFsmDT+DRfVm0co7zxezQtwd8ZseIRI/ad9pjvdHbS+e9qxAeQG9mCsLQf0qGH4+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglVijexe71/IAi5oQjVtcQdnJdvJLs2xhbVuHVDZv5YxXlvJVKdnhb84tm/8Zt++ClOuPwv6tBNX7zic6s3UbJXAjImM3so5MLwrhnMURGP5noHXWoIlBdDHhXI4wv7Xpf1tSv6q/Z91SyHNsD4Ubw4RTKv5LptRRT1iikIKiQ5/XnYhcx+jq1VoByvqR9izYDKfI6YL+Bxcr/HcN4AWWZNQsRcWipcCY28dYsPCO8BMP5FoYn9vVsBtwCxChOqBOPu1zRGh3/23aoh0+QhDArL2xcgH8gVv3TSttn1O6cSUeeuzKnIyTjOa+hb2Tj46IfScxAhpeuAUq53ccrU0EQiER7OgFuXqYzgJTyV1+INvnCd7+V6Tu2gkGonpB9rrjezwccsj5HFho0SylDD+iV5xJg6KcekR058ZN6oCJpQtyeAN4t3WMwuWW9ouDwixrIatp60ZiwKxI4gxx7FZPyKdZWD7BH7VOuJPzt0mHZodKi8ihuy60Ss1PPwWtSu3FtFrCdIlMTHuGoX2BzJ8MeHT+Nw/ke/1jaL0ADe8uRELlo1larfMpIgzKQwmocKvUTNESL7ml/6jKCRdkUj9eio7/robq/6qZ+bMo94kgD+MqIwlcyjGek0LBQCUmyB9em/1LDv51P1TKtXgvEsnaTUsojWJcEBqa64Bw9V3Jwj6xG6Dzq+y9QYh2IILFRfdBKIj4jpPErOIPD8APq7mFmsnzJryOrHPr3lGJnCMn/DkLL5cbZn90Fc0BYzzcxY559MFr4BL+j8WkvouNPFDx85KBC7w/v8CNVmzY4eQmKOAqqBMKzIq1OI5+QvI/ONZIAPojr9JeIltLbTi2QkkwodYbWxxslQL2upG+xvZUSfe3vlxNkbVnwbuxI3C+3shlrFWjFaYzO+Xrk3+yogW76hWIzMT4TojL2a1zqgBbVXYHpHAxaCCyTGbYKBDswMciuYK8lg2hMEUqOhA9s6zxuo8gD6zKFnf7v89SgRtJal399wsb6A3Sou/CB5WpzOm1qGSHt5yztRFm0GmZtnqEk48W+tlK1xgvhWD9tWvqobXQIzNJqaxOt/WYmrB1DxO+yRQVPjee2IRDE8StVrno0Lakd5Xsq411XNg3XsDLgSmLiGQpcz9/CEhiSjF4NG03/DkZIZoRw+WMIWbD+pg6d+807YAIuby0g=
Hi,
Thanks
Thank you for your response. I want to know if it's gonna merge duplicate points and merge duplicate polygons what property_map information will exist for the merged duplicate points?
Let's say, for one model property_map name is "bone" for vertices and for another "hole" for vertices. So what will be the property_map value for the merged vertices?
And how can I keep both meshes in the same soup? Just one after another? Like this?
CGAL::Polygon_mesh_processing::orient_polygon_soup(points1, polygons1);
Polyhedron mesh1;
CGAL::Polygon_mesh_processing::polygon_soup_to_polygon_mesh(points1, polygons1, mesh1);
CGAL::Polygon_mesh_processing::orient_polygon_soup(points, polygons2);
Polyhedron mesh2;
CGAL::Polygon_mesh_processing::polygon_soup_to_polygon_mesh(points2, polygons2, mesh2);
Shrabani Ghosh
I think you are not using the right tool for what you want to achieve.
Your 2 meshes are perfectly aligned on the same grid.
If you want to union them, simply sort all the points, assign them an id
and remove duplicated faces.
I think, this can be done directly with the polygon soup repairing tools
of Polygon mesh processing:
https://doc.cgal.org/latest/Polygon_mesh_processing/index.html#title40
Put you two meshes in the same soup, merge duplicate points, remove
isolated points and merge duplicate polygon.
Then a call to orient_polygon_soup will duplicate non-manifold edges.
Also you might want to have a look at the Mesh_3 package that is able
to mesh image with multiple domains.
Sebastien.
On 9/24/19 7:32 PM, Shrabani Ghosh wrote:
> Hi Sebastien,
>
> I tried with Nef_3 polyhedron on your reference. I wanted to do the
> union operation. But after some time, I am seeing it showing "killed".
> what could be the reason for this. I am attaching the files here. Could
> you please look into it?
> colored_bone_MMM.off
> <https://drive.google.com/file/d/1AMRGNIzMYGqwPlFn3jCbDr4nJ3fhDl7a/view?usp=drive_web>
> colored_hole_MMM.off
> <https://drive.google.com/file/d/1bnqgJ-cPpZnaup0bQPxC3V6D0UW8QK_S/view?usp=drive_web>
>
> Regards
> Shrabani Ghosh
>
> On Fri, Sep 20, 2019 at 4:39 AM Sebastien Loriot (GeometryFactory)
> < <mailto:>> wrote:
>
> From your description it seems that you are interested in doing
> Boolean
> operations on triangle meshes.
>
> The Polygon Mesh Processing package provide such a functionality for
> manifold objects:
>
> https://doc.cgal.org/latest/Polygon_mesh_processing/index.html#title12
>
> The more general Nef_3 package provides operations for general meshes:
> https://doc.cgal.org/latest/Nef_3/index.html
>
> Sebastien.
>
> On 9/12/19 11:58 PM, Shrabani Ghosh wrote:
> > Hi,
> >
> > I want to attach two mesh together so that they will be placed
> perfectly
> > under the same coordinates.
> >
> > Like these are two meshes.
> > <http://cgal-discuss.949826.n4.nabble.com/file/t376134/28.png>
> > <http://cgal-discuss.949826.n4.nabble.com/file/t376134/29.png>
> >
> > After they will be attached together, they should be looked like
> this.
> >
> > <http://cgal-discuss.949826.n4.nabble.com/file/t376134/30.png>
> >
> >
> >
> > --
> > Sent from: http://cgal-discuss.949826.n4.nabble.com/
> >
>
> --
> 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] How to attach to mesh together under the same coorodinate?, Shrabani Ghosh, 09/12/2019
- Re: [cgal-discuss] How to attach to mesh together under the same coorodinate?, Sebastien Loriot (GeometryFactory), 09/20/2019
- Re: [cgal-discuss] How to attach to mesh together under the same coorodinate?, Shrabani Ghosh, 09/24/2019
- Re: [cgal-discuss] How to attach to mesh together under the same coorodinate?, Sebastien Loriot (GeometryFactory), 09/25/2019
- Re: [cgal-discuss] How to attach to mesh together under the same coorodinate?, Shrabani Ghosh, 09/25/2019
- Re: [cgal-discuss] How to attach to mesh together under the same coorodinate?, Sebastien Loriot (GeometryFactory), 09/25/2019
- Re: [cgal-discuss] How to attach to mesh together under the same coorodinate?, Shrabani Ghosh, 09/26/2019
- Re: [cgal-discuss] How to attach to mesh together under the same coorodinate?, Sebastien Loriot (GeometryFactory), 09/25/2019
- Re: [cgal-discuss] How to attach to mesh together under the same coorodinate?, Shrabani Ghosh, 09/25/2019
- Re: [cgal-discuss] How to attach to mesh together under the same coorodinate?, Sebastien Loriot (GeometryFactory), 09/25/2019
- Re: [cgal-discuss] How to attach to mesh together under the same coorodinate?, Shrabani Ghosh, 09/24/2019
- Re: [cgal-discuss] How to attach to mesh together under the same coorodinate?, Sebastien Loriot (GeometryFactory), 09/20/2019
Archive powered by MHonArc 2.6.18.