Package WildMagic.LibImagics.Extraction
Class ExtractSurfaceTetra.Triangle
- java.lang.Object
 - 
- WildMagic.LibImagics.Extraction.ExtractSurfaceTetra.Triangle
 
 
- 
- Enclosing class:
 - ExtractSurfaceTetra
 
protected class ExtractSurfaceTetra.Triangle extends java.lang.ObjectA rational representation of a level set triangle. The triangle just stores vertex indices and is unconcerned about the actual vertex locations. The class extends Object for hashing support. 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object kObject)Support for hashing into a map of triangles.inthashCode()Support for hashing into a map of triangles. 
 - 
 
- 
- 
Constructor Detail
- 
Triangle
public Triangle()
Create a triangle (invalid one since the indices are negative). 
- 
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:
 equalsin 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:
 hashCodein classjava.lang.Object- Returns:
 - the hash key for the triangle
 
 
 - 
 
 -