пороговое значение дискретизации

This commit is contained in:
Kseninia Mikhaylova 2024-05-20 09:58:18 +03:00
parent b76f9655bc
commit 228f524aa3
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ const startToEndPath = ref()
const plan = useFloorplanStore()
const paths = ref<PathItem[]>([])
const finder = new PF.DijkstraFinder();
const finder = new PF.AStarFinder();
const newDraw = () => {
endPoint.value = undefined

View File

@ -27,7 +27,7 @@ export const useFloorplanStore = defineStore('floorplan', {
})
})
return line_data.map(el => {
return el.filter(e => e > 0).length > 0 ? 1 : 0
return el.filter(e => e > 0).length > 10 ? 1 : 0
})
});
} catch (error) {