static IndicesGroup GenerateSquare() { IndicesGroup indicesGroup = new IndicesGroup(); indicesGroup.indices = new int[5]; for (int i = 0; i < 4; i++) { indicesGroup.indices[i] = i; } indicesGroup.indices[4] = 0; return(indicesGroup); }
static void Link2LowerDimensions(Node dim) { //Create connections and link both dimensions together int min1Length = dim.left.vertices.Count; for (int i = 0; i < min1Length; i++) { //color IndicesGroup indicesGroup = new IndicesGroup(); indicesGroup.indices = new int[2]; indicesGroup.indices[0] = i; indicesGroup.indices[1] = i + min1Length; dim.indicesGroups.Add(indicesGroup); } }