Subject: CGAL users discussion list
List archive
- From: Iason Manolas <>
- To:
- Subject: Re: [cgal-discuss] How do I construct a WritablePropertyMap?
- Date: Tue, 1 Nov 2016 11:03:13 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:hmA2HxU8sVEFAn1OREUqRfX90anV8LGtZVwlr6E/grcLSJyIuqrYZhaPt8tkgFKBZ4jH8fUM07OQ6PG6HzxYqs/b4DhCKMUKDEBVz51O3kQJO42sNw7SFLbSdSs0HcBPBhdO3kqQFgxrIvv4fEDYuXao7DQfSV3VPAtxIfnpSMaJ15zkn7P6xpvIfg8dhCaheagga1KtvADJv48Xh5FjI+A/0FzSs35QcqNXw21vYlmclhK56sar94N46HdsvKcq+MdEFKn7ZK8lVqdwDTI8Mmlz6te4mwPESF6u72AbVC0zmxxPBwHepEXjR4v2tib8u8Jy3SCbOYv9SrViCmfq1LtiVBK90HRPDDU+6myC0sE=
That was quick! Thanks for your prompt reply.
boost::make_assoc_property_map(normals) was missing. It converts to an Lvalue Property Map which provides the operator[] which is need in the put function that was throwing the previously mentioned error (?) .On 1 November 2016 at 10:50, Andreas Fabri <> wrote:
Hello,
I just added an example:
https://github.com/CGAL/cgal/pull/1638
Best,
Andreas
On 31/10/2016 12:46, Iason Manolas wrote:
Hi,
I am new to CGAL. I have constructed a CGAL::Polyhedron_3 and now I want
to compute the normal vector for each of its vertices. So I found the
Polygon Mesh Processing package which happens to have a function
<http://doc.cgal.org/latest/Polygon_mesh_processing/group__PMP__normal__grp.html#gad46aaf003999b2939f3f9e4f6fa58d0e>
doing exactly what I want . In the above link I found out that the
second argument was of type VertexNormalMap which is a model of
WritablePropertyMap. There was a link
<http://www.boost.org/doc/libs/1_62_0/libs/property_map/doc/WritablePropertyMap.html>
to boost libraries explaining(?) what writable property map is .
Unfortunately this is my first encounter with property maps and
consequently I am a bit confused..
I also had a look at cgal's explanation of property maps page
<http://doc.cgal.org/latest/Property_map/index.html >, but I did not
understand much..
Could anyone suggest a way of creating the property map I need?
Best Regards,
Iason
--
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project
phone: +33.492.954.912 skype: andreas.fabri
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- Re: [cgal-discuss] How do I construct a WritablePropertyMap?, (continued)
- Re: [cgal-discuss] How do I construct a WritablePropertyMap?, Andreas Fabri, 11/01/2016
- Re: [cgal-discuss] How do I construct a WritablePropertyMap?, Iason Manolas, 11/04/2016
- Re: [cgal-discuss] How do I construct a WritablePropertyMap?, Sebastien Loriot (GeometryFactory), 11/04/2016
- Re: [cgal-discuss] How do I construct a WritablePropertyMap?, Iason Manolas, 11/04/2016
- Re: [cgal-discuss] How do I construct a WritablePropertyMap?, Iason Manolas, 11/04/2016
- Re: [cgal-discuss] How do I construct a WritablePropertyMap?, Sebastien Loriot (GeometryFactory), 11/07/2016
- Re: [cgal-discuss] How do I construct a WritablePropertyMap?, Iason Manolas, 11/07/2016
- Re: [cgal-discuss] How do I construct a WritablePropertyMap?, Sebastien Loriot (GeometryFactory), 11/07/2016
- Re: [cgal-discuss] How do I construct a WritablePropertyMap?, Iason Manolas, 11/10/2016
- Re: [cgal-discuss] How do I construct a WritablePropertyMap?, Iason Manolas, 11/04/2016
- Re: [cgal-discuss] How do I construct a WritablePropertyMap?, Iason Manolas, 11/04/2016
- Re: [cgal-discuss] How do I construct a WritablePropertyMap?, Sebastien Loriot (GeometryFactory), 11/04/2016
- Re: [cgal-discuss] How do I construct a WritablePropertyMap?, Iason Manolas, 11/04/2016
- Re: [cgal-discuss] How do I construct a WritablePropertyMap?, Andreas Fabri, 11/01/2016
- Re: [cgal-discuss] How do I construct a WritablePropertyMap?, Iason Manolas, 11/01/2016
Archive powered by MHonArc 2.6.18.