Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

EulerOperatorJoinVertexFunction Class Reference

Collapse a given edge by joining its dest and its org. More...

#include <itkQuadEdgeMeshEulerOperatorJoinVertexFunction.h>


Detailed Description

Collapse a given edge by joining its dest and its org.

Collapse the argument edge e of Evaluate by joining the two vertices incident to e (i.e. its endpoints). The destination vertex of e is set aside (i.e. disconneted from its edge entry and no edge has this vertex as endpoint). Note that the vertex itself is not removed from the container (and hence there is no loss of geometrical information). On success JoinVertex returns the Id of the disconected vertex (i.e. the destination of e) and it is up to the caller to "take care" of it. Precondition: the edge should be adjacent at least to an other edge (i.e. not be isolated at both endpoints).

Warning:
JoinVertex.Evaluate( h) and JoinVertex.Evaluate( h->GetSym() ) are topologically identical. But their differ in their geometrical result, since JoinVertex removes the destination vertex of the incoming argument. A simple way to visualize this difference is to imagine a mesh constituted of squares layed out on a regular grid and for each such square an added diagonal. No imagine what happens when one operates JoinVertex on a diagonal edge of a corner square (and how it differs with feeding JoinVertex with the opposite edge).
See also:
The operator itkQE::EulerOperatorJoinVertexFunction can be seen as the inverse operator.

The documentation for this class was generated from the following file:

Generated at Tue Sep 15 05:32:45 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000