/[libvob]/libvob/vob/demo/multifil/multifil.py
ViewVC logotype

Diff of /libvob/vob/demo/multifil/multifil.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by jvk, Fri May 30 08:59:12 2003 UTC revision 1.3 by jvk, Fri May 30 14:47:09 2003 UTC
# Line 21  class Scene: Line 21  class Scene:
21              Toggle("drawInside", 1, "Draw inside", "i"),              Toggle("drawInside", 1, "Draw inside", "i"),
22              Toggle("depthColor", 0, "Color from depth", "d"),              Toggle("depthColor", 0, "Color from depth", "d"),
23              Toggle("lines", 0, "Toggle showing lines", "l"),              Toggle("lines", 0, "Toggle showing lines", "l"),
24                Toggle("fillets", 1, "Toggle filleting", "f"),
25          )          )
26      def scene(self, vs):      def scene(self, vs):
27          putnoc(vs, background((.5,1,.2)))          putnoc(vs, background((.5,1,.2)))
# Line 28  class Scene: Line 29  class Scene:
29              PushAttrib POLYGON_BIT              PushAttrib POLYGON_BIT
30              Enable DEPTH_TEST              Enable DEPTH_TEST
31              DepthFunc LEQUAL              DepthFunc LEQUAL
32              LineWidth 10              LineWidth 1
33              PolygonOffset -100 -100              PolygonOffset -100 -100
34              ShadeModel SMOOTH              ShadeModel SMOOTH
35          """))          """))
# Line 38  class Scene: Line 39  class Scene:
39    
40          dice = 200          dice = 200
41          conns = GLRen.createSortedConnections(          conns = GLRen.createSortedConnections(
42              GLRen.createFilletSpan1(dice, 1 + 4*self.depthColor))              GLRen.createFilletSpan1(dice, 1 + 4*self.depthColor + 8*(1-self.fillets)))
43          conns_l = GLRen.createSortedConnections(          conns_l = GLRen.createSortedConnections(
44              GLRen.createFilletSpan1(dice, 2 + 4*self.depthColor))              GLRen.createFilletSpan1(dice, 2 + 4*self.depthColor + 8*(1-self.fillets)))
45    
46          size = 50          size = 50
47                    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26