Package WildMagic.LibImagics.Extraction
Class ExtractSurfaceCubes.Triangle
- java.lang.Object
-
- WildMagic.LibImagics.Extraction.ExtractSurfaceCubes.Triangle
-
- Enclosing class:
- ExtractSurfaceCubes
protected class ExtractSurfaceCubes.Triangle extends java.lang.Object
The triangle just stores vertex indices and is unconcerned about the actual vertex locations. The class extends Object for hashing support.
-
-
Constructor Summary
Constructors Constructor Description Triangle(int iV0, int iV1, int iV2)
Create a triangle.
-
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.
-
-
-
Constructor Detail
-
Triangle
public Triangle(int iV0, int iV1, int iV2)
Create a triangle. The triangleis considered to be different than . To minimize computation time in comparisons during hashing, the triangle is stored so that the minimum index occurs first. - Parameters:
iV0
- a triangle vertexiV1
- a triangle vertexiV2
- a triangle vertex
-
-
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
-
-