2graphic / sinap-ide

Sinap IDE development project.
7 stars 1 forks source link

Simplicial Complexes #153

Open Sheyne opened 7 years ago

Sheyne commented 7 years ago

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

cj-dimaano commented 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.

Sheyne commented 7 years ago

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?

Sheyne commented 7 years ago

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.