Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Undetected non-manifold vertex in poly3

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Undetected non-manifold vertex in poly3


Chronological Thread 
  • From: Zohar <>
  • To:
  • Subject: Re: [cgal-discuss] Undetected non-manifold vertex in poly3
  • Date: Sat, 14 Dec 2013 04:36:21 -0800 (PST)


It seems that Nef can't handle open surfaces?

bool is_manifold(Polyhedron_3 &mesh)
{
//typedef CGAL::Extended_homogeneous<CGAL::Gmpz> Kernel; // doesn't
work
with OFF_to_nef_3
typedef CGAL::Homogeneous<CGAL::Gmpz> Kernel;

bool is_simple = false;

CGAL::Nef_polyhedron_3<Kernel> nef;
stringstream ss;
//ss.precision(50); // would slow down?
ss << mesh;
CGAL::OFF_to_nef_3(ss, nef);

/* A simple test that fails (no facets) if we get the poly back.
ofstream ofs("/8/aa.off");
CGAL::Polyhedron_3<Kernel> poly;
nef.convert_to_polyhedron(poly);
ofs << poly;
*/

is_simple = nef.is_simple();

return is_simple;
}



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Undetected-non-manifold-vertex-in-poly3-tp4658551p4658552.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page