mirror of
https://github.com/skishore/makemeahanzi.git
synced 2025-11-01 20:27:44 +08:00
Add to stroke-extraction black magic
This commit is contained in:
@ -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]];
|
||||
|
||||
Reference in New Issue
Block a user