diff --git a/frontend/src/pages/Facility3DViewerPage.tsx b/frontend/src/pages/Facility3DViewerPage.tsx index 1a6e14a..072ba35 100644 --- a/frontend/src/pages/Facility3DViewerPage.tsx +++ b/frontend/src/pages/Facility3DViewerPage.tsx @@ -65,7 +65,7 @@ function PlantInstances({ positions, onPlantClick }: { positions: any[], onPlant return ( - {/* Active Plants */} + {/* Active Plants - Render as Cylinders (Stalks/Canopy) for visibility */} {plants.length > 0 && ( - + {/* Make plants much taller and visible: Cylinder radius 0.2, height 0.8 */} + {plants.map((pos, i) => ( )} - {/* Empty Slots */} + {/* Empty Slots - Keep subtle but visible */} {emptySlots.length > 0 && ( - - + + {emptySlots.map((pos, i) => ( {room.name} - {/* Floor Plane */} + {/* Floor Plane - Darker for contrast */} - + + {/* Room Border/Walls */} + + + + + {/* Render sections and positions */} {room.sections.map(section => { // Calculate positions for this section @@ -151,10 +161,10 @@ function FacilityScene({ data, onSelectPlant }: { data: Floor3DData, onSelectPla return ( - {/* Section Label */} + {/* Section Label - Lifted higher */} {section.code} @@ -170,16 +180,26 @@ function FacilityScene({ data, onSelectPlant }: { data: Floor3DData, onSelectPla return ( <> - - - + + + {roomMeshes} - - + {/* Improved Controls: Allow panning, damping for smoothness */} + + + ); } @@ -227,6 +247,7 @@ export default function Facility3DViewerPage() {

{floorData ? `${floorData.floor.name} • ${floorData.stats.occupiedPositions} Plants` : 'Loading...'}

+

Controls: Left Click=Rotate, Right Click=Pan, Scroll=Zoom

@@ -287,7 +308,7 @@ export default function Facility3DViewerPage() { )} - + Loading 3D Scene...}> {floorData && (