Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Surface mesh Simplication crashed

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Surface mesh Simplication crashed


Chronological Thread 
  • From: Philipp Moeller <>
  • To:
  • Subject: Re: [cgal-discuss] Surface mesh Simplication crashed
  • Date: Sun, 18 Mar 2012 14:21:02 +0100
  • Organization: GeometryFactory

王进
<>
writes:

> Hi,CGAL Developers:
> I use Lindstrom-Turk edge-collapse algorithm for mesh simplification,but
> CGALcrashed at Handle_for.h
>
> bool
> is_shared() const
> {
> return ptr_->count > 1;
> }
>
> because of ptr_ is invalid pointer.
> the call stack show as below
>
> CGAL::Surface_mesh_simplification::EdgeCollapse
> ->boost::put
> ->CGAL::Point_3<CGAL::Cartesian<double> >::operator=
> ->CGAL::PointC3<CGAL::Cartesian<double> >::operator=
> ->CGAL::Vector_3<CGAL::Cartesian<double> >::operator=
> ->CGAL::VectorC3<CGAL::Cartesian<double> >::operator=
> ->CGAL::Handle_for<boost::array<double,3>,std::allocator<boost::array<double,3>
> > >::operator=
> ->CGAL::Handle_for<boost::array<double,3>,std::allocator<boost::array<double,3>
> > >::~Handle_for
> ->CGAL::Handle_for<boost::array<double,3>,std::allocator<boost::array<double,3>
> > >::is_shared() <---crashed
>
> for help!
>
> Wang

A hint first: Don't use Cartesian<double>, performance is probably going
to be a lot better with Simple_cartesian<double>. Simple always means
better, right? ;)

Can you provide a complete, minimal test-case that shows the problem? I
have used Mesh simplification extensively throughout last week and
nothing blew up in my face, but then again I was using Simple_cartesian.

Cheers,
Philipp Moeller
GeometryFactory



Archive powered by MHonArc 2.6.16.

Top of Page