Skip to content

Commit

Permalink
Merge pull request #255 from gramaziokohler/bake_component
Browse files Browse the repository at this point in the history
removed old import from bake component
  • Loading branch information
chenkasirer committed Jul 2, 2024
2 parents 523d99d + cf4a33d commit 79798ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 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 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

0 comments on commit 79798ea

Please sign in to comment.