Subject: CGAL users discussion list
List archive
- From: Shrabani Ghosh <>
- To:
- Subject: Re: [cgal-discuss] Cannot read my data file in off format
- Date: Thu, 12 Sep 2019 15:49:38 -0400
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:XzuzBRyjikuoiYDXCy+O+j09IxM/srCxBDY+r6Qd2uwRIJqq85mqBkHD//Il1AaPAdyAraoZwLOK6+igATVGvc/b9ihaMdRlbFwssY0uhQsuAcqIWwXQDcXBSGgEJvlET0Jv5HqhMEJYS47UblzWpWCuv3ZJQk2sfQV6Kf7oFYHMks+5y/69+4HJYwVPmTGxfa5+IA+5oAnMuMQam5duJ6Y+xhfUrXZEZ/ldyWd0KV6OhRrx6dq88IB5/yhMp/4t8tNLXLnncag/UbFWFiktPXov5M3suxnDTA+P6WUZX24LjBdGABXL4Q/jUJvpvST0quRy2C+BPc3rVr80Qiit771qSBDzligKMSMy/XzNhcxxiKJbpw+hpwB6zoXJboyZKOZyc6XAdtwdWGRBQ91RVzRfDYygc4sBDO8BPelWoYn6olsBtxq+BQ+xD+/rxDJEmnr60Ksn2OojDA7GxhQtEN0AsHvWrNv7OqQcX/2rwqbU1jjMde9a1C3n5YTUbhwso/eBVq9wf8rLzkkvEhvIgEiQqYz/JTyazf4Cs26a7+F9VOyvi2knqxpxojOywcoskZPJiZkTylze+iV5wIE1Jca4SEN/ZdOpC5RQtySAOIt3RsMuWX1nuCE/yrAfv5OwYSYEyJMixxHFavyHdZCF4hT5W+mKOjh4gGxqdKijiBa19Eis0uL8Vs6z0FZFqipKjMPAuWwK1xzW8sSHS/19/l2g2TmVzQzT5PtELVg7laraN54hwqMwmYEJvUvfGS/2nUP7h7KVeEU84uWk9fjrb7H8qpKfN4J4kB/yPrgtl8ClAek0Lg4DVHWB9+umzr3s50j5Ta1KjvIolqnZt4jXJcEBqa64Bw9Zy5gs5AuiAzu/3tQVnWULIEhKeBKAiIjpNFXOL+7iAfijhFSslS9nx/HAPrL/HpXANmbPnKvlcLpn6ENRyBA/wc5D659XEL0MIO7/Vlf0tNPCDx85NwK0w/zgCNV4zo4eQniPDbSfMK/Ivl+I5uUvI/KMZIIRvDvwMPcl5/v0gn84nV8RZ7Wm3ZwSaHygBPRpP12ZYWbwgtcGCWoFogU+Q/buiFGbTDFTZm2yUL4h5jEgE4KrFpzDR4CogLyZxii3BJxWZmZcClCNC3jkbYuEW+1fIB+UOdJrxzwYSaC6GchmzgCrrAa8yrx9L+OS9DdfroPmzNEy5uvdklY5+jVwSsicyGqQVHonomRdTDA/2OVzoFd210yY+al+mf1RU9JJtN1TVQJvDp7GxuZzDdG6dQLGZdfBHE28SNPgDjE2VdJgkvcBZk98H5OpiRWVjHniOKMci7HeXM98yanbxXWkfJ4kmiT2kZI5hlxjefNhcGivh6px7Q/WXtebnECQlqLsfqMZjneUqDWziFGWtUQdazZeFL3fVClGNETTpNX9oEjFSu32UOl1Ak560ceHb5ByRJjpgFFBHqqxPd3fZye8lz71C0vQgLyLa4XudiMW2yCPUEU=
Thank You. Here it is.
The code looks correct. Can you share the input file?
(please upload it somewhere to avoid sending a large file
to all subscribers).
Sebastien.
On 9/12/19 9:13 PM, Shrabani Ghosh wrote:
> CGAL::Polygon_mesh_processing::orient_to_bound_a_volume(mesh); //// this
> function is not working.
> {
> const char* filename = (argc > 1) ? argv[1] :
> "../data/output_newvolume_bones.off";
> std::ifstream input(filename);
> std::vector<K::Point_3> points;
> std::vector<std::vector<std::size_t> > polygons;
> if(!input || !CGAL::read_OFF(input, points, polygons) || points.empty())
> {
> std::cerr << "Cannot open file " << std::endl;
> return EXIT_FAILURE;
> }
> CGAL::Polygon_mesh_processing::orient_polygon_soup(points, polygons);
> Polyhedron mesh;
> CGAL::Polygon_mesh_processing::polygon_soup_to_polygon_mesh(points,
> polygons, mesh);
> // Number the faces because 'orient_to_bound_a_volume' needs a face
> <--> index map
> int index = 0;
> for(Polyhedron::Face_iterator fb=mesh.facets_begin(),
> fe=mesh.facets_end(); fb!=fe; ++fb)
> fb->id() = index++;
> if(CGAL::is_closed(mesh))
> CGAL::Polygon_mesh_processing::orient_to_bound_a_volume(mesh);
> std::ofstream out("../data/output_newvolume_bones_orient.off");
> out << mesh;
> out.close();
> return EXIT_SUCCESS;
> }
>
> On Thu, Sep 12, 2019 at 3:03 PM Sebastien Loriot (GeometryFactory)
> < <mailto:>> wrote:
>
> What are you using precisely?
>
> CGAL::Polygon_mesh_processing::reverse_face_orientations()?
>
> How is the mesh read? You should post your code on gist.github.com
> <http://gist.github.com>
> and the data set there, it would be easier to help you.
>
> Sebastien.
>
> On 9/12/19 5:48 PM, Shrabani Ghosh wrote:
> > HI,
> >
> > I was able to use my surface mesh by changing the orientation.
> But now I
> > have a surface mesh which is a bigger one, and when I am trying
> to change
> > the orientation, I am not able to do that. After some time, it
> showing
> > segmentation fault. How to solve this problem?
> >
> >
> >
> >
> >
> >
> > --
> > Sent from: http://cgal-discuss.949826.n4.nabble.com/
> >
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- Re: [cgal-discuss] Cannot read my data file in off format, Shrabani Ghosh, 09/12/2019
- Re: [cgal-discuss] Cannot read my data file in off format, Sebastien Loriot (GeometryFactory), 09/12/2019
- Re: [cgal-discuss] Cannot read my data file in off format, Shrabani Ghosh, 09/12/2019
- Re: [cgal-discuss] Cannot read my data file in off format, Sebastien Loriot (GeometryFactory), 09/12/2019
- Re: [cgal-discuss] Cannot read my data file in off format, Shrabani Ghosh, 09/12/2019
- Re: [cgal-discuss] Cannot read my data file in off format, Sebastien Loriot (GeometryFactory), 09/12/2019
- Re: [cgal-discuss] Cannot read my data file in off format, Shrabani Ghosh, 09/12/2019
- Re: [cgal-discuss] Cannot read my data file in off format, Sebastien Loriot (GeometryFactory), 09/12/2019
- Re: [cgal-discuss] Cannot read my data file in off format, Shrabani Ghosh, 09/13/2019
- Re: [cgal-discuss] Cannot read my data file in off format, Shrabani Ghosh, 09/13/2019
- Re: [cgal-discuss] Cannot read my data file in off format, Shrabani Ghosh, 09/12/2019
- Re: [cgal-discuss] Cannot read my data file in off format, Sebastien Loriot (GeometryFactory), 09/12/2019
- Re: [cgal-discuss] Cannot read my data file in off format, Shrabani Ghosh, 09/12/2019
- Re: [cgal-discuss] Cannot read my data file in off format, Sebastien Loriot (GeometryFactory), 09/12/2019
- Re: [cgal-discuss] Cannot read my data file in off format, Shrabani Ghosh, 09/12/2019
- Re: [cgal-discuss] Cannot read my data file in off format, Sebastien Loriot (GeometryFactory), 09/12/2019
Archive powered by MHonArc 2.6.18.