Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Property Maps

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Property Maps


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Property Maps
  • Date: Thu, 13 Jul 2017 12:11:40 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:GT7iRhbUT72Or/Fp5wOHzHX/LSx+4OfEezUN459isYplN5qZr8u5bnLW6fgltlLVR4KTs6sC0LuJ9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQtFiT6/bL9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjmk8qxlSgLniD0fOjAk7m/XhMx+jKVYrhyvqRNwzIzbb52aOvdlYqPQf8kXSXZdUstfVyFMBJ63YYsVD+oGOOZVt4fxqUYQohSlHwasH//vyj5WiX/wwKY01eMhERvH3AwnA9IFrXDYotTrO6cVVOC60rXIzS/Dbv1Wwzjy9JTIchc7ofCMWL58f9faxE40FwPBiVWQs43lPzSJ1ugXtmib6/FtVe2qi2E9qgFxpiKjydsrionMn48YzE3P+yt+wIYwP9K4SUh7bMaiEJRKrC6VLI92Td04T250vyY6z6UKtoK0fCcQzJQr3Rnfa+aIc4WO/xntV/6RLC9miH55fL+znRW//Ei6xuHhSMW500xGojdHn9TIrnwA1R/e5tKZRvZy/0qtwyuD2gTd5+1eI005lazWIIM7zLEqjJocq0HDEzf2mEroiK+WcV0p+u2y5OTmZrXqv5GdN5Vohg3nPKQih86yDOAiPggBWGib/uu81Ln98kHjXLpKifg2nrHYsJDcO8sbura0DxFJ3osn8RqyDDer3M4FkXUZL19JYg+LgortNl3WJfD3F/a/g1CikDdxwPDGO6XsAo7JLnjEirfhfLF961JGxAo2ydBS/J1UCrQbL/LyXk/9rsDXDhg8MwCs2eboFM191p8CWWKIGqKWLKzSvkWM5u42PuaMZZQVtyrgK/g+/P7jlmQ5mF8Yfamxx5QbcnG4HvJ8I0WYe3XgmNkBEX1Z9jY5GeflgVnHXT9IbGupRIo94Cs6AcSoF9TtXIeo1fa60S2yBYFXa2YOLleWEHD0P8WrVvAJZT6IM+FomSADT6ngAcd1zhWprg791/xiKsLb/yQZsdTo090jtL6brg076TEhV5fV6GqKVWwhxm4=
  • Organization: GeometryFactory

I think the best way to do it is to collect all of them per segment_id
in the same loop and then you can work with each collection independently.

Sebastien.

On 07/12/2017 06:54 PM, Iasonm wrote:
Hello,
I used the mesh segmentation algorithm
http://doc.cgal.org/latest/Surface_mesh_segmentation/index.html
<http://doc.cgal.org/latest/Surface_mesh_segmentation/index.html> . What I
have got now is a CGALSurfaceMesh::Property_map<face_descriptor,
std::size_t> which connects faces with segment indices using the boost
property maps. Now I want to compute the Laplace operator of a segment.
To do that I need, given a segment index, to be able :
1) to know the number of vertices which belong to the given segment. Is
there a faster way doing that instead of iterating over all faces and
counting how many vertices belong to the given segment?

2) to iterate over all edges that belong to the given segment. My first
guess was to iterate over all faces that belong to the given segment and
iterate over all three edges of each face. But by doing that I would
reprocess some edges. Is there a faster way?





--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Property-Maps-tp4662825.html
Sent from the cgal-discuss mailing list archive at Nabble.com.





Archive powered by MHonArc 2.6.18.

Top of Page