summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/examples
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/examples')
-rw-r--r--Build/source/utils/asymptote/examples/BezierSurface.asy2
-rw-r--r--Build/source/utils/asymptote/examples/condor.asy2
-rw-r--r--Build/source/utils/asymptote/examples/layers.asy44
-rw-r--r--Build/source/utils/asymptote/examples/logo3.asy2
-rw-r--r--Build/source/utils/asymptote/examples/pdb.asy2
-rw-r--r--Build/source/utils/asymptote/examples/pipeintersection.asy2
-rw-r--r--Build/source/utils/asymptote/examples/teapot.asy1
-rw-r--r--Build/source/utils/asymptote/examples/trefoilknot.asy2
-rw-r--r--Build/source/utils/asymptote/examples/wedge.asy2
9 files changed, 52 insertions, 7 deletions
diff --git a/Build/source/utils/asymptote/examples/BezierSurface.asy b/Build/source/utils/asymptote/examples/BezierSurface.asy
index 65410deebca..e87f785c761 100644
--- a/Build/source/utils/asymptote/examples/BezierSurface.asy
+++ b/Build/source/utils/asymptote/examples/BezierSurface.asy
@@ -5,7 +5,7 @@ string viewpoint="{-24.132780075073242 7.2992024421691895 7.695427417755127}{0.8
//viewpoint=getstring("viewpoint",viewpoint);
currentprojection=perspective(viewpoint);
-currentlight=adobe;
+currentlight=White;
triple[][][] P={{
{(-1.6,0,1.875),(-1.6,-0.3,1.875),(-1.5,-0.3,2.1),(-1.5,0,2.1)},
diff --git a/Build/source/utils/asymptote/examples/condor.asy b/Build/source/utils/asymptote/examples/condor.asy
index d109335e3bf..619b4bea12b 100644
--- a/Build/source/utils/asymptote/examples/condor.asy
+++ b/Build/source/utils/asymptote/examples/condor.asy
@@ -6,7 +6,7 @@ import graph3;
size(300,300,IgnoreAspect);
currentprojection=orthographic(0,-1,0,center=true);
-currentlight=adobe;
+currentlight=White;
real K=7;
triple condor(pair t)
diff --git a/Build/source/utils/asymptote/examples/layers.asy b/Build/source/utils/asymptote/examples/layers.asy
new file mode 100644
index 00000000000..4fe745f6a3c
--- /dev/null
+++ b/Build/source/utils/asymptote/examples/layers.asy
@@ -0,0 +1,44 @@
+usepackage("ocg");
+settings.tex="pdflatex";
+
+size(0,150);
+
+pen colour1=red;
+pen colour2=green;
+
+pair z0=(0,0);
+pair z1=(-1,0);
+pair z2=(1,0);
+real r=1.5;
+path c1=circle(z1,r);
+path c2=circle(z2,r);
+
+begin("A");
+fill(c1,colour1);
+end();
+
+fill(c2,colour2);
+
+picture intersection;
+fill(intersection,c1,colour1+colour2);
+clip(intersection,c2);
+
+add(intersection);
+
+draw(c1);
+draw(c2);
+
+label("$A$",z1);
+
+begin("B");
+label("$B$",z2);
+end();
+
+pair z=(0,-2);
+real m=3;
+margin BigMargin=Margin(0,m*dot(unit(z1-z),unit(z0-z)));
+
+draw(Label("$A\cap B$",0),conj(z)--z0,Arrow,BigMargin);
+draw(Label("$A\cup B$",0),z--z0,Arrow,BigMargin);
+draw(z--z1,Arrow,Margin(0,m));
+draw(z--z2,Arrow,Margin(0,m));
diff --git a/Build/source/utils/asymptote/examples/logo3.asy b/Build/source/utils/asymptote/examples/logo3.asy
index 6fc73dc9470..538838e02fa 100644
--- a/Build/source/utils/asymptote/examples/logo3.asy
+++ b/Build/source/utils/asymptote/examples/logo3.asy
@@ -3,7 +3,7 @@ import three;
size(560,320,IgnoreAspect);
size3(140,80,15);
currentprojection=perspective(-3,20,10,up=Y);
-currentlight=adobe;
+currentlight=White;
path[] outline;
diff --git a/Build/source/utils/asymptote/examples/pdb.asy b/Build/source/utils/asymptote/examples/pdb.asy
index bef21dc2277..e06b1241bce 100644
--- a/Build/source/utils/asymptote/examples/pdb.asy
+++ b/Build/source/utils/asymptote/examples/pdb.asy
@@ -6,7 +6,7 @@ import cpkcolors;
bool getviews=true;
-currentlight=adobe;
+currentlight=White;
//currentlight=nolight;
size(200);
diff --git a/Build/source/utils/asymptote/examples/pipeintersection.asy b/Build/source/utils/asymptote/examples/pipeintersection.asy
index b22574c13c2..7e42c17ee51 100644
--- a/Build/source/utils/asymptote/examples/pipeintersection.asy
+++ b/Build/source/utils/asymptote/examples/pipeintersection.asy
@@ -1,7 +1,7 @@
import graph3;
currentprojection=orthographic(5,4,2);
-currentlight=adobe;
+currentlight=White;
size(12cm,0);
diff --git a/Build/source/utils/asymptote/examples/teapot.asy b/Build/source/utils/asymptote/examples/teapot.asy
index e0ef51eb552..2fb6b9b0873 100644
--- a/Build/source/utils/asymptote/examples/teapot.asy
+++ b/Build/source/utils/asymptote/examples/teapot.asy
@@ -3,6 +3,7 @@ import three;
size(20cm);
currentprojection=perspective(250,-250,250);
+//currentlight=White;
triple[][][] Q={
{
diff --git a/Build/source/utils/asymptote/examples/trefoilknot.asy b/Build/source/utils/asymptote/examples/trefoilknot.asy
index fb10e3def0e..3c5e4aecc5a 100644
--- a/Build/source/utils/asymptote/examples/trefoilknot.asy
+++ b/Build/source/utils/asymptote/examples/trefoilknot.asy
@@ -1,7 +1,7 @@
import tube;
import graph3;
import palette;
-currentlight=adobe;
+currentlight=White;
size(0,8cm);
currentprojection=perspective(1,1,1,up=-Y);
diff --git a/Build/source/utils/asymptote/examples/wedge.asy b/Build/source/utils/asymptote/examples/wedge.asy
index 9e0f8355308..6cf6a58975f 100644
--- a/Build/source/utils/asymptote/examples/wedge.asy
+++ b/Build/source/utils/asymptote/examples/wedge.asy
@@ -2,7 +2,7 @@ import graph3;
import solids;
size(0,150);
currentprojection=perspective(8,10,2);
-currentlight=adobe;
+currentlight=White;
draw(circle(O,4,Z));
draw(shift(-4Z)*scale(4,4,8)*unitcylinder,green+opacity(0.2));