feat: Refactor aisle rendering components to use Instances for improved performance and rendering efficiency

This commit is contained in:
2025-08-01 09:59:50 +05:30
parent 43dbf9dfaf
commit 0804c22a0b
6 changed files with 198 additions and 219 deletions

View File

@@ -40,7 +40,6 @@ export default function PolygonGenerator({
aisle.type.aisleType === "arc-aisle"
)
arcAndCircleResult.forEach((arc) => {
const arcGroup = scene.getObjectByProperty("uuid", arc.aisleUuid);
if (!arcGroup) return;
@@ -60,7 +59,6 @@ export default function PolygonGenerator({
});
});
const wallPoints: THREE.Vector3[][] = walls
.map((wall) =>
wall.points.map((pt) => new THREE.Vector3(pt.position[0], pt.position[1], pt.position[2]))