Skip to content

Commit c751b9f

Browse files
authored
Merge pull request #927 from juney-lee/main
add boundingbox to compas_rhino.conduits.BaseConduit
2 parents 8618b98 + 264abfd commit c751b9f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
* Added boundingbox to `compas_rhino.conduits.BaseConduit`
13+
1214
### Changed
1315

1416
* Fixed bug in combination of `compas_rhino.artists.MeshArtist.draw_mesh` and `compas_rhino.utilities.drawing.draw_mesh`.

src/compas_rhino/conduits/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ def enabled(self):
3636
finally:
3737
self.disable()
3838

39+
def CalculateBoundingBox(self, e):
40+
bbox = Rhino.Geometry.BoundingBox(-1000, -1000, -1000, 1000, 1000, 1000)
41+
e.IncludeBoundingBox(bbox)
42+
3943
def enable(self):
4044
"""Enable the conduit."""
4145
self.Enabled = True

0 commit comments

Comments
 (0)