Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Cannot read my data file in off format
- Date: Thu, 12 Sep 2019 22:30:16 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:o19SixV5oKzm07k+84CFeviTVkvV8LGtZVwlr6E/grcLSJyIuqrYZRSCtadThVPEFb/W9+hDw7KP9fy5AipYvN3Y7C9KMMQVEUNc04NOx01oKfXGIHWzFOTtYS0+EZYKf35e1Fb/D3JoHt3jbUbZuHy44G1aMBz+MQ1oOra9QdaK3Iy42O+o5pLcfRhDiiajbrNuNhW2qhjautULjYd4Jas91xXErmFUd+lWym9kOF2ekhTh7cu04JJv7j5ctv08+8JeS6n2Y7g0QblFBzk6Lm4549HmuwPeRgWV/HscVWsWkhtMAwfb6RzxQ4n8vCjnuOdjwSeWJcL5Q6w6VjSk9KdrVQTniDwbOD4j8WHYkdJ/gaRGqx+8vRN/worUYIaINPpie67WYN0XSXZdUstXSidMBJ63YYkSAOobJetWspfzp1UOoxW9CwejCuzgxT1UiXH5xqA6z+csHBva0AA8Ed8DsnLZp8j1OqcIVuC1ybHFwTveYfxIwjjy8pPIcgwgof6SW7J7bMzfyU41FwPEiVWQtZHuMzeU2OsTtGib6vRvVf61i28nqw9+uCSgxtsrionThoMZz17I/jh+zYYuId24T1R7Yd+jEJtMrS2aMo92T9gtQ2Ftoik6y7kGtYSncygNzZQq3hjSYOGJfYiP5xLsTueRITFgiXJjYr2wnA298Uy+xeHmSsa011NKojJKktnLsXAN2BjT5dadRvRh+Ueh3C6D1wHV6uFeIEA7j7DXK5A7wrIomZoTsFjDHi/rmErtlqOZakIk+u2u5u/6YbvmvoeRO5Fohgz6KKgjmcyyDf4lPgQQXGWX4+ux2bP78UHnWrpGkuA6n6zHv53UKskWo7C2AwFU34k/7huzEjir388EkXQCLl9KZBGKgJLsNl7TPvz3F/Kyjlewnzh22v/LO6DuApvWIXXMlrrqYKxz5FRGyAUpyNBS/5JUBa8FIPL0QkLxscbXDh49MwCtzefnDchx2poQWW+ADKKVKqzSsViP5uIgJ+mDepUZtyr6K/gg//LujHk5lkEBfaSxw5cbdHS1Eu5lLkiZe3bgn8kNHGQQsgcxQuHmkFiCXiRSZ3a2UaI8/DY7CIe+AIfYQoCth6aB3Ca8Hp1KfGxGD1SMHGznd4WBQfgMaSaSLtV9nTwDULitU5Uh2g22tA/m17pnKfLZ9TEXtZ350Nh5/vDclRAp9TNoEsSdyHqNQnpvnmIIQj82xLpwrVZ8yleFy6h4guZXGcZd5/NTAU8HM4XBxbl6F8zqQVCGOcyYTU6vBNSgGzA4CNwrhMQfZl50XNSkgBeE1CWjB/oZlqeAGYcvoZ7binP+LsI4x3fd37Q6lHEnRNFOPCuonP1R7Q/WUsTynk+QjLqreKJU+CnX9WCfhSqhsUZdXRJqQIvMVmwYfFqX55yt/UfFVb6pFfIiNiNOzMeDLu1Bbdi/3gYOf+vqJNmLOzH5oGy3HxvdnurQPrqvQH0U2WDmMGZBixoapC/UOg03ByPnqGXbXmQ3SADfJnj0+Ow7k0uVC085ywbQMh9k3ruxvwEQ3LmSF6hV0bUDtyMs7T5zGQTlhoOEO5+7vwNkOZ5kT5Y46VZD23jeslUkbJOlJqFmwFUZdlYusg==
I meant within this function.
Sebastien.
On 9/12/19 10:24 PM, Shrabani Ghosh wrote:
Yes,
I am getting segmentation fault for this line.
CGAL::Polygon_mesh_processing::orient_to_bound_a_volume(mesh);
On Thu, Sep 12, 2019 at 4:27 PM Sebastien Loriot (GeometryFactory) < <mailto:>> wrote:
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:>
<mailto:
<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:>>
>
<mailto:
<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>
> > <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.