pub fn sample_surface(mesh: &Mesh, max_samples: usize) -> Result<Vec<[f64; 3]>>Expand description
Up to max_samples evenly spaced points on the surface of mesh, in its
stored local coordinates, without the origin: its triangles’ centroids,
then the vertices its triangles use, the first of each stride of the two
lists together.
Vertices alone will not do on a coarse mesh: a vertex is equally close to all the triangles around it, so its correspondences do not see all of a corner’s planes (a box’s eight corners can all report the same two faces).
§Errors
OpsError::Store when out of memory.