Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] lloyd optimization mesh 2 assertion failure

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] lloyd optimization mesh 2 assertion failure


Chronological Thread 
  • From: Jane Tournois <>
  • To:
  • Subject: Re: [cgal-discuss] lloyd optimization mesh 2 assertion failure
  • Date: Fri, 23 Feb 2018 10:52:34 +0100
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:qkZEcBL/0RmNxpV/FdmcpTZWNBhigK39O0sv0rFitYgeIvnxwZ3uMQTl6Ol3ixeRBMOHs6kC07KempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffwtFiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLdQgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QLYpUjqg8qhrUgflhjoZOT438G/ZicJ+g6xUrx2juxNxzJXZYJ2WOfdkYq/RYd0XSGhHU81MVyJBGIS8b44XAuQFJ+lYqZfyrEYQoxu5GAmsHuXvyjhJhn/twKY31OYhHhvA3AM+Bd4OrHPUrMjvNKcUVuC1zbLIwC7Mb/xI3jf97ZbHcgw7ofCMU7J/a9beyVUoFwPfjlScs5DqPzSQ1ukUtWWQ8uRuVeWqi2E9qgFxpCCiydsjiobTgoIZ0FfE9T92wIotKt23Vkl7Ydu6H5tMrSGbN4V2Tdk+TGF0vyY60L0HtYSncygNzZQqwQPUZf+fc4WQ7R/uVfydLSpkiH9lYr6yhRm//VK9xuDzVcS4yEtGoy5Ln9XWq3wByxPe5tKJR/dg5EutxCqD2x3V5+pZO047j7DbJIQkwrMolpocr0DDHijulUnrkKOabEAk+u+15+nlbLjqvJqcOJV1igH6K6gundG/AfgiPggJQWib+f6w1Lv98k3lWLlKj/s2nbfFsJ3CKskWp7S1DxJJ3osj8RqyDTir3M4FkXQIL19JYBeHgJLoO1HKLvD4F/C/g1G0nTdp3f/GOKPuDo/RLnjEjbfhZ7B960ldyAoo1t1f6IxbCrYEIP3tRk/xrtzZDhEjPAOo3+bnD89914MEVW2TBa+ZNbvesUWU6eI3P+mMeIgVtS7hJPgq/fHuiWY1lkIcfamywZQXdWu4Hu99LkWCYXvsh88BHn0Qsgo/SuzqklyCXiRJa3a8RaJvrg08XYmpBIOGSoG2i6Gaxw+6GIdXbyZIEAOiC3DtIqeNXfpEVCWPOMlmkydMAbqoTYJnyRazrgn9yqFPIefT/yAEr4Pt3dNp4PfC0xo18GonXIymz2iRQjQszSszTDgs0fUn+B0v+hK4yaF9xsdgO5lW7vJNXB09MMSFneN3DNX/RhjQcN6CVFG8U5OtBjRjFottke9LWF50HpCZtj6GxzCjWeZHmLGMAZEo6LPS1nPtINxsjX3B0ft51gR0co50LWSjw5VH2U3TCorOyRrLzv7scKNFg3WL8W6CyS+JoV0eVxBwF6PIQSJHaw==

Hi Chris,

thanks for your report.

First, I have one question : did you insert the interior constraints before running the mesher (I mean the refinement step), or after?

Can you please send some code and data to help me reproduce the issue? The use case you mention has been tested already, so I would need your data.

Best regards,

Jane.



Le 23/02/2018 à 00:25, Chris Marsh a écrit :
Hi,

I've been successfully meshing a 2D domain with the CDT as per
https://doc.cgal.org/latest/Mesh_2/index.html

I've been using an outer domain constraint, and have now started to add interior constraints (lines that represent rivers that should be not crossed by triangles).

This works as expected.

However, when I enable lloyd optimization I have the following error:

Running 1 Lloyd iterations...
CGAL error: assertion violation!
Expression : do_intersect(line, m_cdt.segment(face->blinding_constraint()))
File       : /usr/local/include/CGAL/Constrained_voronoi_diagram_2.h
Line       : 392
Explanation:
Refer to the bug-reporting instructions at http://www.cgal.org/bug_report.html
libc++abi.dylib: terminating with uncaught exception of type CGAL::Assertion_exception: CGAL ERROR: assertion violation!
Expr: do_intersect(line, m_cdt.segment(face->blinding_constraint()))
File: /usr/local/include/CGAL/Constrained_voronoi_diagram_2.h
Line: 392

When I use the same domain *without* the interior constraints, the lloyd optimization works as expected.

I've been unable to figure out what is going wrong based on this error message and would appreciate any insight

Cheers
Chris

--
Jane Tournois, PhD
R&D Engineer at GeometryFactory
http://www.geometryfactory.com/




Archive powered by MHonArc 2.6.18.

Top of Page