Skip to content

Commit

Permalink
fixed errors in debug info components
Browse files Browse the repository at this point in the history
  • Loading branch information
chenkasirer committed Sep 16, 2024
1 parent b1e2281 commit 1cc336b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Changed `TimberModel.plates` to return generator of `Plate` elements.
* Changed `TimberModel.joints` to return generator of `Joint` elements.
* Fixed polyline analysis for generating `SurfaceModel`
* Fixed errors in debug info components.

### Removed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def RunScript(self, debug_info, index):
index = int(index) % len(feature_errors)
error = feature_errors[index]

geometries = [error.feature_geometry, error.beam_geometry]
geo_objs = [SceneObject(geo) for geo in geometries]
geometries = [error.feature_geometry, error.element_geometry]
geo_objs = [SceneObject(item=geo) for geo in geometries]
output = []
for obj in geo_objs:
output.extend(obj.draw())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def RunScript(self, debug_info, index):

geometries = [beam.blank for beam in error.beams]
geometries.extend(error.debug_geometries)
geo_objs = [SceneObject(geo) for geo in geometries]
geo_objs = [SceneObject(item=geo) for geo in geometries]
output = []
for obj in geo_objs:
output.extend(obj.draw())
Expand Down

0 comments on commit 1cc336b

Please sign in to comment.