Skip to Content.
Sympa Menu

cgal-discuss - polyhedron 2 nef and GMP...

Subject: CGAL users discussion list

List archive

polyhedron 2 nef and GMP...


Chronological Thread 
  • From: olivier stab <>
  • To:
  • Subject: polyhedron 2 nef and GMP...
  • Date: Mon, 19 Mar 2007 17:07:03 +0100

Hello everybody,

I'm trying to convert a polyhedron_3 to a Nef_Polyhedron_3 ( because I would like to use regularized set operations). All faces of the polyhedron_3 are triangles but I had a problem during conversion : CGAL error: assertion violation! because a point of a face was not in the (computed) plan of its own face !!!
So I change the kernel from double to GMPQ to improve the accuracy. Unfortunately I have another message :

CGAL error: assertion violation!
Expr: pe_prev->facet()->plane().has_on(pv.point())
File: /u/unix/prm/stab/PACKAGE/CGAL-3.2.1/include/CGAL/Nef_3/polyhedron_3_to_nef_3.h
Line: 164
Abort

It is still the same king of problem : a point of a face is not in the (computed) plan of the face !!! I have printed values :

Problem with point 0/1 39/2 10/1
Face 0/1 39/2 10/1
Face -3827017062975133/2251799813685248 5467875649170735/281474976710656 2815835704516709/281474976710656
Face -7567584488753393/4503599627370496 5406117907001047/281474976710656 2424423223689725/281474976710656
Problem with plane 4098110741576261740136356745/19807040628566084398385987584 -5957837625288232789804749470379/1267650600228229401496703205376 943643646782002640772218915029/1267650600228229401496703205376 7511259529487350353695022655679336824057253921/89202980794122492566142873090593446023921664
CGAL error: assertion violation!

How can I improve the computing of the plane equation ??? I thought that GMP will have done it for me :-( .

Thanks.

--
---------------------------------------------------------
Stab Olivier
Ecole des Mines de Paris / GEOSCIENCES
35, rue saint honoré, 77305 Fontainebleau Cedex - France

Tel : +33 1 64 69 48 29 Fax : +33 1 64 69 47 11

Email :

Secr: +33 1 64 69 48 97
---------------------------------------------------------



  • polyhedron 2 nef and GMP..., olivier stab, 03/19/2007

Archive powered by MHonArc 2.6.16.

Top of Page