summaryrefslogtreecommitdiff
path: root/Master/texmf/asymptote/obj.asy
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-10-02 21:03:33 +0000
committerKarl Berry <karl@freefriends.org>2009-10-02 21:03:33 +0000
commit464da9a3c69fbde9a2d0981dcdff1330eb4a4296 (patch)
tree25a987e340b17089b18f1ecd55ea5dba8b43cd9b /Master/texmf/asymptote/obj.asy
parent42f3026da4fb6ba350f688a92a783b868725c780 (diff)
asymptote 1.88
git-svn-id: svn://tug.org/texlive/trunk@15589 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/asymptote/obj.asy')
-rw-r--r--Master/texmf/asymptote/obj.asy9
1 files changed, 9 insertions, 0 deletions
diff --git a/Master/texmf/asymptote/obj.asy b/Master/texmf/asymptote/obj.asy
index 158d417c136..0a6c4ab047c 100644
--- a/Master/texmf/asymptote/obj.asy
+++ b/Master/texmf/asymptote/obj.asy
@@ -98,6 +98,15 @@ struct obj {
}
}
+obj operator * (transform3 T, obj o)
+{
+ obj ot;
+ ot.s=T*o.s;
+ ot.surfacepen=copy(o.surfacepen);
+ ot.meshpen=copy(o.meshpen);
+ return ot;
+}
+
void draw(picture pic=currentpicture, obj o, light light=currentlight)
{
draw(pic,o.s,o.surfacepen,o.meshpen,light);