Fix Index adjustment at the beginning of the ring
This commit is contained in:
@@ -77,7 +77,7 @@ function findUniqueVertex(
|
|||||||
i += direction * stride;
|
i += direction * stride;
|
||||||
if (i >= end) {
|
if (i >= end) {
|
||||||
i = offset;
|
i = offset;
|
||||||
} else if (i <= offset) {
|
} else if (i < offset) {
|
||||||
i = end - stride;
|
i = end - stride;
|
||||||
}
|
}
|
||||||
x = flatCoordinates[i];
|
x = flatCoordinates[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user