summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/examples/vertexshading.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/examples/vertexshading.asy')
-rw-r--r--Build/source/utils/asymptote/examples/vertexshading.asy5
1 files changed, 5 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/examples/vertexshading.asy b/Build/source/utils/asymptote/examples/vertexshading.asy
index 13821ec0058..a5555d66f70 100644
--- a/Build/source/utils/asymptote/examples/vertexshading.asy
+++ b/Build/source/utils/asymptote/examples/vertexshading.asy
@@ -7,3 +7,8 @@ currentprojection=perspective(4,5,5);
draw(surface(unitcircle3,new pen[] {red,green,blue,black}));
draw(surface(shift(Z)*unitsquare3,
new pen[] {red,green+opacity(0.5),blue,black}));
+draw(surface(shift(X)*((0,0,0)..controls (1,0,0) and (2,0,0)..(3,0,0)..
+ controls (2.5,sqrt(3)/2,0) and (2,sqrt(3),0)..
+ (1.5,3*sqrt(3)/2,0)..
+ controls (1,sqrt(3),0) and (0.5,sqrt(3)/2,0)..cycle),
+ new triple[] {(1.5,sqrt(3)/2,2)},new pen[] {red,green,blue}));