fix: data integrity checks - better Stripping issue detection, v1.107.1

This commit is contained in:
Azgaar 2025-02-08 15:12:57 +01:00
parent 5bb33311fb
commit 22636b1b62
5 changed files with 21 additions and 7 deletions

View file

@ -51,6 +51,11 @@ function drawFeatures() {
function getFeaturePath(feature) {
const points = feature.vertices.map(vertex => pack.vertices.p[vertex]);
if (points.some(point => point === undefined)) {
ERROR && console.error("Undefined point in getFeaturePath");
return "";
}
const simplifiedPoints = simplify(points, 0.3);
const clippedPoints = clipPoly(simplifiedPoints, 1);