Subject: CGAL users discussion list
List archive
- From: Laurent Rineau <>
- To:
- Subject: Re: [cgal-discuss] Triangulation_2 question
- Date: Wed, 12 Mar 2008 13:35:35 +0100
- Organization: Inria, Sophia Antipolis, FRANCE
On Wednesday 12 March 2008 11:39:49 Boris Kazakov wrote:
> Hi, I'm new to CGAL and I'd like to do the following:
> Create a new Triangulation_2
> Add several points to it(for example, (0,0), (10,0), (10,10),
> (0,10),(5,5))
> Then move central point somewhere and check, weather the
> triangulation remains valid(by calling is_valid() method)
>
> When I am moving central point outside of the box [0,0,10,10] I get the
> following error:
>
> CGAL error: assertion violation!
> Expr: s == LEFT_TURN
> File: /usr/local/include/CGAL/Triangulation_2.h
> Line: 633
>
> Is there a way to disable this assertion violation, so that after
> moving the point is_valid method will return false?
Yes. You can disable all "triangulation related" assertions, by defining the
macro CGAL_TRIANGULATION_NO_ASSERTIONS, that is add the
flag "-DCGAL_TRIANGULATION_NO_ASSERTIONS" to your preprocessing or
compilation flags.
--
Laurent Rineau
INRIA - Sophia Antipolis
BP 93, 2004 Route des Lucioles
06902 Sophia Antipolis Cedex FRANCE
Tel: +33 4 92 38 78 62 (Fax: +33.4.97.15.53.95)
- Triangulation_2 question, Boris Kazakov, 03/12/2008
- Re: [cgal-discuss] Triangulation_2 question, Eric A. Perlman, 03/12/2008
- Re: [cgal-discuss] Triangulation_2 question, Laurent Rineau, 03/12/2008
Archive powered by MHonArc 2.6.16.