Skip to main content
2 of 5
added 115 characters in body
Ali Hashmi
  • 9.1k
  • 4
  • 22
  • 43

Polyhedrons are a very new data type and it is not unusual that not all possible functions have been overloaded for them.

You can extract the vertex coordinates of a Polyhedron R with R[[1]]; combined with ConvexHullMesh, this allows you to convert the Polyhedron to a MeshRegion and to apply `RandomPoint:

R = RandomPolyhedron[5];
S = ConvexHullMesh[R[[1]]];
RandomPoint[S]

PS.: I have no clue at all what this new datatype is supposed to ship what is not already provided MeshRegions.

N.B: The above answer will work on very limited cases and will fail for the example polyhedron posted above

Henrik Schumacher
  • 109.5k
  • 7
  • 186
  • 323