@pirireis/webglobeplugins 1.1.3 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -445,7 +445,7 @@ function orderIndcecesAlongArc(triangleMeta, edgePointIndexSets, allLongLats) {
|
|
|
445
445
|
if (indices.length == 0) {
|
|
446
446
|
continue;
|
|
447
447
|
}
|
|
448
|
-
const dimension = Math.abs(arc.normal[2]) < 0.
|
|
448
|
+
const dimension = Math.abs(arc.normal[2]) < 0.001 ? 1 : 0;
|
|
449
449
|
indices.sort((a, b) => {
|
|
450
450
|
return allLongLats[a * 2 + dimension] - allLongLats[b * 2 + dimension];
|
|
451
451
|
});
|