Subject: CGAL users discussion list
List archive
- From: ben morris <>
- To:
- Subject: [cgal-discuss] How to obtain vertex UV from HalfEdge
- Date: Sat, 16 Jan 2021 12:20:15 +0000
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:0GvC8xOm2Ggx7rETSGol6mtUPXoX/o7sNwtQ0KIMzox0I/z5rarrMEGX3/hxlliBBdydt6sVzbKK+PixESxYuNDd6S9EKMQNHzY+yuwu1zQ6B8CEDUCpZNXLVAcdWPp4aVl+4nugOlJUEsutL3fbo3m18CJAUk6nbVk9Kev6AJPdgNqq3O6u5ZLTfx9IhD2gar9uMRm6twrcutQSjId4Nqo8xRTFrmdMdu9LwW9kOU+fkwzz68ut/pNv6Thct+4k+8VdTaj0YqM0QKBCAj87KW41/srrtRfCTQuL+HQRV3gdnwRLDQbY8hz0R4/9vSTmuOVz3imaJtD2QqsvWTu+9adrSQTnhzkBOjUk7WzYkM1wjKZcoBK8uxxyxpPfbY+JOPZieK7WYNUXTndDUMlMTSxMGoyzYYsBAeQCIOhWsZXyqkAUoheiHwShHv/jxiNKi3LwwKY00/4hEQbD3AE4BN0BrnLUp8jwNKcVS+C11qjIzS7eZP5Rwjjy9o7Icgs7rvGKR75wdM3RyVM1FwPElVWdsoPlPzSS1uQCt2iU8e9gWviui24jsQ1+vj+vxsI1h4TPm4kaxUzK+z9jz4YpOd23VlR7Ydi8HZdMtSyXNpd6Tt8iTW10tyg3xLkLtJC0ciULx5opyRrSZv6ZfoWK7B/uVeScLCl4iXxqeLyxhwi//FW+x+DhSsS51ktBoCRCktnJrH8N1hrT59CbRfty5Eih3SyD1wfJ6uFLJ00/iKnVK4Y5z7IuipYetV7PEyz2lUnskaObd0cp9vKo5uj6ZLjtu4WSOJVuig7kN6Qjgsy/Dvo8MggJR2Wb/P6z1Lzn/UHgRLVKgOA6nrDXsJ3aOMgXvKG5AwhS0oYs7xawES2q38gfnXkCNF5FeRSHgJb1O1zWPvz0EfOyj06vnTpr3fzKI7zsD5fXInXDjbvtZbN95FRdyAo3w9Bf/ZVUCrQZLf3oREDxssfYAQU/MwCuxubnD8991pkfWWKUGaKZP6TSsViH5uIrPeaMYZUauDf5K/Q/+/Huino5lUcHfaa1xZsXdGy4HvN+LkqFbnrjmNMBHX4XsQo/V+zllECCUSVIZ3upRKI95jQ7CJq8AovZR4CthqaB3CahEZFMaGBGEAPELXC9fIqNX7IAaTmZP9R6uj0CT7moDYE7hj+0swqvwbdhZu/T4DcZrtq33tVz/OTV0xQ17yZ1FOyS1GaCS2xxl2IMATQx2fYs8gRG1l6f3P0g0LRjHttJ6qYRC1poBdvn1+V/TuvKdEfBc9OOEgv0R9ynBXQ1QIt0zYJXJUl6HNqmg1bI2C/4W+ZExYzOP4Q99+fn51a0Is98z3jc06x40QspRcxAMWCjj697sQPUAtyQyhnLp+ORba0ZmRX12iKb12PX4hNXVwl/VajAVHEbIEDRqIah6w==
Hi, I've generated a UV map for a closed mesh using the orbifold parameterization example below:
The UVs are stored in the half edges (uvmap) but I need to obtain the UV for each vertex (not half edge). Could you point me to an example that, given a property map of half-edge to UV (the uvmap variable in the above example) how I can obtain the UV for each vertex? I see the HalfEdgeDS has a vertices_begin()/end() api so should I, for each vertex, iterate over all half-edges, then for each vertex in the half edge if it matches my vertex accumulate the UV half edge value and then divide at the end by the number of half-edges that contributed to the vertex's UV? If this is naive, or expensive what would be the best approach?
Many thanks in advance,
Ben
- [cgal-discuss] How to obtain vertex UV from HalfEdge, ben morris, 01/16/2021
- Re: [cgal-discuss] How to obtain vertex UV from HalfEdge, Maxime Gimeno, 01/16/2021
- Re: [cgal-discuss] How to obtain vertex UV from HalfEdge, ben morris, 01/16/2021
- Re: [cgal-discuss] How to obtain vertex UV from HalfEdge, Maxime Gimeno, 01/16/2021
Archive powered by MHonArc 2.6.19+.