how to give each edge a color attribute?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to give each edge a color attribute?

Shi Yan
hello guys,

there is no "edge data structure" in the polyhedron_item_3 class, so
how can i assigned each edge a color value?

the naive way is to give each halfedge a color attribute and let the
colors of the halfedges on an edge be the same.

but in this case, the edge colors are redundant.

so i'm wondering if there is any wiser and concise way of doing this?

thank you very much.
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
Reply | Threaded
Open this post in threaded view
|

Re: how to give each edge a color attribute?

Pierre Alliez
hi Bill,

you have to store the color per halfedge - just make sure that
he->opposite() is assigned the same value each time he is assigned.

Bill Conan a écrit :

> hello guys,
>
> there is no "edge data structure" in the polyhedron_item_3 class, so
> how can i assigned each edge a color value?
>
> the naive way is to give each halfedge a color attribute and let the
> colors of the halfedges on an edge be the same.
>
> but in this case, the edge colors are redundant.
>
> so i'm wondering if there is any wiser and concise way of doing this?
>
> thank you very much.

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss