is_coplanar
- compas.geometry.is_coplanar(points, tol=None)[source]
Determine if the points are coplanar.
- Parameters:
- pointssequence[point]
A sequence of point locations.
- tolfloat, optional
A tolerance for planarity validation.
- Returns:
- bool
True if the points are coplanar. False otherwise.
See also
Notes
Compute the normal vector (cross product) of the vectors formed by the first three points. Taking the first point as base point, include one more vector at a time and check if that vector is perpendicular to the normal vector. If all vectors are perpendicular, the points are coplanar.