Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] How to get adjacent vertices in 3d triangulation

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] How to get adjacent vertices in 3d triangulation


Chronological Thread 
  • From: Mael <>
  • To:
  • Subject: Re: [cgal-discuss] How to get adjacent vertices in 3d triangulation
  • Date: Thu, 1 Nov 2018 18:53:10 +0100
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:ZcD/Gh2T0KBhzaz4smDT+DRfVm0co7zxezQtwd8ZseIeLvad9pjvdHbS+e9qxAeQG9mDtLQc06L/iOPJYSQ4+5GPsXQPItRndiQuroEopTEmG9OPEkbhLfTnPGQQFcVGU0J5rTngaRAGUMnxaEfPrXKs8DUcBgvwNRZvJuTyB4Xek9m72/q99pHPYQhEniaxba9vJxiqsAvdsdUbj5F/Iagr0BvJpXVIe+VSxWx2IF+Yggjx6MSt8pN96ipco/0u+dJOXqX8ZKQ4UKdXDC86PGAv5c3krgfMQA2S7XYBSGoWkx5IAw/Y7BHmW5r6ryX3uvZh1CScIMb7S60/Vza/4KdxUBLmlTkJNzA5/m/UhMJ/gq1UrxC9qBFk2YHYfJuYOeBicq7Tf94XQ3dKUMZLVyxGB4Oxd4wBAPAfMuZcsoLwoF4OogGgCgmoHu/v0DhIhmL53KIk1+QtCwXG0xY7EN0VrnvZt9r1O7kVUeCw0qbI0S/DbvNY2Tjn9IfIbhchoeuMXL5qbcXRzkwvGhrDg16Np4LlODaV2f4Ms2id9+dgWuOvi3InqwFsuTej3Nsjio7Mho4N1l/E+j92wIIvKd2/Uk57bsaoH4dItyGCLYt5XM0iTH9yuCkkzL0JpYC0cDIWx5Qgwh7SbeGMfYuQ4h/7W+ucIC10iG95dL+/nRq//0atxvf+W8S6yFpHrStInsPSunwR1xHf8NaLRuV+80u7xDqDywPe5+dZKk4uj6XbMYQuwrsom5oTr0vDGij2lV3ogKOKbEkk/++o5uv9brXjvJCcNot0hhj5MqQzhsyzG+M4MhYOX2SB/+SzyqHj8VX4QLVMkPI2jrHUvZ/bKMgBu6K1Hw9Y3pwt5huxFTur0toVkWECLF1feRKHi4bpO0vJIPD9Ffq/hk6jnylvx/zcJL3hBYjNL3fdn7flZ7p971RTxxEowt9B/J9UBa8OIPX2WkDvqNzYFB84MwKuzOn7FNV90ZkeWGKVDqCFN6PStEeE5vgzLOmUeI8VpDH9JuA56P7hl3A5nUYRcrSo3ZsMdH+4A+9mI16CbHr3gtYBFH8KsRAkQOzrjl2CSz9TaGyoU6Iy/DFoQL6hWIzMT4TojL2a1zqgBbVXYHpHAxaCCyTGbYKBDtIFZSbadsponzhCT7+8W4IlkxWnvgX347VqKe/Z5jcJu5voyN9v9qvYkhRkpm88NNiUz2zYFzI8pWgPXTJjhPku83w48U+K1O1Du9IdENVS4/1TVQJgbMzTwut/BszoSwzIdcuOUkfgSdKjU2loEoABhuQWakM4IO2MywjZ1nDzUbAYkLmGGIYl/KvXw3/rNoB2zHOUjPB83WljedNGMCidvoA69wXXANSUwR/B0aOtKeIZ1S/JsWCe0SyJokEeVgNsA/3I

Hello,

A good idea when wondering how to actually use a function of CGAL that you have found in the doc is to search the code of CGAL for real usages of that function (either grepping the source, or using the search function on github).

For example, https://github.com/CGAL/cgal/search?p=1&q=adjacent_vertices&unscoped_q=adjacent_vertices here is the result of the search, and you can find this piece of code, which illustrates a call to adjacent_vertices with a 3D periodic triangulation: you create a container (here a vector) and pass as parameters both the vertex whose adjacent vertices you want to collect, and an inserter to the container (here using std::back_inserter() to create such inserter).

Your container is then filled by the function with the adjacent vertices of the vertex passed as a parameter and you can use them as you desire afterwards.

Does this clarify things for you?

Best,
Mael

On 2018-11-01 17:25, GAD FLY wrote:
Hi all,

Can anybody help me to use the adjacent_vertices() function in 3d triangulation adjacent_vertices() with a simple example?

Thanks,
James




Archive powered by MHonArc 2.6.18.

Top of Page