Class ModelSurfaceTopology.Triangle
- java.lang.Object
-
- gov.nih.mipav.view.renderer.J3D.model.structures.ModelSurfaceTopology.Triangle
-
- Enclosing class:
- ModelSurfaceTopology
public class ModelSurfaceTopology.Triangle extends java.lang.Object
A representation of a triangle for the vertex-edge-triangle table. This class stores the triple of vertex indices for the vertices of the triangle. The trianglesand are considered to be distinct triangles. The class extends Object to obtain support for hashing into a map of triangles.
-
-
Constructor Summary
Constructors Constructor Description Triangle(int iV0, int iV1, int iV2)
Constructs a triangle in the table.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object kObject)
Support for hashing into a map of triangles.int
hashCode()
Support for hashing into a map of triangles.
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object kObject)
Support for hashing into a map of triangles.- Overrides:
equals
in classjava.lang.Object
- Parameters:
kObject
- a triangle for comparison to the current one- Returns:
- true iff the triangles are identical
-
hashCode
public int hashCode()
Support for hashing into a map of triangles.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- the hash key for the triangle
-
-