From 3f71efea6d2b2738cafa011fa330ed02d0a79c9a Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Thu, 18 Jan 2024 09:22:22 +1100 Subject: [PATCH] Fix #4227. Add shapely as an optional dependency for IOS-Python --- src/ifcopenshell-python/ifcopenshell/util/shape.py | 3 ++- src/ifcopenshell-python/pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/util/shape.py b/src/ifcopenshell-python/ifcopenshell/util/shape.py index d628c224a7..b50b762498 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/shape.py +++ b/src/ifcopenshell-python/ifcopenshell/util/shape.py @@ -217,7 +217,8 @@ def get_edges(geometry): def get_faces(geometry): """Get all the faces as a numpy array - Faces are always triangulated. + Faces are always triangulated. If the shape is a BRep and you want to get + the original untriangulated output, refer to ``get_edges``. Results are a nested numpy array e.g. [[f1v1, f1v2, f1v3], [f2v1, f2v2, f2v3], ...] diff --git a/src/ifcopenshell-python/pyproject.toml b/src/ifcopenshell-python/pyproject.toml index b80eefb3ac..2dc57e14a0 100644 --- a/src/ifcopenshell-python/pyproject.toml +++ b/src/ifcopenshell-python/pyproject.toml @@ -15,7 +15,7 @@ classifiers = [ "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)", ] [project.optional-dependencies] -geometry = ["mathutils"] +geometry = ["mathutils", "shapely"] date = ["isodate"] [project.urls] "Homepage" = "http://ifcopenshell.org"