Open Sheyne opened 7 years ago
It wouldn't be too difficult; although, I'm not sure how appropriate the method would be, since canvas basically takes care of the computational stuff for filling in between the lines.
The basic approach would be to coalesce the edges of interest into a single path, then just call fill()
on that path.
What if there were an api to specify a Set<Set<DrawableEdge>>
to keep filled and there we some way for plugins to access this api? Possibly via computed properties?
Or a Node
tagged that tagged an edge set it wanted filled, like a node that represented the triangle, and was shaped like its bordering edges?
For my use case, this would be perfect.
How hard would it be to allow the region bounded by a set of edges to be filled in? This would be useful for my computational topology class