Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] bgl interface

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] bgl interface


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] bgl interface
  • Date: Mon, 19 Jun 2017 09:58:34 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:I2zroBXZLORmsbAaAW96Uvxin6zV8LGtZVwlr6E/grcLSJyIuqrYbBSAt8tkgFKBZ4jH8fUM07OQ6PG/HzRYqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjSwbLdwIRmssQndqtQdjJd/JKo21hbHuGZDdf5MxWNvK1KTnhL86dm18ZV+7SleuO8v+tBZX6nicKs2UbJXDDI9M2Ao/8LrrgXMTRGO5nQHTGoblAdDDhXf4xH7WpfxtTb6tvZ41SKHM8D6Uaw4VDK/5KptVRTmijoINyQh/W/KlMJwgqJVoBWiqRJxzYHbb4OaO+ZxcK7GYdMXRnBMUtpNWyFPAI6xaZYEAeobPeZfqonwv1UCowagCga3Huzv0SNIhn7o0q08zu8vFwbG3BYhH9IJrHTfsdH5OqYMXuCyyanH0ynDb+lW2Dn98ofHbgwhofaWXbNwdMbdx1QkGgTejlWUrozlJTKV1uMRs2SB6upgUfmii2Eiqw5rozivwt0ghZXOhoIQ013J8zhyzoUtJdCgSkN2bsSoHIZOuyyaLYd7Qd0uT3tntSok0rELu522cDIUxJkoxhPTceGLfoyG7x75VuucITF1j29/dr2lnRa9602gx/X8Vsaq1FZKqTJIktzWuXAM0xzf88aGSv5h8ku41zaC2B7f5vtLIUAzkqrbJJohzaAqmpUPtkTDGzf6mETwjKCIakUp4uql5uv9brn7uJORN5V4hwLgPqg0lcGzH/w0Mg0UUGia/eS82qfj/Ur8QLhSlf02lq7ZsIrbJcQcuq61GQpV0oI45hawCjepytUYnX0dIF1ZfxKHipDlO0vSL/DgEfe/n1OsnS93yPDJJLLhBozBIWXCkLf6Ybl99lVcyBEowNBE55NUD6kBL+jpVk/wstzYFB45PBauz+bpEtUunr8ZDGmAC6vcPKLJukKT/couJfONbckbomXTMf8gsrTVgHUwgkMccK/h+ZwNaXekVrRJLkKcbGb2k/kIGnsNpBt/BqS+k1mFSz9UezC3W4oz4zg6DMStCoKVFdPlu6CIwCruRs4eXWtBEF3ZSXo=
  • Organization: GeometryFactory

On 06/18/2017 11:41 AM, 王少东 wrote:
Hi,

I want to write generic algorithms on top of cgal's halfedge data
structures. So I wonder is there a way to get the FieldType of
kernel from a Surface_mesh as well as Polyhedron_3 using the bgl interface?

Cheers,
Shaodong

The best way to do it is to ask a geometric traits class template
parameter in addition in your algorithm. From this traits class
you can extract the FT.

The hacking way is to get a Kernel from the point type and then
get the FT.

for example

typedef boost::property_map<boost::vertex_point, TriangleMesh>::type Vpm; // the default vertex point map
typedef typename boost::property_traits<Vpm>::value_type Point_3; // the point type
typedef CGAL::Kernel_traits<Point_3>::Kernel::FT FT;

Sebastien.







Archive powered by MHonArc 2.6.18.

Top of Page