public Vertex3f(Vertex3f that) : this(that.x, that.y, that.z) { if (that.normal != null) { this.normal = new OpenTK.Vector3(that.normal.X, that.normal.Y, that.normal.Z); } }
public Corner(int vertexIndex, Vertex3f vertex, Colour4f colour, int triangleNumber) { this.vertexIndex = vertexIndex; this.triangleNumber = triangleNumber; this.visited = false; this.colour = new Colour4f(colour); this.textured = false; this.textureCenter = false; this.branched = false; this.textureCoordinates = new OpenTK.Vector2(0.0f, 0.0f); this.vertex = vertex; }
private static int findFirstIndex(List<Vertex3f> list, Vertex3f vertex) { for (int index = 0; index < list.Count;) { if (list[index] == vertex) { //Log.writeDebug("Two Vertices that are equal have the following coords: \n" + list[index] + "\n" + vertex); return index; } index++; } return -1; }