Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Remesh to Polyhedron

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Remesh to Polyhedron


Chronological Thread 
  • From: Per Zetterlund <>
  • To:
  • Subject: Re: [cgal-discuss] Remesh to Polyhedron
  • Date: Tue, 22 Jul 2014 11:10:08 +0200

I've gotten a bit further with this.

I'm using AABB Tree to speed up the intersects.

However, my input mesh has several components and it
is causing some trouble. The 3D Surface Mesh docs
says that it handles disconnected components as long
as there is an initial point on each component. This is
not working for me; I get error messages such as

terminate called after throwing an instance of 'CGAL::Assertion_exception'
what(): CGAL ERROR: assertion violation!
Expr: is_finite(d)
File: /usr/include/CGAL/GMP/Gmpq_type.h
Line: 132

But if I restrict the initial points to lay on one of the
components I get a nice reconstruction of that component.

Any ideas what I'm doing wrong?

/Per


On Wed, Jul 16, 2014 at 2:57 PM, Per Zetterlund
<>
wrote:
> Hi All,
>
> I have a triangular mesh that is ill formed (i.e. crosses
> itself at vertices and edges) that I want to remesh to
> a nice CGAL::Polyhedron.
>
> Right now I've written my own SurfaceMeshTraits class
> that I use with make_surface_mesh (3D Surface Mesh Generation
> package). It's brute force in that for each line/ray/segment I check
> intersection with every triangle in the mesh. So it is very slow...
> Is there a better way?
>
> I found the Surface_mesher/polyhedron_remesher.cpp example
> but I can't find documentation for neither CGAL::Polyhedral_surface_3
> nor CGAL::make_piecewise_smooth_surface_mesh so I'm guessing it's
> outdated?
>
> What is the difference between the "3D Surface Mesh Generation"
> package and the "3D Mesh Generation" package? Which one is
> most suitable for my needs?
>
> Thanks,
>
> Per



Archive powered by MHonArc 2.6.18.

Top of Page