Skip to content

Instantly share code, notes, and snippets.

@taiya
Created August 23, 2021 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taiya/aba7c7641280fb0105a21935010c7f8a to your computer and use it in GitHub Desktop.
Save taiya/aba7c7641280fb0105a21935010c7f8a to your computer and use it in GitHub Desktop.
# --- save a numpy matrix as an OBJ file
M = np.random.randn(100, 3)
np.savetxt('out.obj', M, fmt=['%d', '%d', '%d'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment