public void Draw(SlimDX.Direct3D10.Device device, int startFace, int nFaces) { if (MeshType == MeshType.Indexed) device.DrawIndexed(nFaces * 3, startFace * 3, 0); else if (MeshType == MeshType.TriangleStrip || MeshType == MeshType.PointList || MeshType == MeshType.LineStrip) device.Draw(NVertices, 0); else throw new NotImplementedException(); }