Skip to content
Snippets Groups Projects
Select Git revision
  • 02314119b0932902ce83463bcfc88159543a88a2
  • master default protected
  • develop protected
  • cmake_boost_refactor
  • ubuntu_ci
  • mmtf
  • non-orthogonal-maps
  • no_boost_filesystem
  • data_viewer
  • 2.11.1
  • 2.11.0
  • 2.10.0
  • 2.9.3
  • 2.9.2
  • 2.9.1
  • 2.9.0
  • 2.8.0
  • 2.7.0
  • 2.6.1
  • 2.6.0
  • 2.6.0-rc4
  • 2.6.0-rc3
  • 2.6.0-rc2
  • 2.6.0-rc
  • 2.5.0
  • 2.5.0-rc2
  • 2.5.0-rc
  • 2.4.0
  • 2.4.0-rc2
29 results

export_bitmap.cc

Blame
  • solid.py 379 B
    s=io.LoadSurface("../demos/data/sh2","msms")
    scene.Add(gfx.Surface("s",s))
    
    # alternative shading mode
    scene.SetShadingMode("hf")
    
    # add outlines to surface
    scene["s"].SetOutline(True)
    scene["s"].SetOutlineMode(3)
    
    # turn on solid rendering
    scene["s"].solid=True
    scene["s"].solid_color=gfx.RGB(0.8,0.8,0.7)
    
    scene.AutoAutoslab(False)
    scene.far=170
    scene.near=100
    scene.fog=False