diff options
Diffstat (limited to 'Master/texmf-dist/doc/asymptote/examples/planes.asy')
-rw-r--r-- | Master/texmf-dist/doc/asymptote/examples/planes.asy | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/asymptote/examples/planes.asy b/Master/texmf-dist/doc/asymptote/examples/planes.asy new file mode 100644 index 00000000000..da859200f03 --- /dev/null +++ b/Master/texmf-dist/doc/asymptote/examples/planes.asy @@ -0,0 +1,19 @@ +size(6cm,0); +import bsp; + +real u=2.5; +real v=1; + +currentprojection=oblique; + +path3 y=plane((2u,0,0),(0,2v,0),(-u,-v,0)); +path3 l=rotate(90,Z)*rotate(90,Y)*y; +path3 g=rotate(90,X)*rotate(90,Y)*y; + +face[] faces; +filldraw(faces.push(y),project(y),yellow); +filldraw(faces.push(l),project(l),lightgrey); +filldraw(faces.push(g),project(g),green); + +add(faces); + |