Subject: CGAL users discussion list
List archive
- From: "Thomas Zangl - Home" <>
- To: <>
- Subject: Polyhedron_3 to Nef_Polyhedron_3: assert triggered
- Date: Sat, 21 Jul 2007 13:45:08 +0200
Hi!
I have the following assertion triggerd, when I want to create a
Nef_Polyhedron_3 out of a Polyhedron_3:
CGAL error: assertion violation!
Expr: !pe->is_border()
File: /home/TZi/CGAL-3.3/include/CGAL/Nef_3/polyhedron_3_to_nef_3.h
Line: 191
Explanation:
Aborted (core dumped)
This is my code:
cout << "Generating a polyhedron out of " << centers.size() << " centers
and " << faces.size() << " faces " << endl;
generatePolyhedron(centers, faces);
cout << "Properties of the polyhedron: isValid: " << p_.is_valid(false) <<
" isClosed: " << p_.is_closed() << " is pure triangle: " <<
p_.is_pure_triangle() << endl;
assert(p_.is_valid());
Nef_polyhedron pTemp(p_);
Output:
Generating a polyhedron out of 95 centers and 263 faces
found incident triangles: 2
inserting: 9.724 90.1561 67.2414/36.2069 63.8027 63.7931/32.7586 91.4155
91.3793
found incident triangles: 0
inserting: 36.2069 63.8027 63.7931/9.724 90.1561 67.2414/12.069 83.085 87.931
found bad incident triangle: 7/14/4
its incident triangles are: 4/54/7
52/4/14
4/52/7
3/4/14
54/14/7
found incident triangles: 5
inserting: 8.83884 91.3186 81.0345/36.2069 63.8027 63.7931/9.724 90.1561
67.2414
found incident triangles: 0
inserting: 9.724 90.1561 67.2414/12.069 83.085 87.931/8.83884 91.3186 81.0345
found incident triangles: 2
inserting: 19.4454 90.1561 90.2188/9.724 90.1561 67.2414/36.2069 63.8027
63.7931
found incident triangles: 1
inserting: 9.724 90.1561 67.2414/19.4454 90.1561 90.2188/8.83884 91.3186
81.0345
found incident triangles: 1
inserting: 9.724 90.1561 53.4483/9.724 90.1561 67.2414/36.2069 63.8027 63.7931
found incident triangles: 1
inserting: 12.069 83.085 87.931/36.2069 63.8027 63.7931/8.83884 91.3186
81.0345
found incident triangles: 0
inserting: 36.2069 63.8027 63.7931/8.83884 91.3186 81.0345/19.4454 90.1561
90.2188
found incident triangles: 0
inserting: 36.2069 63.8027 63.7931/12.069 83.085 87.931/19.4454 90.1561
90.2188
found incident triangles: 1
inserting: 8.83884 91.3186 81.0345/19.4454 90.1561 90.2188/12.069 83.085
87.931
found incident triangles: 0
inserting: 36.2069 63.8027 63.7931/12.3744 87.7351 46.5517/9.724 90.1561
53.4483
found incident triangles: 2
inserting: 8.62069 72.4784 91.3793/36.2069 63.8027 63.7931/12.069 83.085
87.931
found incident triangles: 2
inserting: 5.17242 95.0787 94.8276/19.4454 90.1561 90.2188/8.83884 91.3186
81.0345
found incident triangles: 0
inserting: 12.069 83.085 87.931/36.2069 63.8027 63.7931/32.7586 91.4155
91.3793
found incident triangles: 1
inserting: 8.62069 58.3363 91.3793/36.2069 63.8027 63.7931/8.62069 72.4784
91.3793
found incident triangles: 1
inserting: 8.83884 91.3186 81.0345/8.62069 72.4784 91.3793/5.17242 95.0787
94.8276
found incident triangles: 0
inserting: 8.83884 91.3186 81.0345/12.069 83.085 87.931/5.17242 95.0787
94.8276
found incident triangles: 1
inserting: 36.2069 63.8027 63.7931/8.62069 58.3363 91.3793/12.069 47.7297
87.931
found incident triangles: 0
inserting: 5.17242 95.0787 94.8276/8.62069 72.4784 91.3793/19.4454 90.1561
90.2188
found incident triangles: 0
inserting: 12.069 47.7297 87.931/33.5876 33.5876 66.4124/36.2069 63.8027
63.7931
generatePolyhedron: Done. There are 242 faces left for another polyhedron.
Properties of the polyhedron: isValid: 1 isClosed: 0 is pure triangle: 1
Any ideas? I know that my polyhedron is not closed, but.. thats a
problem ..?
TIA,
--
----------------------------------------------------------------
,yours Thomas Zangl, Bakk.rer.soc.oec. -
-
- Freelancer - IT Consulting & Software Development -
- Student of Software Development-Economy (Master) -
- Polyhedron_3 to Nef_Polyhedron_3: assert triggered, Thomas Zangl - Home, 07/21/2007
- Re: [cgal-discuss] Polyhedron_3 to Nef_Polyhedron_3: assert triggered, Peter Hachenberger, 07/23/2007
Archive powered by MHonArc 2.6.16.