Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] non-manifoldness problem

Subject: CGAL users discussion list

List archive

[cgal-discuss] non-manifoldness problem


Chronological Thread 
  • 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;
}



Archive powered by MHonArc 2.6.16.

Top of Page