# HG changeset patch
# User Robert Bradshaw <robertwb@math.washington.edu>
# Date 1297984563 28800
# Node ID 8d9cab35219229bccfd717716f3c5a31fa3ea7e8
# Parent 120c07be6358d93bcff503363d379c26b8342f2b
#10796 - platonic solid construction
diff -r 120c07be6358 -r 8d9cab352192 sage/plot/plot3d/platonic.py
a
|
b
|
|
69 | 69 | return prep(I, center, size, kwds) |
70 | 70 | |
71 | 71 | def prep(G, center, size, kwds): |
| 72 | if size != 1: |
| 73 | G = G.scale(size) |
72 | 74 | if center != (0,0,0): |
73 | 75 | G = G.translate(center) |
74 | | if size != 1: |
75 | | G = G.scale(size) |
76 | 76 | G._set_extra_kwds(kwds) |
77 | 77 | return G |
78 | 78 | |