Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] AW: CGAL error: assertion violation!

Subject: CGAL users discussion list

List archive

[cgal-discuss] AW: CGAL error: assertion violation!


Chronological Thread 
  • From: Gärtner Bernd <>
  • To: "Gita Das" <>
  • Cc: <>
  • Subject: [cgal-discuss] AW: CGAL error: assertion violation!
  • Date: Mon, 27 Oct 2008 09:23:24 +0100

Since you are using an exact number type, this could maybe be an actal bug in
CGAL. Please proceed in the usual way: try to come up with a small running
program that shows the problem and send it to me, for example. I can forward
it to the person in charge.

Best,
Bernd.

________________________________

Von: Gita Das
[mailto:]
Gesendet: Mo 27.10.2008 03:28
An: Gärtner Bernd
Cc:

Betreff: Re:CGAL error: assertion violation!



Hi Bernd,
Thank you for your response.

For Number_type I tried both CGAL::Gmpq and
CGAL::Quotient<CGAL::MP_Float> but didn't get any luck.
Please let me know if you have any other idea.

Regards,
Gita



>If Number_type happens to be float or double, please read the FAQ item
at >http://www.cgal.org/FAQ.html#inexact_NT.

>Best,
>Bernd.

> Hallo CGAL Users,
>
> I was trying to use the CGAL library for boolean operations on 2D
> polygons.Both polygons (P and Q) are simple, CCW and the computed
> areas look
> fine. However, while using intersection I get the following error:
>
> "CGAL error: assertion violation!
> Expr: s != ZERO
> File:
> /home/gitad/Projects/ITK/practice/carotidmesh/trunk/CGAL-
> Boolean/CGAL-3.3.1/include/CGAL/predicates/kernel_ftC2.h
> Line: 140
> terminate called after throwing an instance of 'std::logic_error'
> what(): basic_string::_S_construct NULL not valid
> Aborted"
>
> A portion of my code:
>
> typedef CGAL::Cartesian<Number_type> Kernel;
> ......
> Polygon_set_2 S;
> S.insert (P);
> S.intersection (Q);
>
>
> Any help would be greatly appreciated.
> --
> Gita Das, PhD
> Department of Medicine (Neurosciences)
> Monash University
> Australia
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss
>





Archive powered by MHonArc 2.6.16.

Top of Page