diff --git a/CHANGELOG.md b/CHANGELOG.md index cf9dcdaab07..47a47f357fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Changed and updated the `compas_view2` examples into `compas_viewer`. * Changed `compas.scene.Scene` to inherent from `compas.datastructrues.Tree`. * Changed `compas.scene.SceneObject` to inherent from `compas.datastructrues.TreeNode`. +* Changed `compas.geoemetry._core.predicates_3` bug fix in `is_coplanar` while loop when there are 4 points. ### Removed diff --git a/src/compas/geometry/_core/predicates_3.py b/src/compas/geometry/_core/predicates_3.py index b8722422deb..e7dcabc5a53 100644 --- a/src/compas/geometry/_core/predicates_3.py +++ b/src/compas/geometry/_core/predicates_3.py @@ -130,7 +130,7 @@ def is_coplanar(points, tol=None): temp = points[:] - while True: + while len(temp) >= 3: a = temp.pop(0) b = temp.pop(0) c = temp.pop(0)