GridView
Class MyVertex
java.lang.Object
GridView.MyVertex
class MyVertex
- extends java.lang.Object
Internal class used in marshalling the vertex related data and putting
things in order before a Vertex can be constructed.
This class differs from Vertex class in that it has a iNewVertexNum
field. It is mainly used when the initial vertex numbering (read from
input file) needs to change. For instance, if a surface mesh is
being extracted from a three dimensional mesh, internal vertices
will disappear and to keep the vertex numbers contiguous, a
re-numbering is essential.
For all other cases (when no re-numbering is needed), Vertex class
should be used. (@see GeomRep.Vertex)
- Since:
- 1.0
Constructor Summary |
MyVertex(float[] coor)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mCoord
private float[] mCoord
iNewVertexNum
private int iNewVertexNum
MyVertex
public MyVertex(float[] coor)
GetCoordinates
public float[] GetCoordinates()
- Get vertex coordinate array.
- Returns:
- Vertex coordinate array.
SetNewVertexNum
public void SetNewVertexNum(int newNum)
- Set new number corresponding to this vertex.
- Parameters:
newNum
- New vertex number.
GetNewVertexNum
public int GetNewVertexNum()
- Get new number corresponding to this vertex.
- Returns:
- New vertex number.