import * as THREE from "three"; import { Box, ScreenSizer } from "@react-three/drei"; import * as Constants from "../../../../types/world/worldConstants"; import BoxMaterial from "../../wrappers/materials/boxMaterial"; function ReferencePoint({ point }: { readonly point: Point }) { const boxScale: [number, number, number] = Constants.pointConfig.screenSpaceBoxScale; const colors = { defaultInnerColor: Constants.pointConfig.defaultInnerColor, defaultOuterColor: Constants.pointConfig.helperColor, defaultDeleteColor: Constants.pointConfig.deleteColor, }; if (!point) { return null; } let pointName = "Point"; if (point.pointType === "Wall") { pointName = "Wall-Point"; } else if (point.pointType === "Floor") { pointName = "Floor-Point"; } else if (point.pointType === "Aisle") { pointName = "Aisle-Point"; } else if (point.pointType === "Zone") { pointName = "Zone-Point"; } if (!point) return null; return ( ); } export default ReferencePoint;