Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Combinatorial Maps: Getting runtime assertation errors while using marks

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Combinatorial Maps: Getting runtime assertation errors while using marks


Chronological Thread 
  • From: Guillaume Damiand <>
  • To:
  • Subject: Re: [cgal-discuss] Combinatorial Maps: Getting runtime assertation errors while using marks
  • Date: Thu, 26 Feb 2015 08:54:05 +0100

Le 26/02/2015 07:00, Pranav a écrit :
Guillaume Damiand wrote
I cannot compile your code due to the #include "../rply/rply.h"
I have written another small code which does not have that dependency. I
have posted it here
<https://gist.github.com/pranavkantgaur/740a086f06248265a63d#file-autocubelcc-cpp>
. And I am now sewing the 2-cells outside the loop as you suggested.

But now I find that number of dart pairs which can be 2-sewed are different
inside and outside the loop. You can see that in the output print messages.
Could you please suggest why is it so?

Three things:

1) You need to add

if (!cubeLCC.is_marked(segIter2, sewedMark))// not sewed till now


inside the 4th loop.


2) You need to add a test on the geometry in order to sew<2> edges having same extremities.

3) You can simplify your code. Instead of iterating through one dart per 2-cell, then iterating through all the darts of this 2-cell, you can simply iterate through all the darts of the map (both for segIter1 and segIter2).


Guilllaume








--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Combinatorial-Maps-Getting-runtime-assertation-errors-while-using-marks-tp4660525p4660531.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



--
===================================================================
Guillaume DAMIAND

CNRS - LIRIS UMR 5205
Université Claude Bernard
Bâtiment Nautibus (710)
43 Boulevard du 11 Novembre 1918
69622 Villeurbanne Cedex (France)
-------------------------------------------------------------------
Tél: +33 (0)4.72.43.14.34 Fax: +33 (0)4.72.43.15.36
Mail:

Web: http://liris.cnrs.fr/guillaume.damiand/
===================================================================


Attachment: smime.p7s
Description: Signature cryptographique S/MIME




Archive powered by MHonArc 2.6.18.

Top of Page