Package WildMagic.LibImagics.Extraction
Class ExtractSurfaceTetra.Vertex
- java.lang.Object
-
- WildMagic.LibImagics.Extraction.ExtractSurfaceTetra.Vertex
-
- Enclosing class:
- ExtractSurfaceTetra
protected class ExtractSurfaceTetra.Vertex extends java.lang.Object
A rational representation of a level set vertex. The rational form allows for exact look-ups in a hash map of vertices. The class extends Object for hashing support.
-
-
Field Summary
Fields Modifier and Type Field Description int
m_iXDenom
Vertices are stored as rational numbers (xn/xd,yn/yd,zn/zd).int
m_iXNumer
Vertices are stored as rational numbers (xn/xd,yn/yd,zn/zd).int
m_iYDenom
Y rationalint
m_iYNumer
Y rationalint
m_iZDenom
Z rationalint
m_iZNumer
Z rational
-
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 vertices.int
hashCode()
Support for hashing into a map of vertices.
-
-
-
Field Detail
-
m_iXNumer
public int m_iXNumer
Vertices are stored as rational numbers (xn/xd,yn/yd,zn/zd). This supports removing redundant vertices that occur because of extraction in adjacent voxels.
-
m_iXDenom
public int m_iXDenom
Vertices are stored as rational numbers (xn/xd,yn/yd,zn/zd). This supports removing redundant vertices that occur because of extraction in adjacent voxels.
-
m_iYNumer
public int m_iYNumer
Y rational
-
m_iYDenom
public int m_iYDenom
Y rational
-
m_iZNumer
public int m_iZNumer
Z rational
-
m_iZDenom
public int m_iZDenom
Z rational
-
-
Constructor Detail
-
Vertex
public Vertex()
Create a vertex (invalid one since the denominators are zero).
-
Vertex
public Vertex(int iXNumer, int iXDenom, int iYNumer, int iYDenom, int iZNumer, int iZDenom)
Create a vertex.- Parameters:
iXNumer
- a vertex in rational formiXDenom
- XiYNumer
- YiYDenom
- YiZNumer
- ZiZDenom
- Z
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object kObject)
Support for hashing into a map of vertices.- Overrides:
equals
in classjava.lang.Object
- Parameters:
kObject
- a vertex for comparison to the current one- Returns:
- true iff the vertices are identical
-
hashCode
public int hashCode()
Support for hashing into a map of vertices.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- the hash key for the vertex
-
-