Skip to content

Commit

Permalink
Merge pull request #287 from gramaziokohler/debug_error_comps
Browse files Browse the repository at this point in the history
fixed errors in debug info components
  • Loading branch information
chenkasirer authored Sep 17, 2024
2 parents b1e2281 + 1cc336b commit ce89386
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 ce89386

Please sign in to comment.