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: Tue, 27 Feb 2018 12:05:02 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:I+pkaxBKvkVcY/mJf2DHUyQJP3N1i/DPJgcQr6AfoPdwSPX5osbcNUDSrc9gkEXOFd2Cra4c0KyO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglUijexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Xymp4aV2Rx/ykCoJKiA38G/XhMJzgqxUrh2uqB5jzIPPeo6ZKOBzc7nBcd4UR2dMWNtaWSxbAoO7aosCF+4PMvxer4bjulAAsxy+BRS2BOPpzT9Ih2T21rA93uQjCw7G2hIvE8gSsHTTsdX1LqESUee0zKnT1jjDYO1Z2TD46IfWbhAhu/GNXbxqfsXN1UkvEBnFj1WKpYP5ODOV0/0Avm6G5ORuUuKvjnQoqwB3ojW3wMcjkJLGiZkRyl/a7yl23IE1JdigRE50Zd6kF4BfuDueN4dvWcMtX2BotDw9yr0ctp63ZDQFyJs9yB7bcfCHdJKI4h37WOaePzh4g3dld6yjhxao8UmgxPfzWdWo0FZNtCpEksPAuWwK1xzW7MWMV/hz/l+51DqS1Q3e6ftILE46mKbBJJMsw6Q8mocPvUjbAyP7nEv7gLWLekk49eWk8erqbqj8qpOBK4N4lwfzObk0lMOlG+Q3KA0OUnCb+eui0L3j+lX0TbpQgv0zlanUvorWJcEBqa64Bw9Zy4Ej6wujDzu819QYg3kHIEhDeB2Zk4jlI1DOIPbmAvejm1mgjTVmyvPcMrDvDJjBNHfOnbb7cbpg90JQ0A8zwspe55JQBLEBOvXzWkrpudzaFBA5NRK7z/z7CNV6y4MeQ2SPAqiYMKPJqlKI6fwgI+6JZIALpDb9Mfgk5/D0gnAlhV8derOp3JsNZH+kGfRmJl2VYWDwjdcZDWcKog0+QfT2h12NSzFTY2++UL895jEgFI2mEJzDRpu2jbya3Ca7G4VWaXpcBlCNF3fobYSEVO0WZCKcOM8y2gADALOuQotk2RC1vxLh0JJmKPDV82sWr8HNzt9wss/akxx6yTtpFcKa0nrFG2N9mG5OWzgrxqZ4oFdVxVqE1KVkme1WHNdP4OlYFAw9MMiPnKRBF9nuV1eZLZ+yQ1G8T4D+WGBjfpcK29YLJn1FNZCnhxHH0TCtBuVMxbOGA5k57rjN0XH6O8Fn2jDN06xz1wB6EPsKDnWvg+tEzyaWH5TAyRzLmKutcKkAxj/D/WyfynCf+kpfVVwoCPiXbTUkfkLT6O/ByAbCQrupU+h1bk1EzpXEL6JLbpjukEkAQ+njftLTfzDplg==

Hi Chris,

I understand what you mean.
Actually, your input mesh is pretty coarse close to constraints, so the Lloyd optimization cannot do much about it.

You can have a look at this paper for more details on our algorithm :
www.global-sci.org/nmtma/volumes/v3n2/pdf/32-212.pdf

The triangles that are called "blind" (meaning that their circumcenter is on the other side of a constrained edge) can hardly have a good shape without refining the associated constrained edge.
See for example Figure 5, where such triangles are colored.

If you want better shaped triangles close to constrained edges, they should be refined using the Delaunay_mesh_size_criteria_2 [1].

Also note that the Lloyd smoothing algorithm is enriched with a sizing field that locally preserves the mesh density through iterations. So, the vertices that are close to constraints should remain close to constraints. It avoids creating needle-shaped triangles next to constraints.

Best regards,

Jane.


[1] https://doc.cgal.org/latest/Mesh_2/classCGAL_1_1Delaunay__mesh__size__criteria__2.html


Le 26/02/2018 à 18:06, chrism a écrit :
Ah, sorry. Please find the comparison as presented above with the constraint
shown in red.

<http://cgal-discuss.949826.n4.nabble.com/file/t375307/lloyd.png> 

As I cannot attach a large image, it may be difficult to see exactly? If so,
I have paraview compatible VTU files as well as the triangulation and
constraint in ESRI shape files (shp) to load into a GIS, such as qGIS.



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


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



Archive powered by MHonArc 2.6.18.

Top of Page