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

Do not break loop if one of the tess objects is empty #988

Merged
merged 4 commits into from
Jul 7, 2023

Conversation

katehryhorenko
Copy link
Contributor

@katehryhorenko katehryhorenko commented Jun 21, 2023

BACKGROUND:
One of the walls from Revit doesn't appear in viewer

DESCRIPTION:
Solid cannot be tessellated when it's an extrusion created from profile where not all points are on the same plane. Even when they are on the same plane but the offset is really small:
image

This offset can produce tess objects without elements.

By replacing "return" with "continue" we are allowing to tesselate this type of extrusions

TESTING:
I published this change to the JSON to Model function (TEST). I tried it on Basic Revit model where I mostly saw this issue.

image

image

REQUIRED:
Do I need to add this change to the backlog?

  • All changes are up to date in CHANGELOG.md.

This change is Reviewable

@katehryhorenko katehryhorenko changed the title Do not break loop if one of the tess objects doesn't have element; Do not break loop if one of the tess objects is empty Jun 21, 2023
Copy link
Member

@wynged wynged left a comment

Choose a reason for hiding this comment

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

I don' think so, I got feedback that some low level fixes like this don't warrant entry in the change log.

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained

Copy link
Member

@wynged wynged left a comment

Choose a reason for hiding this comment

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

oh actually, should we add that file as a test? might be nice

Reviewable status: 1 change requests, 0 of 1 approvals obtained

Copy link
Contributor Author

@katehryhorenko katehryhorenko left a comment

Choose a reason for hiding this comment

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

Done

Reviewable status: 1 change requests, 0 of 1 approvals obtained

Copy link
Member

@wynged wynged left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained

@katehryhorenko katehryhorenko merged commit 260a4f5 into master Jul 7, 2023
2 checks passed
@katehryhorenko katehryhorenko deleted the Bug-some-walls-are-invisible branch July 7, 2023 14:30
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.

None yet

2 participants