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

fix(civil3d): handles property exceptions for corridor elements #508

Merged

Conversation

clairekuang
Copy link
Member

@clairekuang clairekuang commented Jan 20, 2025

Description & motivation

Fixes a community-submitted bug for baseline points on corridors that throw due to accessing an offset from baseline property. This pr will omit the offset property from any point which throws when accessing it.

Also fixes a similar bug in offset alignments, that will throw when accessing offset properties, and now skips null corridor solid ids when extracting displayvalues.

Fixes #506
Fixes #507

Changes:

  • Civil3d converter

Screenshots:

before:
image

after:
{D0C2E1C4-78E7-4438-9531-7366926EA7BB}

full model with offset alignment:
https://latest.speckle.systems/projects/3f895e614f/models/1737754fb4

corridor with the baseline in the viewer: https://latest.speckle.systems/projects/3f895e614f/models/8c1d9068c3fffc232512c87086dcb369

Validation of changes:

Confirmed with the provided test file

Copy link

codecov bot commented Jan 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 9.14%. Comparing base (f02bf26) to head (3fe035d).
Report is 1 commits behind head on dev.

Additional details and impacted files
@@          Coverage Diff          @@
##             dev    #508   +/-   ##
=====================================
  Coverage   9.14%   9.14%           
=====================================
  Files        228     228           
  Lines       4310    4310           
  Branches     543     543           
=====================================
  Hits         394     394           
  Misses      3900    3900           
  Partials      16      16           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@clairekuang clairekuang enabled auto-merge (squash) January 20, 2025 16:56
@clairekuang clairekuang merged commit 00669ea into dev Jan 20, 2025
3 checks passed
@clairekuang clairekuang deleted the claire/cnx-1076-bug-civil-3d-fails-to-push-corridor-error-with branch January 20, 2025 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants