Conversation
…ent-math, remove item-mesh-metadata system - Replace runtime mesh-based bounding-box computation with static dimension-based polygons for item footprints - Add snapUpToGridStep() and getGridAlignedDimensions() to placement-math for grid-cell-aligned placement wireframes - Add expandBoundsToGrid() to use-placement-coordinator for consistent wireframe snapping - Add currentCursorRotationY to PlacementContext; preserve world orientation across item-surface transitions - Fix item detach from surface: use worldToBuildingLocal() instead of event.localPosition to avoid coordinate-space jump - Subscribe to useLiveTransforms in FloorplanPanel during placement so R/T keyboard rotation refreshes the 2D overlay immediately - Fix FloorplanItemImage rotation (+180° to account for top-down camera capture orientation) - Simplify spatial-grid-manager: single dimension-based getItemLocalBounds(), removes runtime mesh-metadata path - Remove item-mesh-metadata system (compute-item-mesh-metadata, item-mesh-metadata-system, sync-request)
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Replaces runtime mesh-based bounding-box computation with static dimension-based polygons for item footprints in the 2D floorplan. Previously, a per-frame convex-hull + minimum-area-rect pass over loaded mesh vertices produced the footprint — expensive and inconsistent with the 3D side where dimensions are the source of truth.
Grid-aligned placement wireframe: adds
snapUpToGridStep()andgetGridAlignedDimensions()so the green/red placement box always snaps to a full grid cell, making small items visually reserve the space they actually occupy.expandBoundsToGrid()in the placement coordinator expands the wireframe consistently across floor/ceiling/wall placements.Preserves world rotation across surface transitions: adds
currentCursorRotationYtoPlacementContextso items don't jump orientation when dragged from floor onto a rotated surface item.Fixes item detach from surface: uses building-local world conversion instead of surface-local
event.localPositionto prevent the wireframe teleporting on detach.Floorplan overlay refresh: subscribes to
useLiveTransformsduring item placement so R/T keyboard rotation updates the 2D underlay immediately without requiring a mouse move.Fixes
FloorplanItemImagerotation by +180° to account for top-down camera capture orientation.Removes the
item-mesh-metadatasystem (compute-item-mesh-metadata,item-mesh-metadata-system,sync-request) — no longer needed since footprints use dimensions directly.