Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Delaunay_triangulation when loaded from a file has "invalid" set

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Delaunay_triangulation when loaded from a file has "invalid" set


Chronological Thread 
  • From: Renaud GILLON <>
  • To:
  • Subject: Re: [cgal-discuss] Delaunay_triangulation when loaded from a file has "invalid" set
  • Date: Thu, 26 Nov 2020 20:38:10 +0100
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Neutral ; spf=None
  • Ironport-phdr: 9a23:IotdjxMRfAWb/jic6b8l6mtUPXoX/o7sNwtQ0KIMzox0K/34pcbcNUDSrc9gkEXOFd2Cra4d1KyP7vqrADZfqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba5wIRmssAncttcajYR/JqovyBbCv2dFdflRyW50P1yYggzy5t23/J5t8iRQv+wu+stdWqjkfKo2UKJVAi0+P286+MPkux/DTRCS5nQHSWUZjgBIAwne4x7kWJr6rzb3ufB82CmeOs32UKw0VDG/5KplVBPklCEKPCM//WrKiMJ/kbhbrQquqBxxwYHaYI+bOvljcK3DYdwXXnBOUtpLWiFbHo+wc4kCAuwcNuhYtYn9oF4OoAOiCwayAuPg0CJIiWLr1qM70OovFwfI0hU4EdkTt3nUtsv6NKEIXuCo0abE1zrDb/JS2Tf574jIdAssoeqMXL1tb8XRzUgvFx/Fj1mKtYPlODaV2/0LvmOG4OVuSfihhHQ7qwFtvDev3MEsh5HXio8VxV7K9Tl1zZspKdGkSEN1b9GpHZRQuiyGKYZ7Q8wsTW5ntSg11LALu5C1cigXxJg5xxDRa/OJf5SK7xzsUuuaPDl2hHVgeL2lhhay91Ctyuz6Vsmu0VZFtDBJktfWtnwVzBzS6tWIReV5/kegxTaO1xrf5vtYLkAzkKrXM4Uhw74tmZUNtUTDHzP2mUXsgKCKcUUk/+6l4PnkbLX+vpKQKot5hwLkPqgzmcGyA/40PhYKUmSB+emx26Xv8VPlTLhOlPE7kanUvIrHKcgFpaO1GQBY3psl5h2iFTmpys4YkmMCLF9deBKIkYzpO1bWLfDjE/i/mUqsnylxx/zYP7DsDIzBI3jZnLbvY7ly8FdQyAo0zdBE+5JUC7cBIP3pVkDts9zYCwc1Mw2yw+n5FNVwzp4SVGaMD6ODLa/fsl2F6vgxL+SIfoMYuDnwJ+Ag5/H0jH85nVEdfbOu3ZsScH24BOppI0ODbnrxn9gNC2gKvgs6TOzuj12CVyVeZ22yXq0h+D47DIOmDZvDR4y3nLOB2yK7EoVMZm9aElCMDWvod4KcVvgQZyKdOMthniUZWrigUI8uyQyutBThy7d8NerV+igYtYr529Rv5u3Tkwsy9T1uAMiH3WGNVTI8o2UTWjVj3LxjuVcvjRCYwK1girpZE8ZS7rVHSEAhJJvExqt7Dd71HQnOd9PMRFe9Sci9GmIMSMksyf8SZkIoG8m+lguRmG2xEroNnvqKAoY1++TSxT/qNsNlwjHH0qcmyFIpS88KOWy9jbNk7FvuAZXUmXmUh7r/dbgAxDWfsyCY3G+WtQdZVhRxWOPLRzcEd07OpJP44E3FCLShALBiPgpawtOZMfh2bYjiglxCAfviI9/DeHmZmmGqBB/OyKnfQpDtfjAn0SPUFURMvCE32VGgfVwkCyGovm6YAz1qEVXpS1j9/eR6qW+qCEQzylfZPAVay7Op90tN1rSnQPQJ0+dc4Xpzm3BPBF+4munuJZ+Aqg5mJvQOet4n/lpdjzyC8lE7IZGqaqBlnUIfdQsxtETrhU0uW9dw1PMypXZv9zJcbKeR0VdPbTSdhMyiIazbJ23z4AHpYKnTiAuHjISmv5wX4fF9kG3N+RmzHxN+oW5239RR0meNoJ7NCVhKXA==

Yes, sorry I meant "is_valid()".

Here is a example (using GoogleTest macro's) :

// Create an empty mesh
Triangulation raw_mesh(nbr_dimensions);

// Define the input file
auto filename_input = "delaunay_mesh.txt";
std::ifstream s_in;
s_in.open(filename_input);

// Reload the mesh
s_in >> raw_mesh ;

// Strange fact !
ASSERT_FALSE(raw_mesh.is_valid());

// Clean up by copying to a new mesh
Triangulation this_mesh(raw_mesh);

// Funny work-around for the strange fact.
ASSERT_TRUE(this_mesh.is_valid());
This test succeeds, meaning the raw_mesh.is_valid() returns false, the this_mesh.is_valid() returns true.

The mesh is a simple tetraedron in 3D using the origin and all three unit vectors, created using the stream out operators.

I will check how to place an example in Github.


Renaud
Le jeu. 26 nov. 2020 à 19:36, Marc Glisse <> a écrit :
On Thu, 26 Nov 2020, Renaud GILLON wrote:

> Using the Delaunay_triangulation class with Epick_d kernel, we noticed that
> after streaming the triangulation to a (text) file, closing the file, the
> loading that file back into a new Delaunay_triangulatin object, the
> "invalid" property is set to "true".
>
> When trying to call the locate() function on the triangulation initialized
> from the file, we get "trouble" (error messages). However if we make a copy
> to a third triangulation object using a copy constructor, then the new
> triangulation does not have "invalid" set and it works properly.
>
> Is this a known issue ? Or should I report it as a bug with more detail ?

Opening an issue on github with a simple reproducer would be nice, thanks.
I don't know what "invalid" property you are talking about (grep doesn't
find the string "invalid" in this module).

--
Marc Glisse

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss




--
Renaud GILLON

SYDELITY
"Scaleable Virtual Prototyping"

Mobile : +32 (0)495 27 65 65
E-mail : 
Web:     www.sydelity.com 



Archive powered by MHonArc 2.6.19+.

Top of Page