Subject: CGAL users discussion list
List archive
- From: Atul Thakur <>
- To:
- Subject: [cgal-discuss] non-manifoldness problem
- Date: Fri, 18 Sep 2009 22:45:41 -0400
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; b=hbDdp/E+wt6/Ls3f6nFLxuGbV+wn/wHQkdzNcnNMv4ni7/jQCpRjoO1I6OMFgMJygA xeAjzkwqwY6hmNEz0ZSh70d6fTBCZqxwnKWxUqq5775IrRtkiv42i5a3WtXoaLlK5o9O e18yTJKVtZjBZxoy6u56PCgnziQqt9XJelgek=
Hi everyone,
I have a model which I cleaned and tested on MeshLab software. MeshLab
tells me that the model is 2 manifold, however when I try to read the
model in my CGAL code I get error like a nonmanifld model.
Is there some way to find out if my model is "really non-manifold"? If
so, can some one suggest me appropriate tools to clean up the
non-manifold model to a manifold one.
thank you very much,
-Atul
Sample code that I used : (CGAL 3.5beta - WinXP) Checked my model on
MeshLab - 1.2.2
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Polyhedron_3.h>
#include <CGAL/IO/Polyhedron_iostream.h>
#include <iostream>
#include <istream>
#include <fstream>
typedef CGAL::Simple_cartesian<double> Kernel;
typedef CGAL::Polyhedron_3<Kernel> Polyhedron;
int main()
{
std::ifstream stream("euchner2.off");
if(!stream)
{
std::cerr << "Cannot open file!\n";
return 1;
}
Polyhedron P;
stream >> P;
if(!stream)
{
std::cerr << "test.off is not a polyhedron\n";
return 1;
}
std::cout << "\n "<<P.size_of_vertices();
return 0;
}
- [cgal-discuss] non-manifoldness problem, Atul Thakur, 09/19/2009
- [cgal-discuss] Re: non-manifoldness problem, Atul Thakur, 09/19/2009
Archive powered by MHonArc 2.6.16.