Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Problem when changing from inexact to exact kernel

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Problem when changing from inexact to exact kernel


Chronological Thread 
  • From: Thomas Holzmann <>
  • To:
  • Subject: Re: [cgal-discuss] Problem when changing from inexact to exact kernel
  • Date: Wed, 15 Feb 2017 15:40:56 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:O1IwhhH73IfhaLswwLYg9J1GYnF86YWxBRYc798ds5kLTJ76rsiwAkXT6L1XgUPTWs2DsrQf2reQ6/qrBzxIoc7Y9itdINoUD15NoP5VtjJjKfbNMVf8Iv/uYn5yN+V5f3ghwUuGN1NIEt31fVzYry76xzcTHhLiKVg9fbytScbkpp/ojKXqp9WTPl0J13KBZuZ5Ixyy6AnQrcILmpBKK6AryxKPrGEbVf5RwDZUJVWWlg20xsC07ptq9SIY7/Im89xFWKP8V6UzQvpEETs8OnJz7dG95kqLdheG+nZJCjZeqRFPGQWQsUn3



On 02/15/2017 03:28 PM, Sebastien Loriot (GeometryFactory) wrote:
On 02/15/2017 03:15 PM, Thomas Holzmann wrote:
Hi,

I have a CGAL::Triangulation_3, which I manually created (just converted
a given triangulation to a CGAL data structure) and which is valid (
checked with triangulation.is_valid()). I'm currently using
Exact_predicates_inexact_constructions_kernel, but I'm having problems
when making various geometric operation afterwards. Therefore, I want to
change to Exact_predicates_exact_constructions_kernel.

However, after changing the kernel, the conversion back to a double
representation doesn't work anymore, ie.

double x = CGAL::to_double(vertex->point().x());
...

results in a segmentation fault sometimes. It doesn't happen for all
vertices, just for some.

The same part of the code with inexact constructions kernel works
without problems.

Does someone have an idea what the problem could be?

Thomas


Check that the vertex is not the infinite vertex

infinity is checked with triangulation.is_infinite(). So no infinite vertices should be touched.

--
====================================================
Dipl.-Ing. Thomas Holzmann
TU Graz - Institut fuer Maschinelles Sehen und Darstellen
Graz University of Technology - Institute for Computer Graphics & Vision
Inffeldgasse 16/II, 8010 Graz, Austria

http://www.icg.tugraz.at/
phone: +43 316 873 5091
====================================================




Archive powered by MHonArc 2.6.18.

Top of Page