Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed old import from bake component #255

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 error in BakeWithBoxMap component.

### Removed


Expand Down
Binary file modified examples/Grasshopper/dynamic_gh_demo.gh
Binary file not shown.
6 changes: 1 addition & 5 deletions src/compas_timber/ghpython/components/CT_Bake_BoxMap/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
from Rhino.Geometry import Plane
from Rhino.RhinoDoc import ActiveDoc

from compas_timber.consumers import BrepGeometryConsumer


class BakeBoxMap(component):
def RunScript(self, model, map_size, bake):
Expand All @@ -39,10 +37,8 @@ def RunScript(self, model, map_size, bake):
return

try:
geometries = BrepGeometryConsumer(model).result

frames = [frame_to_rhino(b.frame) for b in model.beams]
breps = [g.geometry.native_brep for g in geometries]
breps = [beam.geometry.native_brep for beam in model.beams]

if frames and breps:
rs.EnableRedraw(False)
Expand Down
Loading