Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Isotropic remeshing failed with is_valid_polygon_mesh()

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Isotropic remeshing failed with is_valid_polygon_mesh()


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Isotropic remeshing failed with is_valid_polygon_mesh()
  • Date: Mon, 7 Sep 2020 06:50:32 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:SpL7PB/flRDBTf9uRHKM819IXTAuvvDOBiVQ1KB+0u0eIJqq85mqBkHD//Il1AaPAdyFrase16GG6ujJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglVhTexe65+IAu5oAnetcQanJZpJ7osxBfOvnZGYfldy3lyJVKUkRb858Ow84Bm/i9Npf8v9NNOXLvjcaggQrNWEDopM2Yu5M32rhbDVheA5mEdUmoNjBVFBRXO4QzgUZfwtiv6sfd92DWfMMbrQ704RSiu4qF2QxDvlSkHKiU58HnJhcNskKJVrhWhpxllzI7VZoGeKf5yc6zZcN8fQ2dKQ8RfWDFbAo6kcoUBEeQBM+ZboYfzqVQBohmxChWjCu701j9FhWX70bEm3+kvEwzL2hErEdIUsHTTqdX4LKkeX/2rw6bT1zrDdO9W2Tbj54jObxsvp/aMXahxccrW1UkkCgfJgFSOpoziOjOayPgNs3Kb7uRgT+2gl3InqwZrojmvw8sghJTCi4UOylDA8iV52oc1JdqkSEJhZN6kFIBdty6fN4RsQ8MiR3tktzo9yr0DoJO2ejUBx5s7yRDFcfOHb5SI7Qz5VOaXOTp1mH1rdbGiihuu80WtxO3xW8iw3VtXrydInNjBu3EJ2hLT5cWKSOVx80ah1zuO1w3f9P1ILEA6mKbGKpMszb89m5wOukrNGS/2nV/5jK6Qdkg85ueo5P7oYrH8qp+bLY90hRnyMqspmsy4DuQ4NhYBU3KH9uS70b3v5Uz5QLNQjv03iKbVqp7aJd4dq6WkAAFVyp4u5wijAzqiytgVnnkKIEhbdB6ZkoTlIV7DLfLgAfuhmVugjCpnyvXYMbH9GJrAK2bPnKv8cbt45UNT0hQ/wcxa6p9WBbwBLu//V0rtu9HWABI2LQm5zujpCNpny4wTXGGCD6uHP67UrFSG/PggI/OWa48QoDv9K+Yq5/rpjXIhnF8SZ6ip3Z8OZHG2BPRqPlyVYXTjj9oDC2sKsQ0+TOvliF2GTzFffWq9X6U55j0jCYKmC5nMRpy1jbCfwCu2Godaa2NGB1yWD3vkaZiIV+0DZS+QOsNhlyYLVbmlS48vzxGuswr6xqJ8LurQ/S0Yr5Pj1N9p5+HJkBEy8Sd5D8uY026XTmF0mnkESCMx3KB6uUB90EuM0bBkg/xEEtxe/+9GUgggOp7Y1uB1FtHyWhndcdeUU1amWc6rASoxT9I0298BeVxxG9SkjhDZ3iqlGaUZl7KRBM98z6THwnKkJ9ph022Uk+46nlw+S41OM3enj+hx7U/IFovRmgKYkaitMq8T1SqI+GaYxneVpxJlVhVtW5nITWxKZlfKtc+roQTZXrq2APImNBFAwIiMMOxRe9jxhBJHQvnkf9/Ramb0l2arDguT3eCwa9/hdGwZmSncE0MZiBs7/HCcNAF4CD3yjXjZCWkkLl/laljw8OR44Fe8VE4z00nKQEBm0rep4A87jPeATOkCn/hM7DwlrC91G0r72tb+BN+Jpg4nd6JZN4BuqGxb3H7U4lQudqerKLpv0wJPKlgljwbVzxxyT754v40ytnpzlVh9LKuZ1BVKcDbKhcmhaI2SEXH7+VWUU4CT31jf1NiM/aJWsaY3rlziuEeiEU9wqiw6gekQ6GOV49DxNCRXUZ/1VRxqpR1zprWffTNkoo2IijtjNq67tjKE0NUsVrMo

Could you check the value returned by CGAL::is_valid_polygon_mesh(my_mesh) called on your mesh before calling
the CGAL function? It might be that the input is not a valid polygon
mesh (non-manifold vertices for example).

Thanks,

Sebastien.



On 9/6/20 6:47 AM, Yaoyu Hu ( via cgal-discuss Mailing List) wrote:
Hi,

I was trying to use CGAL::Polygon_mesh_processing::isotropic_remeshing() to remesh a CGAL::Surface_mesh. However, I got the following error message:

========== Error message begins. ==========

terminate called after throwing an instance of 'CGAL::Assertion_exception'
  what():  CGAL ERROR: assertion violation!
Expr: is_valid_polygon_mesh(mesh_)
File: /home/yaoyu/Libraries/cgal/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Isotropic_remeshing/remesh_impl.h
Line: 1037

========== Error message ends. ==========

I was trying the code listed at https://doc.cgal.org/latest/Polygon_mesh_processing/Polygon_mesh_processing_2isotropic_remeshing_example_8cpp-example.html and I enclosed the source file. I am not sure about the reason why CGAL thinks the Surface_mesh is not a valid polygon mesh.

The input mesh is in PLY format and you could find the file at https://drive.google.com/file/d/1Z9AMfRnbkJGmDuUOc7ZAdMAvbhhhx_Vn/view?usp=sharing

One thing that might be interesting is that if I use the CGAL Polyhedron Demo program to load and do the isotropic remeshing, no errors are encountered.

Any comments are appreciated.

Thank you!

Yaoyu

--
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.19+.

Top of Page