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

bjorn/cnx-835-add-converter-projects-and-top-level-converter #429

Conversation

bjoernsteinhagen
Copy link
Contributor

Description & motivation

Changes:

  • Framework for Speckle.Converters.CSiShared project
  • Single top level converter
  • (Basic implementation) Raw converters for basic geometry types
  • Implemeting CSiWrappers to deal with CSiAPI not returning objects

Screenshots / Validation of changes:

Send working, with result below. Collection structure to be refined as part of CNX-829.

image

Checklist:

  • My pull request follows the guidelines in the Contributing guide?
  • My pull request does not duplicate any other open Pull Requests for the same update/change?
  • My commits are related to the pull request and do not amend unrelated code or documentation.
  • My code follows a similar style to existing code.
  • I have added appropriate tests.
  • I have updated or added relevant documentation.

- Project setup and basic definitions
- Waiting for SDK update
- Abstract TopLevel converter
- Requiring a lot of wrappers and addtional steps to get to converted CSiObject
CSiWrapperBase instead of ICSiWrapper correctly resolves all types
these are gross (just a poc for first send)
Simple organization
Copy link

codecov bot commented Dec 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 9.34%. Comparing base (e777a25) to head (7f1da73).
Report is 1 commits behind head on dev.

Additional details and impacted files
@@          Coverage Diff          @@
##             dev    #429   +/-   ##
=====================================
  Coverage   9.34%   9.34%           
=====================================
  Files        224     224           
  Lines       4246    4246           
  Branches     471     471           
=====================================
  Hits         397     397           
  Misses      3833    3833           
  Partials      16      16           

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

}

// TODO: Frames could be further classified under Columns, Braces and Beams. Same for Shells which could be classified into walls, floors
public Collection GetAndCreateObjectHostCollection(ICSiWrapper csiObject, Collection rootObject)
Copy link
Member

@clairekuang clairekuang Dec 3, 2024

Choose a reason for hiding this comment

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

This could be renamed to AddObjectCollectionToRoot, which would be more descriptive.

Why is the root collection being set to the newly created collection? probably can just return the created one directly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Under commit "AddObjectCollectionToRoot":

  • Agreed. Renamed to AddObjectCollectionToRoot
  • True, unnecessary line removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This comment probably applies to Revit too Revit - SendCollectionManager.cs

Copy link

linear bot commented Dec 3, 2024

PR comments:
- Updated GetAndCreateObjectHostCollection to more descriptive name of AddObjectCollectionToRoot
- Removing unnecessary rootObject = childCollection line
…ects-and-top-level-converter' into bjorn/cnx-835-add-converter-projects-and-top-level-converter
@bjoernsteinhagen bjoernsteinhagen merged commit 2cc09d4 into dev Dec 3, 2024
5 checks passed
@bjoernsteinhagen bjoernsteinhagen deleted the bjorn/cnx-835-add-converter-projects-and-top-level-converter branch December 3, 2024 11:18
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