summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/base/obj.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/base/obj.asy')
-rw-r--r--Build/source/utils/asymptote/base/obj.asy9
1 files changed, 9 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/base/obj.asy b/Build/source/utils/asymptote/base/obj.asy
index 158d417c136..0a6c4ab047c 100644
--- a/Build/source/utils/asymptote/base/obj.asy
+++ b/Build/source/utils/asymptote/base/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);