distance3d.containment_test.points_in_convex_mesh¶
- distance3d.containment_test.points_in_convex_mesh(points, mesh2origin, vertices, triangles)[source]¶
Test if points are in convex mesh.
- Parameters:
- pointsarray, shape (n_points, 3)
Points.
- mesh2originarray, shape (4, 4)
Pose of the mesh.
- verticesarray, shape (n_vertices, 3)
Vertices of the mesh.
- trianglesarray, shape (n_triangles, 3)
Indices of vertices that form triangles of the mesh. Face normals must point outwards.
- Returns:
- containedarray, shape (n_points,)
Boolean array indicating whether each point is contained or not.