Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] CGAL::Polygon_mesh_processing::corefine_and_compute_difference(..) unable to calc second time

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] CGAL::Polygon_mesh_processing::corefine_and_compute_difference(..) unable to calc second time


Chronological Thread 
  • From: stiklaz <>
  • To:
  • Subject: Re: [cgal-discuss] CGAL::Polygon_mesh_processing::corefine_and_compute_difference(..) unable to calc second time
  • Date: Thu, 7 May 2020 03:50:42 -0500 (CDT)
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
  • Ironport-phdr: 9a23:oP8E4BIwDiVEJi1IYNmcpTZWNBhigK39O0sv0rFitYgeKvrxwZ3uMQTl6Ol3ixeRBMOHsq8C27Kd6/CocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmTqwbalxIRmqogndqsobipZ+J6gszRfEvmFGcPlMy2NyIlKTkRf85sOu85Nm7i9dpfEv+dNeXKvjZ6g3QqBWAzogM2Au+c3krgLDQheV5nsdSWoZjBxFCBXY4R7gX5fxtiz6tvdh2CSfIMb7Q6w4VSik4qx2ThLjlSUJOCMj8GzPhMJ+jLxVrhGjqBxx3oDbb52aOvVlc6PBf94WWXZNUtpNWyBfBI63cosBD/AGPeZdt4T9vEcOrRq9BQmoHuzuyyJDi3jt3a0m0uQhEgXG0xYhHt8Vv3TUqc/6NKYWUeyv0KbIyjDDYupQ1Dzg54fGbgovruuQXbJsb8XR008vGhvbgluet4HoPjCY2vkTv2SF7OdtWuyihmAlpg1srDWi29shhInGi4wa1l3K9Tl0zoYrKNC3SUN2fd2pHYVRuiyUMYZ9X80sQ2ZtuCkgy70Gv4a2czQFyJs9wx7TcfuHc5KH4h77UuaeOyx3i2lheL2hnRq97U+gyuj6W8Kp01hKtjJInsTIu30JzRDe5MuKRuF+80qgwzqC1gHe5+dZKk4uj6XbMYQuwrsom5oTr0vDGij2lV3wjKKZbEkk/PKn5P/8bbXiuJCQLZN7igb7Mqg2m8y/B/o3MhQWUmSG/emx0Kfv8EP6TblQjfA7k7PVvZHbKMgDo662GQ5V0oIt6xalCDem1cwVnWIbLFJEexKHi5LmOlDVLfD3CPewmVWskDNxy//aOb3hB43BLmLfn7f5YbZ990lcxRIvwtBQ/Z1UDqgNL+/yWk/qqNPYEwQ5Mxevzub8CNR905seVniVDq+YNqPSq16I6fg1L+mCfo9G8Ar6fvMq7vqrgX4ikkIGZoGo24EWYTa2BKdIOUKcNGHwg9QFGHVC6hEiTe/ugU+qXjtaZnL0VKU5sGJoQLm6BJvOE9j+yIeK2z22S8UPNzJ2T2uUGHKtTL2qHvIFaSacOMhky2VWWr2oSotn3har5lSjl+hXa9HM8yhdjqrNkcBv7rSKxx43/D1wSc+a1jPVFjwmriYzXzYzmZtHjwl9x1OEiPUqhaAeE9VZ7fdEFAw9MMyFwg==

Sebastien Loriot (GeometryFactory) wrote
> Two solutions:
> 1) you know that mesh_end1 and mesh_end2 are disjoint, you can call
> mesh_end1.join(mesh_end2) as in the attached example and do only one
> difference operation.
>
> 2) you have more operations to do and you want to use an exact vertex
> point map to avoid issues. The following example shows how to create
> an exact vertex point map that also maintains the rounded version:
>
> https://doc.cgal.org/latest/Polygon_mesh_processing/Polygon_mesh_processing_2corefinement_consecutive_bool_op_8cpp-example.html
>
> Note that in your case your input was valid but if you have some
> non-manifold edges in the output no result can be computed with
> the current version of the code.

Thank you!

I have tried both solutions and both works and gives visually the same
result.
Result mesh looks almost good, but i get some almost zero depth parts:
mesh.png <http://cgal-discuss.949826.n4.nabble.com/file/t376212/mesh.png>
Maybe there is some util to remove such parts?

Also even with exact vertex point map solution the result mesh has some self
intersections and remove_self_intersections(..) makes the result mesh look
even worse.




--
Sent from: http://cgal-discuss.949826.n4.nabble.com/



Archive powered by MHonArc 2.6.18.

Top of Page