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:
meshcompas.datastructures.Mesh

A mesh data structure.

pointssequence[[float, float, float] | compas.geometry.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…