Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Cannot read my data file in off format

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Cannot read my data file in off format


Chronological Thread 
  • From: Mael <>
  • To:
  • Subject: Re: [cgal-discuss] Cannot read my data file in off format
  • Date: Wed, 31 Jul 2019 19:59:02 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:t7XY6h+wDNIS0P9uRHKM819IXTAuvvDOBiVQ1KB32+IcTK2v8tzYMVDF4r011RmVBN+duq8P0rOI+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxhWiDanZb5/LBq6oRjMusQXnIBvNrs/xhzVr3VSZu9Y33loJVWdnxb94se/4ptu+DlOtvwi6sBNT7z0c7w3QrJEAjsmNXs15NDwuhnYUQSP/HocXX4InRdOHgPI8Qv1Xpb1siv9q+p9xCyXNtD4QLwoRTiv6bpgRRn1gykFKjE56nnahNFugqJVoByvpBJxzIDbb46XKPVzZbnScc8ASGdbQspcWS5MD4WhZIUPFeoBOuNYopH6qVQUsxS+ARSnCeTqyjBSmHD22bc20/4mEQHb0w0vAdYOvG7QrNrvL6gdSv66wbLHzTrdaPNW3Cny6JTSchEhr/GDR65/cdbWyUk1FwLJlEmfqYvgPz6M0OkGrmaV7+1lVe21im4nrRl8oj61ycg3kYbJgpwaxkrY+iV+xYY5PcG3SEFhbt6gCpdQsDuaN4RuTsMtQmFopCY6yqAdtpKhYCcKz5EnyhjCYPKEa4iF+g/vWeSSLDtiin9pZqizihKz/ES61+HwSte43E5JoydEiNXAqGwB2hzJ5sSZRfZw/l2t1SuM2g3c7OxPPFo6mrDBK5E7x749jpoTvlrHHi/xgEj6kbOael8h+uiv9ujreLDmqYWdN49wkw3+NbkumtClDeQ/LAgOX3KX+eKi273/5UH5QbNKgeMqkqTBrZzXJ8cWqrS3DgNLyIou7xeyAy273NgEg3ULNFdFdwiGj4jtNVHOOvf4DfKnjlSpijhk2fTGMqf7ApXKM3jCn6nufbJn505Y0gU81stQ6IxPB7EOPv3zXUrxu8LEDh8jMw20zfzoB8lh1oMZQ2KOArWVP7/VsV+N/u4vOfWDZJcJuDbhLPgo/+LhjXAjll8ZZKWmwJoXaGukEfR7OEWZemHhgswBEGcPpgoxVvbmiFyEUT5JZna9Rbgw5j8hCNHuMYCWTY+khPmN3TywA4ZNTmFAEFGFV3nyJKueXPJZTSufJoc1lzUJUf67TJIx2BXosAbwwbdPIefT/yAEr4Pt3dNp4PfC0xo18GonXIymz2iRQjQszSszTDgs0fUn+BAv+hK4yaF9xsdgO5lL/foTC1U1OJnZwvBgGt77UR7GZMbPQ1GjEI3/UGMBC+kpytpLWH5TXtCrjxTNxS2vWeZHmLGMAZEo6LPS1nPtINxsjX3B0ft51gR0co50LWSjw5VH2U3TCorOyRjLzv7scKNFmivE9WPGyneS+kZGUEh2XLmXBX0=

Hello,

Your mesh does not describe a valid polygon mesh because it is not properly oriented. You should first load it as a polygon soup using "CGAL::read_OFF()":

std::vector<Point_3> points;
std::vector<std::vector<std::size_t> > triangles;
CGAL::read_OFF(istream, points, triangles);

and then orienting it properly with orient_polygon_soup() and polygon_soup_to_polygon_mesh().

Here it is properly oriented and saved as a polygon mesh: https://gist.github.com/MaelRL/1667b4d1f655f44f41ba7f839c79f1bf

Best,
Mael

 31/07/2019 19:32, Shrabani Ghosh wrote:
Hi Users,

I am edge_collapse_surface_mesh to decimate triangles , I tried with few
data from cgal it works properly. 
size 07338
Finished...
7338 edges removed.
999 final edges.


But when I am using one of my skull data which I converted from vtk to off
format using meshlab, in that case, the surface mesh can read the file but
cannot calculate even number of edges.
size 00
Finished...
0 edges removed.
0 final edges.

Which is that happening so? I have attached my file here. 




Please suggest me how to fix the problem. 

holes_tri.off
<http://cgal-discuss.949826.n4.nabble.com/file/t376134/holes_tri.off>  



--
Sent from: http://cgal-discuss.949826.n4.nabble.com/




Archive powered by MHonArc 2.6.18.

Top of Page