Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] CGAL::Euler::collapse_edge use on CGAL::Surface_mesh

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] CGAL::Euler::collapse_edge use on CGAL::Surface_mesh


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] CGAL::Euler::collapse_edge use on CGAL::Surface_mesh
  • Date: Mon, 11 Sep 2017 17:02:02 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:zdshkRD5Kxc7V6XmWahrUyQJP3N1i/DPJgcQr6AfoPdwSP3zo8bcNUDSrc9gkEXOFd2Crakb26yL6+jJYi8p39WoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6i760TlHERr2MU95J//+B5XJp8WxzeG7vZPJMCtSgz/oK4h/JhytsQTcsIEyhpFjLbp5ijTEpX5FZ/5H62pjOVWJjle2rpOr+Jl58iNM/fcl38FFWKT+Oa8/SOoLX3wdL2kp6Ziz5lH4RgyV6y5EXw==
  • Organization: GeometryFactory

Did you call CGAL::Euler::does_satisfy_link_condition() on the edge before collapsing it?

https://doc.cgal.org/latest/BGL/group__PkgBGLEulerOperations.html#ga2d19a3573640a9abb28885425bfd9f40

On 09/11/2017 10:37 AM, Iasonm wrote:
auto h_range = CGAL::halfedges_around_source(someVertex, m_M);
for (auto it = h_range.begin(); it != h_range.end(); it++) {
//or for(auto hei:h_range){
auto hei = *it;
//..
}

the above code runs for ever and hei oscillates in the loop between two
values. This happens after I have collapsed several edges, consequently I
wonder whether by calling CGAL::Euler::collapse_edge I brake the mesh in
some way and the call to CGAL::halfedges_around_source returns a range
without an ending..



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





Archive powered by MHonArc 2.6.18.

Top of Page