From 879c47875362b97f0f5328930c196e02f2149a8c Mon Sep 17 00:00:00 2001 From: Jerald-Golden-B Date: Thu, 29 May 2025 13:58:32 +0530 Subject: [PATCH] refactor: Add name to wall mesh for better identification in PolygonGenerator --- .../modules/simulation/vehicle/navMesh/polygonGenerator.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/modules/simulation/vehicle/navMesh/polygonGenerator.tsx b/app/src/modules/simulation/vehicle/navMesh/polygonGenerator.tsx index a1bbfb0..54f669b 100644 --- a/app/src/modules/simulation/vehicle/navMesh/polygonGenerator.tsx +++ b/app/src/modules/simulation/vehicle/navMesh/polygonGenerator.tsx @@ -44,7 +44,7 @@ export default function PolygonGenerator({ }); const polygons = turf.polygonize(turf.featureCollection(validLineFeatures)); - + renderWallGeometry(wallPoints); if (polygons.features.length > 0) { @@ -115,6 +115,7 @@ export default function PolygonGenerator({ const quaternion = new THREE.Quaternion(); quaternion.setFromUnitVectors(new THREE.Vector3(1, 0, 0), direction); wallMesh.quaternion.copy(quaternion); + wallMesh.name = "agv-collider"; groupRef.current?.add(wallMesh); }