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

Support relative transforms on rooms #102

Merged
merged 7 commits into from
Jul 18, 2024
Merged

Conversation

serenayl
Copy link
Contributor

@serenayl serenayl commented Jul 12, 2024

Background

We are transitioning space profiles in pringle to be relative to a transform which meaningfully stores its origin and orientation.

Description

  • Adds more transform awareness to space layout functions.

Testing


This change is Reviewable

Needs more testing, and this likely breaks something related to corridor-finding/exterior-edge-finding/etc
Have not found a workflow to test this with, but this does not seem to break behavior in Pringle and does not seem to trigger meaningful changes via corp migration
@serenayl serenayl marked this pull request as ready for review July 17, 2024 16:45
Copy link
Member

@andrewheumann andrewheumann left a comment

Choose a reason for hiding this comment

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

Reviewed 6 of 6 files at r1, all commit messages.
Reviewable status: 1 change requests, 0 of 1 approvals obtained, 1 unresolved discussion (waiting on @serenayl)


LayoutFunctions/LayoutFunctionCommon/WallGeneration.cs line 94 at r1 (raw file):

                    wallCandidateLines.AddRange(notAdjacentToFloorBoundary.Select(s =>
                    {
                        if (!orientationGuideEdges.Select(x => x.Line.Line.TransformedLine(room.Transform)).Contains(s.Line))

I think this will always return false, since Contains is a by-reference comparison. I would almost not worry about wall generation, since we don't rely on it for pringle, and in non-pringle workflows, the spaces will always have Z-only transforms. (IOW — maybe we should just leave wall generation unchanged, knowing that it will be broken for pringle workflows)

Copy link
Contributor Author

@serenayl serenayl 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: 1 change requests, 0 of 1 approvals obtained, 1 unresolved discussion (waiting on @andrewheumann)


LayoutFunctions/LayoutFunctionCommon/WallGeneration.cs line 94 at r1 (raw file):

Previously, andrewheumann (Andrew Heumann) wrote…

I think this will always return false, since Contains is a by-reference comparison. I would almost not worry about wall generation, since we don't rely on it for pringle, and in non-pringle workflows, the spaces will always have Z-only transforms. (IOW — maybe we should just leave wall generation unchanged, knowing that it will be broken for pringle workflows)

Ah I misunderstood and thought this was a geometric check. I rolled this back but am keeping the logic related to the orientation edge finding, since that definitely did break things. Published all the layout functions to test mode again!

Copy link
Member

@andrewheumann andrewheumann left a comment

Choose a reason for hiding this comment

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

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

@serenayl serenayl merged commit 0401baf into master Jul 18, 2024
1 check passed
@serenayl serenayl deleted the relative-profile-support branch July 18, 2024 17:35
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