Exemple #1
0
    void AddLowerDimensionVertices(NDCube min1DimensionCube, float newValue)
    {
        //Copy vertices from lower dimension, and add the newValue at the end of the vertex
        //if lower dimension = 2,  copy x y, and add z as newValue;

        for (int i = 0; i < min1DimensionCube.vertices.Count; i++)
        {
            VectorN newDimensionVertex = new VectorN(min1DimensionCube.vertices[i]);
            newDimensionVertex.AddDimension(newValue);
            vertices.Add(newDimensionVertex);
        }
    }