Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. import numpy as np
  2. from scipy.spatial import Delaunay
  3.  
  4. #do triangulation
  5. points = np.random.rand(4, 3)
  6. tri = Delaunay(points)
  7.  
  8. #indices
  9. tri.simplices
  10.  
  11. #points
  12. tri.points
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement