Ticket #10796: 10796-platonic.patch

File 10796-platonic.patch, 730 bytes (added by robertwb, 10 years ago)
  • sage/plot/plot3d/platonic.py

    # 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  
    6969    return prep(I, center, size, kwds)
    7070
    7171def prep(G, center, size, kwds):
     72    if size != 1:
     73        G = G.scale(size)
    7274    if center != (0,0,0):
    7375        G = G.translate(center)
    74     if size != 1:
    75         G = G.scale(size)
    7676    G._set_extra_kwds(kwds)
    7777    return G
    7878