Subject: CGAL users discussion list
List archive
- From: Andreas Fabri <>
- To:
- Subject: Re: [cgal-discuss] Mesh Simlification
- Date: Fri, 04 Apr 2008 15:26:13 +0200
Hi Sinan,
When nothing is read, then it is at least normal
that nothing is written.
So let's continue the remote debugging and do another
divide and conquer step.
Is is valid, that is, are you sure the stream is open?
If yes, do you compile in debug mode so that you
get assertions during the execution?
Did you read the spec of the operator >> (const istream&, Suerface)
Maybe the surface must be watertight, the faces be
oriented consistently,...
andreas
sinan mutlu wrote:
Dear Andread Fabri,
I have tried the code below:
Surface surface;
float maxface=0.1;
std::ifstream is("cow.off") ; //std::ifstream is("skull.off") ;
is >> surface ;
Surface::Point_iterator pn = surface.points_begin();
int i = 0;
while(pn!=surface.points_end())
i++;
std::cout<<i<<endl;
and the result is "0".
I do not know much about the library. Maybe I have done wrong things. I guess it reads nothing from the file.
Thank you for your time and consideration.
Sinan
On 04/04/2008, *Andreas Fabri* < <mailto:>> wrote:
sinan mutlu wrote:
Hi again,
I am trying to use
"CGAL-3.3.1\examples\Surface_mesh_simplification" example. While
it works for "cube.off" file it does not work
for another "xxx.off". For example I have a skull.off file and
in the main function I have tried this
Surface surface;
std::ifstream is("skull.off") ;
is >> surface ;
Hi Sinan,
Can you check here, that you really have read something.
Just print surface.number_of_vertices() or something similar.
andreas
std::ofstream out("output.off");
out<<surface;
The output in the output.off file
OFF
0 0 0
I could not understand the reason. Can anybody help me, if there
is someone who had this problem before.
Note: skull.off file is in the attachment.
-- You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
- Mesh Simlification, sinan mutlu, 04/04/2008
- Re: [cgal-discuss] Mesh Simlification, Andreas Fabri, 04/04/2008
- Re: [cgal-discuss] Mesh Simlification, sinan mutlu, 04/04/2008
- Re: [cgal-discuss] Mesh Simlification, Andreas Fabri, 04/04/2008
- Re: [cgal-discuss] Mesh Simlification, Laurent Rineau, 04/04/2008
- Re: [cgal-discuss] Mesh Simlification, sinan mutlu, 04/04/2008
- Re: [cgal-discuss] Mesh Simlification, Pierre Alliez, 04/04/2008
- Re: [cgal-discuss] Mesh Simlification, Sylvain Pion, 04/04/2008
- RE: [cgal-discuss] Mesh Simlification, David Lariviere, 04/04/2008
- Re: [cgal-discuss] Mesh Simlification, Laurent Rineau, 04/06/2008
- Re: [cgal-discuss] Mesh Simlification, Pierre Alliez, 04/04/2008
- Re: [cgal-discuss] Mesh Simlification, sinan mutlu, 04/04/2008
- Re: [cgal-discuss] Mesh Simlification, Fernando Cacciola, 04/04/2008
- Re: [cgal-discuss] Mesh Simlification, sinan mutlu, 04/04/2008
- Re: [cgal-discuss] Mesh Simlification, Andreas Fabri, 04/04/2008
Archive powered by MHonArc 2.6.16.