is_point_in_triangle

compas.geometry.is_point_in_triangle(point, triangle)[source]

Determine if a point is in the interior of a triangle.

Parameters
  • point ([x, y, z] or compas.geometry.Point) – A point.

  • triangle ([point, point, point]) – A triangle.

Returns

boolTrue if the point is in inside the triangle. False otherwise.

Notes

Should the point be on the same plane as the triangle?