Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Use of ESBTL and Skin Surface create errors

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Use of ESBTL and Skin Surface create errors


Chronological Thread 
  • From: jeanbaptiste lespiau <>
  • To:
  • Subject: Re: [cgal-discuss] Use of ESBTL and Skin Surface create errors
  • Date: Fri, 8 Feb 2013 12:38:41 +0100

Thank you for this very fast response.

I have replaced the headers directly in CGAL.

Now "CGAL::make_skin_surface_mesh_3(p, l.begin(), l.end(), shrinkfactor);" completly works :)


CGAL::subdivide_skin_surface_mesh_3(skin_surface, p);  compiles without errors. However, when launched it raises an invalid assertion:

terminate called after throwing an instance of 'CGAL::Assertion_exception'
  what():  CGAL ERROR: assertion violation!
File: /usr/local/include/CGAL/Skin_surface_base_3.h
Line: 484
Explanation: intersection: no intersection.

Since I have applied subdivide on a theorically valid skin surface (created by mesh_skin_surface_3), I think this is still not normal.


Thank you for your help.


2013/2/8 Sebastien Loriot (GeometryFactory) <>
Attached to this email, you'll find patched header files than need to be
used instead of those from CGAL (you can edit your CMakeLists.txt and
add the patch to this directory  include_directories(BEFORE XXX)  )

Let us know if this solves your problem.


Sebastien.

On 02/04/2013 11:12 PM, J-B wrote:
Hello,
I am using the CGAL example Skin_surface_3 / skin_surface_pdb_reader.cpp to
build a skin surface from an .pdb file.

It works (of course, the example does), but when I try to use other
functions I found at
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Skin_surface_3/Chapter_main.html
awfull errors arrive.

In particular, it is about the two
functions:CGAL::make_skin_surface_mesh_3(p, l.begin(), l.end(),
shrinkfactor); (does 2 actions in
1)andCGAL::subdivide_skin_surface_mesh_3(skin_surface, p);

I think it is because ESBTL defines it owns Kernel (typedef
ESBTL::CGAL::EPIC_kernel_with_atom    K;) while CGAL uses typedef
CGAL::Exact_predicates_inexact_constructions_kernel K, but ESBTL doesn't
work if I uses the last typedef.

I put an example here :
https://github.com/Gueust/Pymol-Tunnels-Cavities-Finder/blob/master/Example.tar.gz
using the smaller code possible with one line that creates the errors.

To make it compile, if you have both ESBTL and CGAL you only need to go to
build/ and do cmake .

It may be as simple as modifying a typedef, but being not skilled with those
libraries I am completely lost. If someone has the answer it could be great.

Thank you.



--
View this message in context: http://cgal-discuss.949826.n4.nabble.com/Use-of-ESBTL-and-Skin-Surface-create-errors-tp4656653.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



--
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