Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- h = 10; r = 2;
- pts = RandomPoint[Sphere[{0, 0, h}, r],
- 1000, {{-r, r}, {-r, r}, {h, h + r}}];
- Graphics3D[{Cylinder[{{0, 0, 0}, {0, 0, h}}, r], Point[pts]}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement