public void CalculateCubeIndex_Test(byte c1, byte c2, byte c3, byte c4, byte c5, byte c6, byte c7, byte c8, byte isolevel, byte expectedCubeIndex) { VoxelCorners <byte> densities = new VoxelCorners <byte> { Corner1 = c1, Corner2 = c2, Corner3 = c3, Corner4 = c4, Corner5 = c5, Corner6 = c6, Corner7 = c7, Corner8 = c8 }; byte cubeIndex = MarchingCubesFunctions.CalculateCubeIndex(densities, isolevel); Assert.AreEqual(expectedCubeIndex, cubeIndex); }
public void CalculateCubeIndex_Test(float c1, float c2, float c3, float c4, float c5, float c6, float c7, float c8, float isolevel, int expectedCubeIndex) { VoxelCorners <float> densities = new VoxelCorners <float>() { Corner1 = c1, Corner2 = c2, Corner3 = c3, Corner4 = c4, Corner5 = c5, Corner6 = c6, Corner7 = c7, Corner8 = c8 }; int cubeIndex = MarchingCubesFunctions.CalculateCubeIndex(densities, isolevel); Assert.AreEqual(expectedCubeIndex, cubeIndex); }