Class ModelSurfaceTopology.Edge
java.lang.Object
gov.nih.mipav.view.renderer.J3D.model.structures.ModelSurfaceTopology.Edge
- Enclosing class:
ModelSurfaceTopology
A representation of an edge for the vertex-edge-triangle table. This class stores the pair of vertex indices for
the end points of the edge. The edges invalid input: '<'V0,V1> and invalid input: '<'V1,V0> are considered to be identical. To simplify
comparisons, the class stores the ordered indices. The class extends Object to obtain support for hashing into a
map of edges.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
m_iV0
public int m_iV0DOCUMENT ME! -
m_iV1
public int m_iV1DOCUMENT ME!
-
-
Constructor Details
-
Edge
public Edge(int iV0, int iV1) Constructs an edge in the table.- Parameters:
iV0- a vertex index for an end pointiV1- a vertex index for an end point
-
-
Method Details
-
equals
Support for hashing into a map of edges.- Overrides:
equalsin classObject- Parameters:
kObject- an edge for comparison to the current one- Returns:
- true iff the edges are identical. Because the class stores ordered indices, it is not necessary to use the more expensive test (V0 == other.V0 invalid input: '&'invalid input: '&' V1 == other.V1) || (V0 == other.V1 invalid input: '&'invalid input: '&' V1 == other.V0).
-
hashCode
public int hashCode()Support for hashing into a map of edges.
-