Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] How to attach to mesh together under the same coorodinate?
- Date: Wed, 25 Sep 2019 07:01:20 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:X/Zb1B17zFbJGlaksmDT+DRfVm0co7zxezQtwd8ZsesWK/vxwZ3uMQTl6Ol3ixeRBMOHsqkC0LOd4viocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmTSwbal8IRmrogncstUaipZ+J6gszRfEvmFGcPlMy2NyIlKTkRf85sOu85Nm7i9dpfEv+dNeXKvjZ6g3QqBWAzogM2Au+c3krgLDQheV5nsdSWoZjBxFCBXY4R7gX5fxtiz6tvdh2CSfIMb7Q6w4VSik4qx2ThLjlSUJOCMj8GzPl8J+kqxbrhKiqRJxzYHbb4OaO+ZxcK7GYdMXRnBMUtpNWyFPAI6xaZYEAeobPeZfqonwv1UCowagCga3Huzv0SNIhn7o0q08zu8vFwbG3BYhH9IJrHTfsdH5OqYMXuCyyanH0ynDb+lW2Dn98ofHbgwhofaWXbNwdMbdx1QkGgTejlWUrozlJTKV1uMRs2SB6upgUfmii2Eiqw5rozivwt0ghZXOhoIQ013J8zhyzogyJd29UkF7YNikHYNWty6ALIR5WcciTH9ytCkmzb0GvIa3fCcNyJQgyB7fb+KIf5KU7RLkUeadOTZ4hHR/eLK+nRm+60agyvfkWsao31ZFtC5FnsPLtnAX2Bze7NWMRPhl/kq5xzqDywTe5vtHLE00j6bXNYAtzqMqmpcTv0nPBjH6l1/qgKOLc0gr5Oal5uvib7r4qJ+RNpN7hwTjPqkhgcOzHeE1PRUTU2eB5Oux0bPj8lb7TblUi/A6j7PWvZHHKckeu6G1Hw5Y3Zgl5h2iFTmpys4YkmMCLF9deBKIkYzpO1bWLfD9F/i/glCsnC5lxvDcI7HtG5vNI3jNnbv7crZ97ElcyAU3zd9B/Z5bFrYBIPfrVk/wstzXEAM5PhSqz+r7DNhxzIATVGKVDqOHLq/erEWE6+IhLuWUYY8aojf9K/wr5/70in85nEcQfbKt3ZsQcnC4H/NmI1mDbXrphtcMCmgKvg8kQ+zrjF2OSyJcZ3G3X64k/DE0FJqmDZvfRoCqmLGOwCi7EYdSZmxfF1+MEGzoeJmZW/cXcyKfOdRhkzwBVbi5UYAtzxCutAngy7pmNOXY4CMYtYiwnOVz/PDZwBEu6SRvXYPayHCIV2gyn2USRjZw0ro4ul140l7E0K52hLtTGtVXov9ISQwnLoWP8+svAN/7XkfNf8yCVU29atSgGzA4CNwrkPEUZEMoUe6vhBnYwyunBfcxkKaKA4B8so3R2H38O9xs5X/NyK47nhhsCp9UMWq8h6ljsQ3XL4HMmkSd0a2tcPJPj2b26G6fwD/W7wljWwlqXPCdBC1NVg7ttd38o3j6YfquBLAgaFYTzMeDLu5VcISsgwgdAvjkP9vabiS6nGLiXU/UlIPJV5LjfiAm5AuYEFINyllB8nOPNAx4DSCk8TqHXW5eUGn3akapytFQ7XayT0s61QaPNhQz2L+8+xpTjvuZGaoe
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
- [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.