phetsims / kite

A library for creating, manipulating and displaying 2D shapes in JavaScript.
MIT License
12 stars 6 forks source link

Failure on intersection in winding map #91

Open jonathanolson opened 2 years ago

jonathanolson commented 2 years ago

Looks related to https://github.com/phetsims/geometric-optics/issues/72

Reproduction:

const aShape = new kite.Shape( 'M 172.00000000000000000000 39.00000000000000000000 L 172.00000000000000000000 -51.00000000000000000000 L 225.00000000000000000000 -83.00000000000000000000 L 225.00000000000000000000 72.00000000000000000000 L 172.00000000000000000000 39.00000000000000000000 Z ' );
const bShape = new kite.Shape( 'M 239.85954693211317589885 9.90930831842961623579 A 79.71909386422636600855 39.85954693211318300428 450 0 1 160.14045306788682410115 9.90930831842964110479 A 79.71909386422636600855 39.85954693211318300428 450 0 1 239.85954693211317589885 9.90930831842959669586 Z ' );
aShape.shapeIntersection( bShape );