Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Eroormessage of CSG cut

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Eroormessage of CSG cut


Chronological Thread 
  • From: Maxime Gimeno <>
  • To:
  • Subject: Re: [cgal-discuss] Eroormessage of CSG cut
  • Date: Fri, 13 Mar 2020 09:54:05 +0100
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:s/4fZRB+gFs5DT2dxiAUUyQJP3N1i/DPJgcQr6AfoPdwSP76oMbcNUDSrc9gkEXOFd2Crakb26yL6+jJYi8p39WoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6i760DgJBx+qNRZpPv+nXcnJnsGv3qaz/YfSakNGnn2mcLZqJVK3qwvW8cIZiI8nJqcqwQbSuSh0fLFdympsYF6ShB3h/dyY/Zh58i0Wtehy2dRHVPDfdrQ5SLEQIzUjPmYyrJnuvAnCSAbJ6XoZX2MRuhVNCgnBqhr9W8Gi4WPBquNh1XzCboXNRrcuVGH6tvo5eFrTkC4CcgUB3iTXh8h31vwJpRugo1l4wteRbtjKZLxxeaTSed5cTm1EDJ4IBn5xR7ikZo5KNNIveONRro3zvVwL9ELsCgylBeepwThN1Cavgf8Klt85GASD5zQOWsoUuS2N/trwPaYWF+uyyfuQwA==

Your inputs are now triangle surface meshes, good, but they are strongly self-intersected. It is a documented pre-condition for refinement that both input are not self-intersecting and are bounding a volume. 
And They must be 2-manifold. It means for example that you cannot consider 2 cubes glued together into one mesh, you need to remove the internal face so that an edge only has 2 faces attached to it. Here, at several places in reduced1.off, there are sorts of internal panels separating the volume. This is probably the problem that triggers your current assertion.

Le jeu. 12 mars 2020 à 23:02, J. Scheurich <> a écrit :


On 12.03.20 16:56, J. Scheurich wrote:
>
>> Meshlab is able to read the off because it ignores the N blahblah
>> lines, which your CGAL version does not. Where did you find that off ?
>
> The .off files has been writen by white_dune. white:dune can triangulate
> meshes and the normal lines
> can be deleted in a editor.
>
> I will change the test data.

Updated:

 https://wdune.ourproject.org/examples/reduced.cpp

 https://wdune.ourproject.org/examples/reduced1.off
 https://wdune.ourproject.org/examples/reduced2.off


Now the errormessage is much more usefull:

$  g++ -g -O0 reduced.cpp -lCGAL -lgmp -lmpfr
$ ./a.out
terminate called after throwing an instance of 'CGAL::Assertion_exception'
  what():  CGAL ERROR: assertion violation!
Expr: it_poly_hedge!=edge_to_hedge.end()
File:
/usr/include/CGAL/Polygon_mesh_processing/internal/Corefinement/Visitor.h
Line: 1008
Aborted (core dumped)


thanks
so long
MUFTI


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss





Archive powered by MHonArc 2.6.18.

Top of Page