From e0dc7164b0e60cc1343e184b7a4e72de592ef4df Mon Sep 17 00:00:00 2001 From: robin-oval <34314884+robin-oval@users.noreply.github.com> Date: Wed, 11 Sep 2024 18:43:47 +0200 Subject: [PATCH] Fix Mesh.face_circle --- CHANGELOG.md | 1 + src/compas/datastructures/mesh/mesh.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ea2e99166c..597b29ab008 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Fixed args for `SceneObject` on Grasshopper `Draw` component. * Replaced use of `Rhino.Geometry.VertexColors.SetColors` with a for loop and `SetColor` in `compas_ghpyton` since the former requires a `System.Array`. +* Fixed `Mesh.face_circle`. ### Removed diff --git a/src/compas/datastructures/mesh/mesh.py b/src/compas/datastructures/mesh/mesh.py index 5a0a960bd7a..02877ddd33d 100644 --- a/src/compas/datastructures/mesh/mesh.py +++ b/src/compas/datastructures/mesh/mesh.py @@ -4542,7 +4542,7 @@ def face_circle(self, face): from compas.geometry import bestfit_circle_numpy point, normal, radius = bestfit_circle_numpy(self.face_coordinates(face)) - return Circle((point, normal), radius) + return Circle.from_plane_and_radius(Plane(point, normal), radius) def face_frame(self, face): """The frame of a face.