t102DrawMesh.m 239 B

123456789101112
  1. % Load a mesh in OFF format
  2. V = py.igl.eigen.MatrixXd();
  3. F = py.igl.eigen.MatrixXi();
  4. py.igl.readOFF('../tutorial/shared/beetle.off', V, F);
  5. V
  6. % Plot the mesh
  7. viewer = py.tcpviewer.TCPViewer()
  8. viewer.data.set_mesh(V, F)
  9. viewer.launch()