|
From: Bruce S. <Bru...@nc...> - 2007-07-24 19:27:43
|
The Mesh object isn't a supported/documented Visual object, though perhaps something like it should be. It's just a routine in a particular example program faces_heightfield.py contributed by the originator of VPython, David Scherer. The only documentation there is, is the routine itself. So I'm afraid you're on your own as far as using this routine in your own program. Bruce Sherwood Kadir Haldenbilen wrote: > Hello All, > > I have a surface defined as a Mesh in Visual as below: > > x = arange(-350,350,50.0) > y = arange(-350,350,50.0) > > z = zeros( (len(x),len(y)), float ) > x,y = x[:,None]+z, y+z > > seasurf = Mesh((0,1,0), color.white, x, > (sin((x+y)/1.2/(pi))-cos((x+y)/1.2/(pi)))*10.0-15.0, y) > > seasurf.p = seasurf.model.pos*0 > > I get the surface OK for me. > > I tried updating pos values in mesh "seasurf" for y in time, but somehow > could not manage it. Can anyone help me? > > Thanks, > > Kadir > > ------------------------------------------------------------------------ > Need a vacation? Get great deals to amazing places > <http://us.rd.yahoo.com/evt=48256/*http://travel.yahoo.com/;_ylc=X3oDMTFhN2hucjlpBF9TAzk3NDA3NTg5BHBvcwM1BHNlYwNncm91cHMEc2xrA2VtYWlsLW5jbQ-->on > Yahoo! Travel. > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |