Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. m1 = ConvexHullMesh@RandomReal[{0, 1}, {10, 3}];
  2. m2 = ConvexHullMesh@RandomReal[{0, 1}, {10, 3}];
  3. intersection = RegionIntersection[m1, m2];
  4.  
  5. Volume /@ {m1, m2, intersection}
  6.  
  7. RandomPoint@m1 (*works*)
  8. RandomPoint@m2 (*works*)
  9.  
  10. RandomPoint@intersection (*returns CompiledFunction errors*)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement