Strange behavior of std::vector containing CGAL::Polyhedron_3<Traits>::Vertex pointers
I'm experiencing some strange behavior while using an std::vector of
While iterating through the container I watermark every element is
labeled with the value -1 or 1 and its 1-ring neighbors with value 2. In
every iteration labeling only the vertices that have a label equal to
zero, because a vertex can be a neighbor of a
previous thus it's already labeled with 2. The strange thing is that I
encounter vertices labeled with 1 or -1, although before the iteration
all vertices labels are initialized with zeros. In the example code
below I specify the condition that breaks. Can someone
please give me any tip about CGAL::Polyhedron_3<Traits>::Vertex pointers
and why this behavior happens?
* Embeds the watermark to the primitive.
void embedWatermark(SpatialPrimitive& v, WatermarkPrimitive
assert(v.m_label == 0);
Computational Intelligence Laboratory (http://www.iit.demokritos.gr/cil/)
Institute of Informatics and Telecommunications
National Center for Scientific Research "Demokritos"
P.O. BOX 60228
GR-153 10 Agia Paraskevi, Athens, Greece.