Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] polyhedron with user defined extra information on the vertices
Chronological Thread
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] polyhedron with user defined extra information on the vertices
- Date: Tue, 17 May 2016 10:03:02 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:qvI6UxXrV59ZJ2St2EmllBNsswHV8LGtZVwlr6E/grcLSJyIuqrYZhKBt8tkgFKBZ4jH8fUM07OQ6PCxHzZfqs/b7zgrS99laVwssY0uhQsuAcqIWwXQDcXBSGgEJvlET0Jv5HqhMEJYS47UblzWpWCuv3ZJQk2sfTR8Kum9IIPOlcP/j7n0oM2CJV8Xz2PnPvtbF1afk0b4joEum4xsK6I8mFPig0BjXKBo/15uPk+ZhB3m5829r9ZJ+iVUvO89pYYbCf2pN/dwcbsNBzsvNyU55dbgqALYZQqJ/HoVFGsMwTRSBA2Qpir3VJ7qrir3sKJZ3zObOtG+DZ85XjGv8716ZhbjlCAdJn9zuDXMjstqjaVH5heljxN6yo/QJoqSMawtLevmYdoGSD8ZDY5qXCtbD9bkYg==
- Organization: GeometryFactory
It is possible using a custom items traits (second template parameter).
The concept is documented here:
http://doc.cgal.org/latest/Polyhedron/classPolyhedronItems__3.html
For an example see how ids are added to simplices in CGAL/Polyhedron_items_with_id_3.h
Note that using the class Surface_mesh would allow you to do property assignment at run-time.
http://doc.cgal.org/latest/Surface_mesh/
Best,
Sebastien.
On 05/15/2016 02:43 PM, Pratyush Pranav wrote:
Hi,
I would like to know if it is possible to derive a polyhedron_3 in such a way
that i can store a couple of extra information on the vertices (specifically
each vertex should have two additional variables associated with it, one of a
double type, and another one of long or int type).
any leads would be great! thanks in advance!
pratyush
- [cgal-discuss] polyhedron with user defined extra information on the vertices, Pratyush Pranav, 05/15/2016
- Re: [cgal-discuss] polyhedron with user defined extra information on the vertices, Sebastien Loriot (GeometryFactory), 05/17/2016
- Re: [cgal-discuss] polyhedron with user defined extra information on the vertices, Pratyush Pranav, 05/18/2016
- Re: [cgal-discuss] polyhedron with user defined extra information on the vertices, Pádraig Ó Conbhuí, 05/18/2016
- Re: [cgal-discuss] polyhedron with user defined extra information on the vertices, Andreas Fabri, 05/18/2016
- Re: [cgal-discuss] polyhedron with user defined extra information on the vertices, Pádraig Ó Conbhuí, 05/18/2016
- Re: [cgal-discuss] polyhedron with user defined extra information on the vertices, Pratyush Pranav, 05/18/2016
- Re: [cgal-discuss] polyhedron with user defined extra information on the vertices, Pádraig Ó Conbhuí, 05/18/2016
- Re: [cgal-discuss] polyhedron with user defined extra information on the vertices, Andreas Fabri, 05/18/2016
- Re: [cgal-discuss] polyhedron with user defined extra information on the vertices, Sebastien Loriot (GeometryFactory), 05/18/2016
- Re: [cgal-discuss] polyhedron with user defined extra information on the vertices, Pratyush Pranav, 05/18/2016
- Re: [cgal-discuss] polyhedron with user defined extra information on the vertices, Pratyush Pranav, 05/18/2016
- Re: [cgal-discuss] polyhedron with user defined extra information on the vertices, Pratyush Pranav, 05/18/2016
- Re: [cgal-discuss] polyhedron with user defined extra information on the vertices, Pádraig Ó Conbhuí, 05/18/2016
- Re: [cgal-discuss] polyhedron with user defined extra information on the vertices, Pratyush Pranav, 05/18/2016
- Re: [cgal-discuss] polyhedron with user defined extra information on the vertices, Sebastien Loriot (GeometryFactory), 05/17/2016
Archive powered by MHonArc 2.6.18.