Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Crash on converting Polyhedron_3 to Nef_polyhedron_3 on an OFFinput.

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Crash on converting Polyhedron_3 to Nef_polyhedron_3 on an OFFinput.


Chronological Thread 
  • From: "Max" <>
  • To: "" <>
  • Subject: Re: [cgal-discuss] Crash on converting Polyhedron_3 to Nef_polyhedron_3 on an OFFinput.
  • Date: Sun, 13 Jan 2008 10:30:13 +0800
  • Disposition-notification-to: "Max" <>
  • Organization: LoadCom

Hello,

I once had similar experience. I was attempting to read an OFF file
containing a valid polyhedron from std::ifstream, but failed.

The strange aspect of this problem is that it worked when I
input the data with std::cin and command prompt redirection
as 'interface_polyhedron.exe < my_polyhedron.off'.

B/Rgds
Max

----- Original Message ----
From: Stephen Wong
To:

Sent: 2008-01-13 09:47:55
Subject: [cgal-discuss] Crash on converting Polyhedron_3 to Nef_polyhedron_3
on an OFFinput.

>
Hi there,

On this seemingly innocent input solid in the form of a OFF file, CGAL's
Nef_polyhedron_3 constructor using Polyhedron_3 crashes. I believe that the
solid represented by the OFF file is valid based on the specification (you
can see the model in geomview or any other OFF viewer). I caused this crash
by modifying the Nef_3.sln's interface_polyhedron:

Polyhedron P ;
std::ifstream fin( "Triangle - Copy.off" ) ;
fin >> P ;
if ( P.is_closed() && P.is_valid() )
{
Nef_polyhedron_3 N1( poly ) ;
}

Thanks,

Stephen
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss



Archive powered by MHonArc 2.6.16.

Top of Page