Fix #4227. Add shapely as an optional dependency for IOS-Python

This commit is contained in:
Dion Moult
2024-01-18 09:22:22 +11:00
parent 658095ea29
commit 881f38e163
2 changed files with 3 additions and 2 deletions
@@ -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], ...]
+1 -1
View File
@@ -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"