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
bool –
Trueif the point is in inside the triangle.Falseotherwise.
Notes
Should the point be on the same plane as the triangle?