Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] CGAL assertions using Minkowski_sum_3
- Date: Mon, 20 Dec 2010 14:26:11 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=kCyC8B+HO8b413tC3Ub7aSqXxGCvLDGqrWfG2RiyACCT/Awdi6X1vvApE6qYVil+qq P6aLuuqHyIaQ85vnS3t2xXV4+ZW1mKDMoQ/gI0lUUClzGPIufD0vawPEvuc1Eqde0x1/ Ld06+hHwhn2s3Qd/3yphOOE10h5EAboo6dsXY=
J.L.M. wrote:
I have been writing some programs that use the Nef_polyhedron_3 andIt seems their is a problem in boundary function.
Minkowski_sum_3 portions of the CGAL library. I have discovered a number of assertions with various input shapes. The attached backtrace shows one example problem. I have also attached a small example program, and the input shapes. The l-shape is shown in the attached jpeg file.
This problem shows up in both CGAL 3.7 and 3.6.1. I am using GCC 4.5.1
on Arch Linux with kernel version 2.6.36.
I think this is a bug, since it does not occur with other input shapes. I would be very grateful if someone can help me fix it since the Minkowski_sum_3 is essential to my research.
Thank you for your time.
Jason M'Sadoques
------------------------------------------------------------------------
If I replace:
Nef_polyhedron_3 container_boundary(container.boundary());
by
Nef_polyhedron_3 container_boundary(container);
Your program runs fine (with your data, the call to boundary is
superfluous).
Note that as you are then reusing "container", you need to make a copy
of it
(see http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Minkowski_sum_3/Chapter_main.html)
Note also that the difference you are computing will be empty as the Minkowski sum contains "container".
Finally, note that facets of your cube are clockwise oriented while the usual convention is to use counterclockwise oriented faces in off files.
I'll try to find a fix to boundary function and will post it here.
S.
- [cgal-discuss] CGAL assertions using Minkowski_sum_3, J.L.M., 12/12/2010
- Re: [cgal-discuss] CGAL assertions using Minkowski_sum_3, Sebastien Loriot (GeometryFactory), 12/20/2010
- Re: [cgal-discuss] CGAL assertions using Minkowski_sum_3, J.L.M., 12/27/2010
- Re: [cgal-discuss] CGAL assertions using Minkowski_sum_3, Sebastien Loriot (GeometryFactory), 12/20/2010
Archive powered by MHonArc 2.6.16.