-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
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
There was a problem hiding this 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)
There was a problem hiding this 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!
There was a problem hiding this 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: complete! 1 of 1 approvals obtained, all discussions resolved
Background
We are transitioning space profiles in pringle to be relative to a transform which meaningfully stores its origin and orientation.
Description
Testing
space-relative-profile
branch to ensure that furniture appears to work as expected. Example workflow here: http://localhost:8080/projects/79e06c4f-ede4-478b-b512-64e983186f77This change is