I have a (vaguely) complex curve with some self-intersections, and I would like to add a filling to the interior. However, the recommended method (of turning Line
s into FilledCurve
s), i.e. by doing something like
ParametricPlot[
{Cos[t] + 2 Cos[2 t], Sin[t] - 2 Sin[2 t]}
, {t, 0, 2 π}
, Frame -> True
] /. {Line[pts_] :> {FilledCurve[{Line[pts]}]}}
is unsatisfactory, since, as the documentation puts it,
Filled curves can be non-convex and intersect themselves. Self-intersecting curves are filled according to an even-odd rule that alternates between filling and not at each crossing.
This puts a big hole in the middle of my figure that I would also like to fill:
How can I control the filling in that hole?
ParametricPlot[ r {Cos[t] + 2 Cos[2 t], Sin[t] - 2 Sin[2 t]}, {t, 0, 2 Pi}, {r, 0, 1}, Frame -> True]
$\endgroup$