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 16:24:15 -0400
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:778FoRxEFCea/ybXCy+O+j09IxM/srCxBDY+r6Qd2ugUIJqq85mqBkHD//Il1AaPAdyAraoZwLOK7eigATVGvc/b9ihaMdRlbFwssY0uhQsuAcqIWwXQDcXBSGgEJvlET0Jv5HqhMEJYS47UblzWpWCuv3ZJQk2sfQV6Kf7oFYHMks+5y/69+4HJYwVPmTGxfa5+IA+5oAnMuMQam5duJ6Y+xhfUrXZFevldyWd0KV6OhRrx6dq88IB5/yhMp/4t8tNLXLnncag/UbFWFiktPXov5M3suxnDTA+P6WUZX24LjBdGABXL4Q/jUJvpvST0quRy2C+BPc3rVr80Qiit771qSBDzligKMSMy/XzNhcxxiKJbpw+hpwB6zoXJboyZKOZyc6XAdt4cWGFPXNteVzZZD4yzYYsADeoPM+hboYfguVUBsQCzChOwCO710DJEmmP60K883u88EQ/GxgsgH9cWvXrJrNX1Lr0dXvuvw6nOzDXIcvJY2Tf66IjTchAqvPaBXalqccXKz0kjDQzFjlWXqYz+PzOY0uAAvnOU7+plT+2vimonpxttrTiow8chk4/EjZ8bxFDD8CV22oc1JdugRU59e9GrC4BftyWEOIdsXswiRGRotD41yr0Bvp67cywKx4o9yxHDbPyHdpCE4hPlVOaLIDd3nmhpeLylhxqq/kigy/H8Vsmp0FlRtCZKjt7MtnUL2hfO6caHUuNw8lm91TuLzQze6eFJLVoqmabHKJMt2LE9m5QVvE/eBCH5gl/2g7WTdkg8+uin9eDnYrL+q5+ZLYB0iwX+Pr0wlcOiHOg0KwYOUmeV9Oim273j+kr5QLpOjvIoiKXWrJfaJcEDqq64BQ9azJoj5g6hAzu61NkUh3oKIVJfdB6Zk4TkOEvCLf/2APunhlSjijZrx/TIPr37BZXNK2DOkKz7fblm7U5Q0gUzzdBY55JPCrEMJPb+V1T+tNzdFBA5Mgi0z/z7B9V604MSQXiPDbOBMKPOrV+I4foiLPWDZIAPvDbxMuUq5//1jXAlhF8dZrKp0IAMaHG4G/RmO1+WbWDtgtcHC2cKvxAxQPbkiF2YAnZuYW2vVfc8+i0jE9DhSpzSQ5ikxr2HxiayWJNMIXtXD0iFVnbueYLDUPgFbGeeI9RqjycfBoSmHoQu3BXruA7hwKd8NcLV/DcZvNTtzotb/erWwCoy7zV+BsKcm06NSHp01jcTXTUwmq9/pld9mwar3q1xgvgeHttWsaAaGjwmPILRmrQpQ+v5XRjMK4/QFQSWB+6+CDR0deofht8DZ0EnRoenhxHHmiemWvoby+fNC5sz/abRmXP2IpQlkieU5Owal1AjB/B3Gyijj697+RLUAteQwUqcnqeuM68b2XyUrTvR/S+1pEhdFTVIf+DdR3lGPxnZqN344gXJSLr8Ubk=
Yes,
I am getting segmentation fault for this line.
CGAL::Polygon_mesh_processing::orient_to_bound_a_volume(mesh);
I can't reproduce the issue with master and CGAL-4.13.
What version are you using?
Could you run the debugger and point to the line where the segfault occur?
Thanks,
Sebastien.
On 9/12/19 9:49 PM, Shrabani Ghosh wrote:
> Thank You. Here it is.
> output_newvolume_bones.off
> <https://drive.google.com/file/d/1UqJWdpvHaHYP7no2T3DW7vYUya3AtTs1/view?usp=drive_web>
>
>
> On Thu, Sep 12, 2019 at 3:39 PM Sebastien Loriot (GeometryFactory)
> < <mailto:>> wrote:
>
> 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:>
> <mailto: <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>
> > <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
>
>
--
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.