Skip to content

An issue with viewing a model containing surfaces without coords attribute has been fixed#251

Open
samuelduchesne wants to merge 3 commits intojamiebull1:developfrom
samuelduchesne:feature/surface
Open

An issue with viewing a model containing surfaces without coords attribute has been fixed#251
samuelduchesne wants to merge 3 commits intojamiebull1:developfrom
samuelduchesne:feature/surface

Conversation

@samuelduchesne
Copy link
Copy Markdown

@samuelduchesne samuelduchesne commented Nov 18, 2022

@jamiebull1, maybe this could make it to your release. Somehow, this did not trigger CIs.

@samuelduchesne samuelduchesne changed the title An issue with translating surfaces without coordinates has been fixed An issue with viewing a model containing surfaces without coords attribute has been fixed Nov 18, 2022
Copy link
Copy Markdown
Owner

@jamiebull1 jamiebull1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to merge this, but could you please add a test in test_regression which fails without this fix first.

Comment thread geomeppy/view_geometry.py
if surface_type == "shading":
coords = [getcoords(s) for s in surfaces if not hasattr(s, "Surface_Type")]
shading_surfaces = list(
filter(lambda s: s.key in s.theidf.idd_index["ref2names"]["AllShadingSurfNames"], surfaces)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, that's good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants