Sean

Results 36 comments of Sean

The `polygonFromGeoJSON` function should work on `Polygon` and `MultiPolygon` GeoJSON types. It should convert a GeoJSON object to a polybooljs polygon. The easiest way to explain the inverted flag is...

Right, so the object that has `"type": "Polygon"` is what needs to be passed to `polygonFromGeoJSON`, i.e., `data[n].geometry`. Yes, `polygonFromGeoJSON` will fill out the inverted flag.

> So does this library returns holes when taking union ? it could if that's the correct answer, you can play with the demo and see for yourself by dragging...

sure submit a PR I'll take a look

Hmm, I don't know. Assuming you read my tutorial on the algorithm ([here](http://sean.cm/a/polygon-clipping-pt2)), I think changing the fill rules should only change the fill annotation logic. Then the rest of...

This is really interesting. Did you pull these from a math reference, or did you derive them yourself? I really want to understand the ideas behind this, do you know...

Thanks for your help. I don't want to merge until my understanding is better. I will recommend people try these changes if they have epsilon issues in the meantime. Generally,...

FYI, there is an open PR for better (?) epsilon calculations, here: https://github.com/voidqk/polybooljs/pull/8 I haven't tested it in depth, but maybe it is worth your time.

Yes, sorry for the delay -- the types are probably good enough for the public API, but the details are wrong. For more accurate types, I would like segments and...

The `Flavor` strategy in this blog post might be a good way to do opaque types in TS: https://spin.atomicobject.com/2018/01/15/typescript-flexible-nominal-typing/ Something like: ``` type Segments = { _type?: 'PolyboolJsSegments' }; type...