buildLine static method
Implementation
static buildLine(List<Coordinate> pts) {
VWVertex? first;
VWVertex? prev;
for (var pt in pts) {
var v = VWVertex(pt);
if (first == null) {
first = v;
}
v.setPrev(prev);
if (prev != null) {
prev.setNext(v);
prev.updateArea();
}
prev = v;
}
return first;
}