Writing:
Normal@ParametricPlot[{x, x^2 t}, {x, 0, 2}, {t, 0, 1}] /.
p : {__Polygon} :> Graphics`PolygonUtils`PolygonCombine[p]
I get:
but if I write:
Normal@ParametricPlot[{x, x^2 t}, {x, 0, 2}, {t, 0, .1}] /.
p : {__Polygon} :> Graphics`PolygonUtils`PolygonCombine[p]
I get:
How can I avoid this problem by having to use this function?
Answer
A small modification of the original code solves the problem:
Normal@ParametricPlot[{x, x^2 t}, {x, 0, 2}, {t, 0, .1}] /.
p : {{__Polygon} ..} :> Graphics`PolygonUtils`PolygonCombine[p]
The new code also works for the initial problem.
Comments
Post a Comment