is_point_in_polyhedron

compas.geometry.is_point_in_polyhedron(point, polyhedron)[source]

Determine if the point lies inside the given polyhedron.

Parameters
  • point ([float, float, float] | Point) – The test point.

  • polyhedron ([sequence[point], sequence[sequence[int]]] | Polyhedron.) – The polyhedron defined by a sequence of points and a sequence of faces, with each face defined as a sequence of indices into the sequence of points.

Returns

bool – True, if the point lies in the polyhedron. False, otherwise.