Subject: CGAL users discussion list
List archive
- From: 王少东 <>
- To:
- Subject: Re: [cgal-discuss] bgl interface
- Date: Mon, 19 Jun 2017 09:59:17 +0100
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:kOxq+RBzNmHJjDNnX5swUyQJP3N1i/DPJgcQr6AfoPdwSPv/osbcNUDSrc9gkEXOFd2CrakV1KyO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fdbghMhjexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Xymp4aV2Rx/ykCoINTA5/mHZhMJzkaxVvg6uqgdlzILIeoyYLuZycr/fcN4cWGFPXtxRVytEAo6kaYkNCewDNvtfoojzvFsBsAC+ChWsBe70xT9Ig2X53aw+0+g7DQ7G2wkgEssIvX/Jotv1M6ISXvq0zKnO1TjDbvVW2S386IfSaBwhr+uMULRtesTS0UkiDwHIg1qKpYD4IT+Y1v4BvmuF4+Z6SO6iiHIrpgdsqTa13MgskJPGhocNx1DE6yp5xIE1KMW9SEFhYN6kFIJctyaGN4dqW88iTXxktSUmxrEctp67ey8KyJsjxxHBcfCIb4+I4hf7WOaQJzd3mm5ldaq9ihu960Ss1/PwW8mu3FtJsCZJiMTAu3MR2xDL78iIUPp9/kOv2TaV0ADT7/lJIE4vlaXGMJ4u3r4xm4EcsUTGBCD2mUH2gLWKeUUj/+ik8/7nban+pp+AK490jRnzPbghmsOlBeQ0KxUBX2mA+eugyb3j5lb5Ta5Rjvw2l6nZqIrVKd4apq6/GQ9V05ws5wyxDze8g5wlm2IaJgdFZA6flNqufErfJejxS/a5mVWl1jlxgOvXO6XoRZTLIH+Em7joefNx6lVX1REonuxYsplbA7VELPPoUVLqr/TZCAU4Okq62bXJEtJ4g3vmoSrbHbSVK6jDmVCN7+MrZeKLYdlG637GN/E56qu23jcCklgHcPzx0A==
Thank you for your help!
2017-06-19 8:58 GMT+01:00 Sebastien Loriot (GeometryFactory) <>:
The best way to do it is to ask a geometric traits class templateOn 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
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.
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [cgal-discuss] bgl interface, 王少东, 06/18/2017
- Re: [cgal-discuss] bgl interface, Julia Fischer, 06/18/2017
- Re: [cgal-discuss] bgl interface, Sebastien Loriot (GeometryFactory), 06/19/2017
- Re: [cgal-discuss] bgl interface, 王少东, 06/19/2017
Archive powered by MHonArc 2.6.18.