private static void AssertShape(I3DShape shape, string name, uint shapeId, int vertexCount, int faceCount) { Assert.Equal(name, shape.Name); Assert.Equal(shapeId, shape.Id); Assert.Equal(vertexCount, shape.Positions.Length); Assert.Equal(vertexCount, shape.Normals.Length); Assert.Equal(vertexCount, shape.UVs.Length); Assert.Equal(faceCount, shape.Triangles.Length); }
static void Main(string[] args) { var circle = new Circle(); I2DShape circle2d = circle; I3DShape circle3d = circle; circle2d.Draw(); circle3d.Draw(); }