Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Precondition Violation in Mesh Refinement 2 Package

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Precondition Violation in Mesh Refinement 2 Package


Chronological Thread 
  • From: Simon Perkins <>
  • To:
  • Subject: Re: [cgal-discuss] Precondition Violation in Mesh Refinement 2 Package
  • Date: Tue, 23 Mar 2010 12:04:35 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=l3/QQmCgWbivrCHHryF2lrSaO3hfMgIItQ8UqXBEJm5ZvMTxgpZ5oYbzq0O0tI0Dj9 d3vutZEg8iMYh/AGQbqgNyPG2eXF5cSHjD4aI1Cq18A3PyeaYREZ6StZX8X8bc4enh3Z kYRkipb7oJWoDaJhGdUYyCZPyt8DZe6ViNgDk=

Hi Laurent

I've added the assertion but the problem still occurs. Here is the code. It produces the two different precondition errors on both CGAL 3.5.1 and 3.6. The call to refine_Delaunay_mesh_2 is on line 62 of trigen.cpp.

thanks!
  Simon


On Tue, Mar 23, 2010 at 11:24 AM, Laurent Rineau (GeometryFactory) <> wrote:
On Tuesday 23 March 2010 09:33:40 Simon Perkins wrote:
> Hi
>
> I recompiled my code with CGAL-3.6 and obtained a different precondition
> error
>
> terminate called after throwing an instance of 'CGAL::Assertion_exception'
>   what():  CGAL ERROR: assertion violation!
> Expr: n == zone.fh
> File: /home/simon/compile/CGAL-3.6/include/CGAL/Mesh_2/Refine_edges.h
> Line: 431
> Aborted
>
> Any suggestions?

Strange. Can you call "assert(tr.is_valid());" before you call
refine_Delaunay_mesh_2?

If that assertion is correct, I would appreciate that you post your code, so
that I can reproduce the error on my machine.

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory           http://www.geometryfactory.com/
Release Manager of the CGAL Project       http://www.cgal.org/

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


Attachment: trigen.zip
Description: Zip archive




Archive powered by MHonArc 2.6.16.

Top of Page