line[i] = getRelPointOnEdge(edge, scalar, thrsh);
if (edge.isOuter()) {// add line segments along outer edge
//find node above threshold
Node2D n = edge.getNode(0);
if (scalar[edge.getNode(1).getIndex()] >= thrsh) {
n = edge.getNode(1);
}
// add line from intersection to node
lines.add(new Point2f[]{line[i], n.getPoint2f()});
}
i++;
} else if(edge.isOuter()){ // min is also >= thrsh
lines.add(edge.getNodesAsPoints());