Skip to content

Commit

Permalink
promote manifold3d
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedh committed Jul 7, 2024
1 parent e63a5a2 commit 767b991
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ trimesh = [
# this is the base extra most users will want
easy = [
"colorlog",
# "mapbox-earcut", BLOCKED FOR NUMPY2
"manifold3d>=2.3.0", # do boolean operations
"chardet",
"lxml",
"jsonschema",
Expand Down Expand Up @@ -91,7 +91,8 @@ recommend = [
"python-fcl", # do collision checks
"openctm", # load `CTM` compressed models
"cascadio", # load `STEP` files
"manifold3d>=2.3.0" # do boolean operations
"mapbox-earcut", BLOCKED FOR NUMPY2

]

# this is the list of everything that is ever added anywhere
Expand Down
3 changes: 2 additions & 1 deletion trimesh/creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,8 @@ def triangulate_polygon(
"""

if engine is None:
engine = next(name for name, exists in _engines if exists)
# try getting the first engine that is installed
engine = next((name for name, exists in _engines if exists), None)

if polygon is None or polygon.is_empty:
return [], []
Expand Down

0 comments on commit 767b991

Please sign in to comment.