trimesh_pull_points_numpy

compas.datastructures.trimesh_pull_points_numpy(mesh, points)[source]

Pull points onto a mesh by computing the closest point on the mesh for each of the points.

Parameters
  • mesh (Mesh) – A mesh data structure.

  • points (sequence[[float, float, float] | Point]) – The input points.

Returns

list[[float, float, float]] – The points on the mesh.

Notes

It will not be verified that the input mesh is a triangle mesh. It will just be treated as if it is…