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

fixed errors in debug info components #287

Merged
merged 1 commit into from
Sep 17, 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
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
Loading