public void Dispose() { subMesh = IntPtr.Zero; if (vertex != null) { vertex.Dispose(); } if (index != null) { index.Dispose(); } }