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

handle nulls in ExtractPolygonsFromElements #161

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jamesbradleym
Copy link
Contributor

@jamesbradleym jamesbradleym commented Jan 5, 2024

Building Blocks contains many functions that are used in Hypar examples and in the Hypar tour. Please ensure that that following are true before granting this PR.

  • The function has been published with staging, (but not released, until this PR is approved).
  • The function has been tested against the tour. If the function is not used in the tour, mark this as not applicable (NA).
  • Strings in hypar.json have been translated to supported languages in the messages field.
  • Any new project added to this repository has been added to BuildingBlocks.sln.

Some elements came in with null values in their SolidOperations and Profiles. This PR bolsters null handling when attempting to extract polygon info from these elements.


This change is Reviewable

…null values in their solidoperations + profiles
@jamesbradleym jamesbradleym requested a review from a team as a code owner January 5, 2024 18:15
@jamesbradleym jamesbradleym requested review from anthonie-kramer and removed request for a team January 5, 2024 18:15
Copy link
Contributor

@anthonie-kramer anthonie-kramer left a comment

Choose a reason for hiding this comment

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

Reviewed all commit messages.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @jamesbradleym)


Grids/Grid/src/Grid.cs line 91 at r1 (raw file):

        private static List<Polygon> ExtractPolygonsFromElements<T>(IEnumerable<T> elements, Func<T, Polygon> getDefaultPolygon) where T : GeometricElement
        {
            List<string> warnings = new List<string>();

Are we intending to add warnings somewhere?

Base automatically changed from update-grid-to-latest-elements-and-function-versions to master January 9, 2024 22:22
Copy link
Contributor Author

@jamesbradleym jamesbradleym left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @anthonie-kramer)


Grids/Grid/src/Grid.cs line 91 at r1 (raw file):

Previously, anthonie-kramer (Anthonie Kramer) wrote…

Are we intending to add warnings somewhere?

Nope, this shouldn't have been added. Removed.

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