diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /graphics/asymptote/doc/planes.asy |
Initial commit
Diffstat (limited to 'graphics/asymptote/doc/planes.asy')
-rw-r--r-- | graphics/asymptote/doc/planes.asy | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/graphics/asymptote/doc/planes.asy b/graphics/asymptote/doc/planes.asy new file mode 100644 index 0000000000..a3aeb252e2 --- /dev/null +++ b/graphics/asymptote/doc/planes.asy @@ -0,0 +1,18 @@ +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); |