Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] How do I construct a WritablePropertyMap?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] How do I construct a WritablePropertyMap?


Chronological Thread 
  • From: Andreas Fabri <>
  • To:
  • Subject: Re: [cgal-discuss] How do I construct a WritablePropertyMap?
  • Date: Tue, 1 Nov 2016 09:50:42 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:2pdotB/5Loik4f9uRHKM819IXTAuvvDOBiVQ1KB+2uocTK2v8tzYMVDF4r011RmSDN+du6oP0rCM++C4ACpbvsbH6ChDOLV3FDY7yuwu1zQ6B8CEDUCpZNXLVAcdWPp4aVl+4nugOlJUEsutL3fbo3m18CJAUk6nbVk9dazJHdvZgM2zkuyz4JbOeB5ghTynYLo0Ig/lgx/Ws5w/h4d4J68qgjXAqGFJM7Bfw29yKFuI2Rj17N2x1JFu9CFdp+gw+cdLTaLgbuIzSrkOX2duCHw8+MC+7UqLdgCI/HZJCmg=
  • Organization: GeometryFactory

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



Archive powered by MHonArc 2.6.18.

Top of Page