Subject: CGAL users discussion list
List archive
- From: Bruce Duncan <>
- To:
- Subject: Re: [cgal-discuss] Assertion: CGAL/Interval_nt.h:88: !(i>s)
- Date: Tue, 5 Oct 2010 17:31:44 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:organization:to:subject:date:user-agent:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; b=htZHG3xVqBzySq6W3w28Jg1d9XocrFoU+IIz0xuEZTrnl35X3MsOtC64ChvEI19EzY sPY7BxlQ2FlSM5SSuanuL2BU+Wi0yXpitHzFZQNignExeVqxbDAIgDKrIYhW9LvxoK80 l5ZfjguEx+6rB1F8rh8VRonO1bdIC67i0mruo=
- Organization: School of Engineering, University of Edinburgh
On Tuesday 05 Oct 2010 14:15:11 Sebastien Loriot (GeometryFactory) wrote:
> Bruce Duncan wrote:
> > On Lunes 09 Agosto 2010 19:43:47 Sylvain Pion escribió:
> >> Le 06/08/10 17:37, Bruce Duncan a écrit :
> >>> Sylvain Pion wrote:
> >>>> Le 06/08/10 14:02, Bruce Duncan a écrit :
> >>>>> For one of the assertions I'm hitting, I've created what I hope is a
> >>>>> small testcase. The code and the output on my machine is attached.
> >>>>
> >>>> The assertion means that an uninitialized variable has been used.
> >>>> And indeed the plane equations in the Polyhedron of CGAL needs manual
> >>>> construction. Seehttp://www.cgal.org/FAQ.html#polyhedron_normals .
> >>>
> >>> I have tried to modify my program to use the Traits class as shown in
> >>> the example program.
> >>>
> >>> I am now having trouble converting this Polyhedron to a Nef_polyhedron,
> >>> which I want to use for the boolean operations. Is this possible?
> >>>
> >>> I haven't attached the compiler output this time, as it's very long.
> >>> Suffice to say it starts with "Nef_3/polyhedron_3_to_nef_3.h:218:
> >>> error: 'class Vector_3' has no member named 'is_degenerate'"
> >>>
> >>> What am I doing wrong?
> >>
> >> I am not well versed enough into the Nef polyhedron to answer.
> >> I hope someone else can follow up. In any case, I advice to send
> >> as much of the error message as possible : I'm not sure it's
> >> possible for anyone to see what's going wrong here.
> >
> > Hi,
> >
> > Sorry for the delay in replying.
> >
> > I have attached my test case and the compiler output. The code compiles
> > if line 20 is changed from Polyhedron_traits_with_normals_3 to just
> > Polyhedron_traits_3.
> >
> > I looked at the difference between CGAL/Polyhedron_traits_3.h and
> > CGAL/Polyhedron_traits_with_normals_3.h. This hunk seemed interesting
> > (line 32):
> >
> > - typedef typename Kernel::Plane_3 Plane_3;
> > + typedef typename Kernel::Vector_3 Plane_3;
> >
> > I changed the code to:
> > typedef typename Kernel::Plane_3 Plane_3;
> > typedef typename Kernel::Vector_3 Vector_3;
> >
> > and it seems to compile. Is this a bug in CGAL? Perhaps the author
> > intended both Plane_3 and Vector_3 to be defined?
> >
> > Thanks,
> > Bruce
>
> Hello Bruce,
>
> I had a look at the code and the problem is in my opinion in
> polyhedron_3_to_nef_3 which assumes that the type Plane defined by the
> polyhedron traits is a of type Plane<K>. I will have a closer look at it
> to find a solution.
>
> Can you use Polyhedron_traits_3 instead?
Hi Sebastien,
Thanks. I may be able to work around the use of plane normals, but it would
be
messy. I will look at this again tomorrow.
My plan is to use the plane normals to sum the properties of facets which are
coplanar, so that they can be passed to another program. Perhaps there is a
better way to group coplanar facets?
Bruce
Attachment:
signature.asc
Description: This is a digitally signed message part.
- Re: [cgal-discuss] Assertion: CGAL/Interval_nt.h:88: !(i>s), Bruce Duncan, 10/04/2010
- Re: [cgal-discuss] Assertion: CGAL/Interval_nt.h:88: !(i>s), Sebastien Loriot (GeometryFactory), 10/05/2010
- Re: [cgal-discuss] Assertion: CGAL/Interval_nt.h:88: !(i>s), Bruce Duncan, 10/05/2010
- Re: [cgal-discuss] Assertion: CGAL/Interval_nt.h:88: !(i>s), Bruce Duncan, 10/08/2010
- Re: [cgal-discuss] Assertion: CGAL/Interval_nt.h:88: !(i>s), Sebastien Loriot (GeometryFactory), 10/11/2010
- Re: [cgal-discuss] Assertion: CGAL/Interval_nt.h:88: !(i>s), Sebastien Loriot (GeometryFactory), 10/05/2010
Archive powered by MHonArc 2.6.16.