Problem with Graphics`PolygonUtils`PolygonCombine
Clash Royale CLAN TAG#URR8PPP
up vote
7
down vote
favorite
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?
plotting undocumented polygons
add a comment |Â
up vote
7
down vote
favorite
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?
plotting undocumented polygons
add a comment |Â
up vote
7
down vote
favorite
up vote
7
down vote
favorite
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?
plotting undocumented polygons
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?
plotting undocumented polygons
edited Aug 14 at 8:26
Alexey Popkov
37.5k4102254
37.5k4102254
asked Aug 14 at 7:51
TeM
1,643618
1,643618
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
6
down vote
accepted
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.
Thanks, it works perfectly!
â TeM
Aug 14 at 8:44
add a comment |Â
up vote
4
down vote
You can use Graphics`PolygonUtils`PolygonCombine
on all polygons rather than on groups of polygons separately:
pp = ParametricPlot[x, x^2 t, x, 0, 2, t, 0, .1] ;
allpolygons = Join @@ Cases[Normal@pp, __Polygon, Infinity];
Graphics[ EdgeForm[Darker@LightBlue], Opacity[.5, LightBlue],
Graphics`PolygonUtils`PolygonCombine[allpolygons], Options[pp]]
1
(+1) Or simpler:Normal@ParametricPlot[x, x^2 t, x, 0, 2, t, 0, .1] /. p : __Polygon .. :> Graphics`PolygonUtils`PolygonCombine[p]
.
â Alexey Popkov
Aug 14 at 8:36
@AlexeyPopkov, i could have sworn that I tried that first; somehow it didn't work then:) You might want to post that as an answer.
â kglr
Aug 14 at 8:38
Simply brilliant, thanks to both! P.S .: is it possible to find a list of the unofficial features of Wolfram Mathematica?
â TeM
Aug 14 at 8:43
1
@TeM, some are collected in What are some useful, undocumented Mathematica functions?
â kglr
Aug 14 at 8:57
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
6
down vote
accepted
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.
Thanks, it works perfectly!
â TeM
Aug 14 at 8:44
add a comment |Â
up vote
6
down vote
accepted
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.
Thanks, it works perfectly!
â TeM
Aug 14 at 8:44
add a comment |Â
up vote
6
down vote
accepted
up vote
6
down vote
accepted
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.
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.
answered Aug 14 at 8:43
Alexey Popkov
37.5k4102254
37.5k4102254
Thanks, it works perfectly!
â TeM
Aug 14 at 8:44
add a comment |Â
Thanks, it works perfectly!
â TeM
Aug 14 at 8:44
Thanks, it works perfectly!
â TeM
Aug 14 at 8:44
Thanks, it works perfectly!
â TeM
Aug 14 at 8:44
add a comment |Â
up vote
4
down vote
You can use Graphics`PolygonUtils`PolygonCombine
on all polygons rather than on groups of polygons separately:
pp = ParametricPlot[x, x^2 t, x, 0, 2, t, 0, .1] ;
allpolygons = Join @@ Cases[Normal@pp, __Polygon, Infinity];
Graphics[ EdgeForm[Darker@LightBlue], Opacity[.5, LightBlue],
Graphics`PolygonUtils`PolygonCombine[allpolygons], Options[pp]]
1
(+1) Or simpler:Normal@ParametricPlot[x, x^2 t, x, 0, 2, t, 0, .1] /. p : __Polygon .. :> Graphics`PolygonUtils`PolygonCombine[p]
.
â Alexey Popkov
Aug 14 at 8:36
@AlexeyPopkov, i could have sworn that I tried that first; somehow it didn't work then:) You might want to post that as an answer.
â kglr
Aug 14 at 8:38
Simply brilliant, thanks to both! P.S .: is it possible to find a list of the unofficial features of Wolfram Mathematica?
â TeM
Aug 14 at 8:43
1
@TeM, some are collected in What are some useful, undocumented Mathematica functions?
â kglr
Aug 14 at 8:57
add a comment |Â
up vote
4
down vote
You can use Graphics`PolygonUtils`PolygonCombine
on all polygons rather than on groups of polygons separately:
pp = ParametricPlot[x, x^2 t, x, 0, 2, t, 0, .1] ;
allpolygons = Join @@ Cases[Normal@pp, __Polygon, Infinity];
Graphics[ EdgeForm[Darker@LightBlue], Opacity[.5, LightBlue],
Graphics`PolygonUtils`PolygonCombine[allpolygons], Options[pp]]
1
(+1) Or simpler:Normal@ParametricPlot[x, x^2 t, x, 0, 2, t, 0, .1] /. p : __Polygon .. :> Graphics`PolygonUtils`PolygonCombine[p]
.
â Alexey Popkov
Aug 14 at 8:36
@AlexeyPopkov, i could have sworn that I tried that first; somehow it didn't work then:) You might want to post that as an answer.
â kglr
Aug 14 at 8:38
Simply brilliant, thanks to both! P.S .: is it possible to find a list of the unofficial features of Wolfram Mathematica?
â TeM
Aug 14 at 8:43
1
@TeM, some are collected in What are some useful, undocumented Mathematica functions?
â kglr
Aug 14 at 8:57
add a comment |Â
up vote
4
down vote
up vote
4
down vote
You can use Graphics`PolygonUtils`PolygonCombine
on all polygons rather than on groups of polygons separately:
pp = ParametricPlot[x, x^2 t, x, 0, 2, t, 0, .1] ;
allpolygons = Join @@ Cases[Normal@pp, __Polygon, Infinity];
Graphics[ EdgeForm[Darker@LightBlue], Opacity[.5, LightBlue],
Graphics`PolygonUtils`PolygonCombine[allpolygons], Options[pp]]
You can use Graphics`PolygonUtils`PolygonCombine
on all polygons rather than on groups of polygons separately:
pp = ParametricPlot[x, x^2 t, x, 0, 2, t, 0, .1] ;
allpolygons = Join @@ Cases[Normal@pp, __Polygon, Infinity];
Graphics[ EdgeForm[Darker@LightBlue], Opacity[.5, LightBlue],
Graphics`PolygonUtils`PolygonCombine[allpolygons], Options[pp]]
answered Aug 14 at 8:32
kglr
158k8182379
158k8182379
1
(+1) Or simpler:Normal@ParametricPlot[x, x^2 t, x, 0, 2, t, 0, .1] /. p : __Polygon .. :> Graphics`PolygonUtils`PolygonCombine[p]
.
â Alexey Popkov
Aug 14 at 8:36
@AlexeyPopkov, i could have sworn that I tried that first; somehow it didn't work then:) You might want to post that as an answer.
â kglr
Aug 14 at 8:38
Simply brilliant, thanks to both! P.S .: is it possible to find a list of the unofficial features of Wolfram Mathematica?
â TeM
Aug 14 at 8:43
1
@TeM, some are collected in What are some useful, undocumented Mathematica functions?
â kglr
Aug 14 at 8:57
add a comment |Â
1
(+1) Or simpler:Normal@ParametricPlot[x, x^2 t, x, 0, 2, t, 0, .1] /. p : __Polygon .. :> Graphics`PolygonUtils`PolygonCombine[p]
.
â Alexey Popkov
Aug 14 at 8:36
@AlexeyPopkov, i could have sworn that I tried that first; somehow it didn't work then:) You might want to post that as an answer.
â kglr
Aug 14 at 8:38
Simply brilliant, thanks to both! P.S .: is it possible to find a list of the unofficial features of Wolfram Mathematica?
â TeM
Aug 14 at 8:43
1
@TeM, some are collected in What are some useful, undocumented Mathematica functions?
â kglr
Aug 14 at 8:57
1
1
(+1) Or simpler:
Normal@ParametricPlot[x, x^2 t, x, 0, 2, t, 0, .1] /. p : __Polygon .. :> Graphics`PolygonUtils`PolygonCombine[p]
.â Alexey Popkov
Aug 14 at 8:36
(+1) Or simpler:
Normal@ParametricPlot[x, x^2 t, x, 0, 2, t, 0, .1] /. p : __Polygon .. :> Graphics`PolygonUtils`PolygonCombine[p]
.â Alexey Popkov
Aug 14 at 8:36
@AlexeyPopkov, i could have sworn that I tried that first; somehow it didn't work then:) You might want to post that as an answer.
â kglr
Aug 14 at 8:38
@AlexeyPopkov, i could have sworn that I tried that first; somehow it didn't work then:) You might want to post that as an answer.
â kglr
Aug 14 at 8:38
Simply brilliant, thanks to both! P.S .: is it possible to find a list of the unofficial features of Wolfram Mathematica?
â TeM
Aug 14 at 8:43
Simply brilliant, thanks to both! P.S .: is it possible to find a list of the unofficial features of Wolfram Mathematica?
â TeM
Aug 14 at 8:43
1
1
@TeM, some are collected in What are some useful, undocumented Mathematica functions?
â kglr
Aug 14 at 8:57
@TeM, some are collected in What are some useful, undocumented Mathematica functions?
â kglr
Aug 14 at 8:57
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f179987%2fproblem-with-graphicspolygonutilspolygoncombine%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password