Ticket #9232: trac_9232-lighting.patch

File trac_9232-lighting.patch, 1.0 KB (added by Karl-Dieter Crisman, 12 years ago)
  • sage/plot/plot3d/base.pyx

    # HG changeset patch
    # User Jonathan H. Gutow <gutow@uwosh.edu>
    # Date 1301405389 14400
    # Node ID 6e9d9f3b7fd4390182e61e0d1a303e39a0a8e8f1
    # Parent  35ec60b5a917ef6ea9f7c020017ed1e4ad4e6744
    Trac 9232 - add correct lighting for all Jmol plots
    
    diff -r 35ec60b5a917 -r 6e9d9f3b7fd4 sage/plot/plot3d/base.pyx
    a b  
    596596            select atomno = 1
    597597            color atom  [102,102,255]
    598598            label "hi"
     599            isosurface fullylit; pmesh o* fullylit; set antialiasdisplay on;
    599600
    600601            sage: print z.read(z.namelist()[0])
    601602            24
     
    656657
    657658        # Put the rest of the object in
    658659        f.write("\n".join(all))
     660        # Make sure the lighting is correct
     661        f.write("isosurface fullylit; pmesh o* fullylit; set antialiasdisplay on;\n")
    659662
    660663        render_params.output_archive.writestr('SCRIPT', f.getvalue())
    661664        render_params.output_archive.close()