Esempio n. 1
0
 internal PlanktonVertex(float x, float y, float z, PlanktonVertexData data)
 {
     OutgoingHalfedge = -1;
     this.X           = x;
     this.Y           = y;
     this.Z           = z;
     this.data        = data;
 }
Esempio n. 2
0
 /// <summary>
 /// Adds a new vertex to the end of the Vertex list.
 /// </summary>
 /// <param name="data">Vertex data to accompany the vertex.</param>
 public int Add(Vector3 vector, PlanktonVertexData data)
 {
     return(this.Add(new PlanktonVertex(vector.x, vector.y, vector.z, data)));
 }
Esempio n. 3
0
 /// <summary>
 /// Adds a new vertex to the end of the Vertex list.
 /// </summary>
 /// <param name="x">X component of new vertex coordinate.</param>
 /// <param name="y">Y component of new vertex coordinate.</param>
 /// <param name="z">Z component of new vertex coordinate.</param>
 /// <param name="data">Vertex data to accompany the vertex.</param>
 /// <returns>The index of the newly added vertex.</returns>
 public int Add(float x, float y, float z, PlanktonVertexData data)
 {
     return(this.Add(new PlanktonVertex(x, y, z, data)));
 }