Subject: CGAL users discussion list
List archive
- From: Eric Berberich <>
- To:
- Subject: Re: [cgal-discuss] Error while trying to create arrangment
- Date: Mon, 02 Feb 2009 12:17:28 +0200
muhibur wrote:
Hi,
Here is the relevant portion of the code. Here "curves" is a vector of
pointers to a structure "Projected_Curve", each of which contains the
description of a curve to be inserted into the arrangement.
void insert_into_arrangement()
{
int i,size;
Rational R, S, T, U, V, W;
std::list<Conic_arc_2> arcs;
for(i=0;i<curves.size();i++)
{
Projected_Curve * pc = curves[i];
R = pc->R;
S = pc->S;
T = pc->T;
U = pc->U;
V = pc->V;
W = pc->W;
Conic_arc_2 c = Conic_arc_2(R,S,T,U,V,W);
arcs.push_back(c);
}
insert_curves(arr, arcs.begin(), arcs.end());
}
The curve data I mentioned in my last mail was output using <<. What I
outputted was the r,s,t,u,v,w attributes from the structure
"Projected_Curve". These are the 'double' versions of R,S,T ...
The error does not occur in the line "Conic_arc_2 c =
Conic_arc_2(R,S,T,U,V,W);" but in the insert_curves routine. The includes
and typedefs are exactly same as the example conic.cpp provided in the CGAL
distribution.
Thanks,
Muhib
I am sorry, your mail had a similar subject than another thread, so I missed it. Thanks for the details. I have been able to reproduce the error - I'll next try to find the problem - will get back to you soon.
eriC
- Re: [cgal-discuss] Error while trying to create arrangment, Eric Berberich, 02/02/2009
- Re: [cgal-discuss] Error while trying to create arrangment, Eric Berberich, 02/02/2009
Archive powered by MHonArc 2.6.16.