Tweeted twitter.com/StackMma/status/812422865060564992
2 added 542 characters in body
source | link

How to plot a random points on the Cuboid?

Graphics3D[{Yellow, Opacity[0.3], Cuboid[{0, 0, 0}, {1, 3, 1}]}, Boxed -> False]

enter image description here

And how can I use FindShortestTour for the given random points on the cuboid?

It's easy to generate random points and use FindShortestTour inside cuboid

pts = RandomPoint[Cuboid[{0, 0, 0}, {1, 3, 1}], 500];
Graphics3D[{Blue, PointSize[Medium], Point[pts]}]

enter image description here

Graphics3D[{Line[pts[[FindShortestTour[pts][[2]]]]], 
PointSize[Medium], Blue, Point[pts]}]

enter image description here

but I need to generate random points on the cuboid surface

How to plot a random points on the Cuboid?

Graphics3D[{Yellow, Opacity[0.3], Cuboid[{0, 0, 0}, {1, 3, 1}]}, Boxed -> False]

enter image description here

And how can I use FindShortestTour for the given random points on the cuboid?

How to plot a random points on the Cuboid?

Graphics3D[{Yellow, Opacity[0.3], Cuboid[{0, 0, 0}, {1, 3, 1}]}, Boxed -> False]

enter image description here

And how can I use FindShortestTour for the given random points on the cuboid?

It's easy to generate random points and use FindShortestTour inside cuboid

pts = RandomPoint[Cuboid[{0, 0, 0}, {1, 3, 1}], 500];
Graphics3D[{Blue, PointSize[Medium], Point[pts]}]

enter image description here

Graphics3D[{Line[pts[[FindShortestTour[pts][[2]]]]], 
PointSize[Medium], Blue, Point[pts]}]

enter image description here

but I need to generate random points on the cuboid surface

1
source | link

Random points on the Cuboid, and using FindShortestTour

How to plot a random points on the Cuboid?

Graphics3D[{Yellow, Opacity[0.3], Cuboid[{0, 0, 0}, {1, 3, 1}]}, Boxed -> False]

enter image description here

And how can I use FindShortestTour for the given random points on the cuboid?