Skip to content

Commit

Permalink
Merge pull request #1412 from compas-dev/boolean_plugins
Browse files Browse the repository at this point in the history
added missing boolean plugins
  • Loading branch information
chenkasirer authored Nov 14, 2024
2 parents 46b2863 + 8fe2ed8 commit 915d46c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

* Fixed `PluginNotInstalledError` when using `Brep.from_boolean_*` in Rhino.

### Removed


Expand Down
15 changes: 15 additions & 0 deletions src/compas_rhino/geometry/brep/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,18 @@ def from_mesh(*args, **kwargs):
@plugin(category="factories", requires=["Rhino"])
def from_loft(*args, **kwargs):
return RhinoBrep.from_loft(*args, **kwargs)


@plugin(category="factories", requires=["Rhino"])
def from_boolean_difference(*args, **kwargs):
return RhinoBrep.from_boolean_difference(*args, **kwargs)


@plugin(category="factories", requires=["Rhino"])
def from_boolean_intersection(*args, **kwargs):
return RhinoBrep.from_boolean_intersection(*args, **kwargs)


@plugin(category="factories", requires=["Rhino"])
def from_boolean_union(*args, **kwargs):
return RhinoBrep.from_boolean_union(*args, **kwargs)

0 comments on commit 915d46c

Please sign in to comment.