vectorgraphics / asymptote

2D & 3D TeX-Aware Vector Graphics Language
https://asymptote.sourceforge.io/
GNU General Public License v3.0
542 stars 90 forks source link

Why only `draw` functions for geometry.asy and not `fill` functions as well? #324

Closed jamadagni closed 2 years ago

jamadagni commented 2 years ago

Of course one realizes that one cannot entirely fill a parabola or hyperbola, but certainly one can fill a circle, ellipse and triangle.

Aside from that one can always cast these to paths manually for filling (and in fact the Apollonius circles example does use this method) I suppose one could always cast manually even for drawing and the draw functions are there only for convenience.

CORRECTION: In fact they do some extra work like checking for degenerate cases and then cast. This functionality would be useful for filling too.

So could fill functions also be likewise added is the question?

And for parabola and hyperbola one can fill the intersection of these two with the viewing box.