Add to stroke-extraction black magic

This commit is contained in:
Shaunak Kishore
2015-09-13 14:43:12 -04:00
parent b028ef4886
commit 95053df1e0

View File

@ -349,7 +349,7 @@ function extract_stroke(paths, endpoint_map, bridge_adjacency, log,
// Here there be dragons!
// TODO(skishore): Document the point of the geometry in this function.
function select_bridge(endpoint, options) {
if (options.length === 1) {
if (options.length === 1 && extracted_indices[Point.key(options[0])]) {
// Handle star-shaped strokes where one stroke ends at the intersection
// of the bridges used by two other strokes.
var indices1 = [endpoint.index, options[0]];