Subject: CGAL users discussion list
List archive
[cgal-discuss] ?????? [cgal-discuss] [Arr_polyline_traits_2] Unhandled precondition
Chronological Thread
- From: "??????????" <>
- To: "cgal-discuss" <>, "cgal-discuss" <>, "cgal-discuss" <>
- Subject: [cgal-discuss] ?????? [cgal-discuss] [Arr_polyline_traits_2] Unhandled precondition
- Date: Wed, 17 Apr 2013 22:15:45 +0800
CGAL????????oFileT << T;????T????????????????txt????????????????????
------------------ ???????? ------------------
??????: "??????????"<>;
????????: 2013??4??17??(??????) ????10:12
??????: "cgal-discuss"; "cgal-discuss";
????: Re: [cgal-discuss] [Arr_polyline_traits_2] Unhandled precondition
CGAL????????????????????????????????????txt????????????????finite_facets_begin()????????????????????????????????
------------------ Original ------------------
From: "Efi Fogel";
Date: 2013??4??17??(??????) ????5:39
To: "cgal-discuss";
Subject: Re: [cgal-discuss] [Arr_polyline_traits_2] Unhandled precondition
I cannot reproduce.
Did you mean something like the following:
This works fine for me.Did you mean something like the following:
Arrangement_2 arr;
Traits_2::X_monotone_curve_2 pi;
Kernel::Segment_2 seg(Point_2(0, 0), Point_2(1, 0));
pi.push_back(seg);
insert(arr, pi);
Traits_2::X_monotone_curve_2 pi;
Kernel::Segment_2 seg(Point_2(0, 0), Point_2(1, 0));
pi.push_back(seg);
insert(arr, pi);
On Mon, Apr 15, 2013 at 6:15 PM, Tapadi <> wrote:
Hello all,
The method CGAL::Arr_polyline_traits_2<SegmentTraits>::Curve_2::push_back
has a precondition: the Curve_2 object has to be non empty. If push_back is
called
while the Curve_2 is empty, it causes a segmentation fault.
I use this configuration:
typedef CGAL::Exact_predicates_exact_constructions_kernel Kernel;
typedef CGAL::Arr_segment_traits_2<Kernel>
Segment_traits;
typedef CGAL::Arr_polyline_traits_2<Segment_traits> Traits;
typedef Traits::Curve_2
Polyline_2;
Does the problem occur only in my case ? Should it be a CGAL::precondition
violation
instead of a segfault?
Anyway, thanks for the work done for the whole Arrangement_2 package. It is
really
helping me a lot.
Best regards,
Hugo Loi
PhD student at Inria - Maverick Team
--
View this message in context: http://cgal-discuss.949826.n4.nabble.com/Arr-polyline-traits-2-Unhandled-precondition-tp4657203.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
--
____ _ ____ _
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/
- [cgal-discuss] ?????? [cgal-discuss] [Arr_polyline_traits_2] Unhandled precondition, ??????????, 04/17/2013
- Re: [cgal-discuss] 回复: [cgal-discuss] [Arr_polyline_traits_2] Unhandled precondition, 杨成林, 04/17/2013
- Re: [cgal-discuss] 回复: [cgal-discuss] [Arr_polyline_traits_2] Unhandled precondition, Andreas Fabri, 04/17/2013
- Re: [cgal-discuss] 回复: [cgal-discuss] [Arr_polyline_traits_2] Unhandled precondition, Jhon Chin, 04/20/2013
- Re: [cgal-discuss] 回复: [cgal-discuss] [Arr_polyline_traits_2] Unhandled precondition, Andreas Fabri, 04/17/2013
- Re: [cgal-discuss] 回复: [cgal-discuss] [Arr_polyline_traits_2] Unhandled precondition, 杨成林, 04/17/2013
Archive powered by MHonArc 2.6.18.