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: Rinaldo <>
  • To:
  • Subject: RE: [cgal-discuss] Use of ESBTL and Skin Surface create errors
  • Date: Thu, 3 Jul 2014 10:41:32 -0700 (PDT)

Dear Sebastien,

 

Thank you for your reply. I am using CGAL 4.4. The code is as follows:

 

#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>

#include <CGAL/Skin_surface_3.h>

#include <CGAL/Polyhedron_3.h>

#include <CGAL/mesh_skin_surface_3.h>

#include <CGAL/Skin_surface_polyhedral_items_3.h>

#include <list>

 

#include <ESBTL/CGAL/EPIC_kernel_with_atom.h>

#include <ESBTL/default.h>

 

typedef ESBTL::CGAL::EPIC_kernel_with_atom                  K;

typedef ESBTL::CGAL::Default_system                         System;

typedef CGAL::Skin_surface_traits_3<K>                      Traits;

typedef CGAL::Skin_surface_3<Traits>                        Skin_surface_3;

typedef Skin_surface_3::FT                                  FT;

typedef Skin_surface_3::Weighted_point                      Weighted_point;

typedef Weighted_point::Point                               Bare_point;

typedef CGAL::Polyhedron_3<K>                               Polyhedron;

 

#include <list>

#include <fstream>

#include "skin_surface_writer.h"

#include "extract_balls_from_pdb.h"

 

 

int main(int argc, char *argv[]) {

  const char *filename;

  if (argc == 2) {

    filename = argv[1];

  } else {

    filename = "4lfq.pdb";

  }

 

 

  std::list<Weighted_point> l;

  double                    shrinkfactor = 0.5;

  //Container for molecular system

  std::vector<System> systems;

 

    

  // Retrieve input balls:

  extract_balls_from_pdb<K>(filename,systems,std::back_inserter(l));

 

 

  // Construct skin surface:

  std::cout << "Constructing skin surface..." <<std::endl;

  Skin_surface_3 skin_surface(l.begin(), l.end(), shrinkfactor);

 

  // Extract mesh from the skin surface:

  std::cout << "Meshing skin surface..." <<std::endl;

  Polyhedron p;

  CGAL::mesh_skin_surface_3(skin_surface, p);

 

                std::cout << "Subdividing ..." << std::endl;

                CGAL::subdivide_skin_surface_mesh_3(skin_surface, p, 1);

 

  std::ofstream out("mesh.off");

  out << p;

 

  return 0;

}

 

 

 

From: Sebastien Loriot (GeometryFactory) [via cgal-discuss] [mailto:[hidden email]]
Sent: quinta-feira, 3 de julho de 2014 02:33
To: Rinaldo
Subject: Re: Use of ESBTL and Skin Surface create errors

 

On 07/02/2014 10:45 PM, Rinaldo wrote:
>
> I am having the same problem using the latest version for both ESBTL and
> CGAL.
> Do you know if the problem of using subdivide_skin_surface_mesh_3 with ESBTL
> has been fixed?
> Best wishes,
>
> Rinaldo
>

The fixes have been integrated into the release 4.2. What version of
CGAL are you using?

Do you have a small example showing the pb?

Sebastien.

>
>
>
> --
> View this message in context: http://cgal-discuss.949826.n4.nabble.com/Use-of-ESBTL-and-Skin-Surface-create-errors-tp4656653p4659514.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




If you reply to this email, your message will be added to the discussion below:

http://cgal-discuss.949826.n4.nabble.com/Use-of-ESBTL-and-Skin-Surface-create-errors-tp4656653p4659516.html

To unsubscribe from Use of ESBTL and Skin Surface create errors, click here.
NAML



View this message in context: RE: Use of ESBTL and Skin Surface create errors
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page