Merge remote-tracking branch 'origin/dev-r3f-wall' into merge/wall-collab
This commit is contained in:
@@ -85,9 +85,12 @@ export function useWallClassification(walls: Walls) {
|
||||
}));
|
||||
}
|
||||
|
||||
const allCoords = mergedLineStrings.flatMap(ls => ls.geometry.coordinates);
|
||||
const uniqueCoords = Array.from(new Set(allCoords.map(coord => coord.join(','))));
|
||||
if (uniqueCoords.length < 4) return [];
|
||||
|
||||
const lineStrings = turf.featureCollection(mergedLineStrings);
|
||||
|
||||
// Now polygonize merged line strings
|
||||
const polygons = turf.polygonize(lineStrings);
|
||||
|
||||
const rooms: Point[][] = [];
|
||||
|
||||
Reference in New Issue
Block a user