|
Announcements
May 02 Assignment 3 has been postponed to Friday, May 2. |
CAP 6701 - Advanced Computer GraphicsFAQAlways check here to see if your question has already been answered before sending an e-mail to the TA or the professor.Problem: Important!!!
I did some operation on my
PolygonMesh object that modified the
connectivity (i.e. added/removed vertices/edges/faces). Then, using my
already existing handle/iterator/circulator gave me a segfault, core dump,
or some other pointer exception. What's going on?
Solution:
Why this happens:
How to avoid this problem:
The key to solving this problem is to Problem:
I tried to add a member to
PolygonMesh_vertex:
class PolygonMesh_vertex : public CGAL::HalfedgeDS_vertex_base< Refs, CGAL::Tag_true, P> {
public:
int x;
But vi->x = 3 resulted in an error stating that
x is in a read-only structure.
Solution:vi may be a Vertex_const_handle or
Vertex_const_iterator. Instead, it should be a
Vertex_handle or Vertex_iterator.
|