feat: Refactor aisle rendering components to use Instances for improved performance and rendering efficiency
This commit is contained in:
@@ -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]))
|
||||
|
||||
Reference in New Issue
Block a user