You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(4) |
Jul
(1) |
Aug
|
Sep
(15) |
Oct
(32) |
Nov
(35) |
Dec
(48) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(46) |
Feb
(22) |
Mar
(65) |
Apr
(49) |
May
(22) |
Jun
(29) |
Jul
(51) |
Aug
(34) |
Sep
(32) |
Oct
(46) |
Nov
(30) |
Dec
(32) |
2002 |
Jan
(48) |
Feb
(4) |
Mar
(20) |
Apr
(28) |
May
(13) |
Jun
(34) |
Jul
(51) |
Aug
(15) |
Sep
(15) |
Oct
(35) |
Nov
(15) |
Dec
(20) |
2003 |
Jan
(31) |
Feb
(111) |
Mar
(41) |
Apr
(28) |
May
(36) |
Jun
(29) |
Jul
(27) |
Aug
(29) |
Sep
(47) |
Oct
(28) |
Nov
(7) |
Dec
(26) |
2004 |
Jan
(44) |
Feb
(9) |
Mar
(17) |
Apr
(26) |
May
(58) |
Jun
(13) |
Jul
(44) |
Aug
(64) |
Sep
(30) |
Oct
(11) |
Nov
(21) |
Dec
(28) |
2005 |
Jan
(29) |
Feb
(11) |
Mar
(11) |
Apr
(22) |
May
(85) |
Jun
(46) |
Jul
(17) |
Aug
(18) |
Sep
(14) |
Oct
(22) |
Nov
(1) |
Dec
(45) |
2006 |
Jan
(20) |
Feb
(36) |
Mar
(18) |
Apr
(24) |
May
(21) |
Jun
(48) |
Jul
(23) |
Aug
(20) |
Sep
(10) |
Oct
(41) |
Nov
(46) |
Dec
(40) |
2007 |
Jan
(40) |
Feb
(20) |
Mar
(13) |
Apr
(6) |
May
(24) |
Jun
(31) |
Jul
(30) |
Aug
(11) |
Sep
(11) |
Oct
(10) |
Nov
(56) |
Dec
(64) |
2008 |
Jan
(64) |
Feb
(22) |
Mar
(63) |
Apr
(28) |
May
(25) |
Jun
(36) |
Jul
(11) |
Aug
(9) |
Sep
(14) |
Oct
(41) |
Nov
(46) |
Dec
(130) |
2009 |
Jan
(95) |
Feb
(41) |
Mar
(24) |
Apr
(35) |
May
(53) |
Jun
(67) |
Jul
(48) |
Aug
(48) |
Sep
(86) |
Oct
(75) |
Nov
(64) |
Dec
(52) |
2010 |
Jan
(57) |
Feb
(31) |
Mar
(28) |
Apr
(40) |
May
(25) |
Jun
(42) |
Jul
(79) |
Aug
(31) |
Sep
(49) |
Oct
(66) |
Nov
(38) |
Dec
(25) |
2011 |
Jan
(29) |
Feb
(18) |
Mar
(44) |
Apr
(6) |
May
(28) |
Jun
(31) |
Jul
(36) |
Aug
(24) |
Sep
(30) |
Oct
(23) |
Nov
(21) |
Dec
(27) |
2012 |
Jan
(14) |
Feb
(11) |
Mar
(2) |
Apr
(48) |
May
(7) |
Jun
(32) |
Jul
(22) |
Aug
(25) |
Sep
(31) |
Oct
(32) |
Nov
(21) |
Dec
(17) |
2013 |
Jan
(44) |
Feb
(27) |
Mar
(3) |
Apr
(1) |
May
|
Jun
|
Jul
(3) |
Aug
(4) |
Sep
(1) |
Oct
(7) |
Nov
(5) |
Dec
(5) |
2014 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
(2) |
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
(7) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Jose A. M. H <jam...@fd...> - 2008-10-26 22:35:47
|
Hi Doug, It is easier to use a curve between the points. try it. Hope this help, bests, jamh. ----- Original Message ----- From: Doug Mair To: vis...@li... Sent: Sunday, October 26, 2008 10:40 PM Subject: [Visualpython-users] Line between two 3D points. Hi all, What is the VPython code to draw a cylinder between two arbitrary 3D points? I'm looking for an equivalent to the Windows GDI: line(x1, y1, x2, y2), but in 3d. Maybe Line(x1, y1, z1, x2, y2, z2) or Line(point1=(x,y,z), point2=(x,y,z)) It seems that I would have to calculate the angle vector between the two points and use that as the axis. Then I would have to calculate the distance between the two points. Is there an easier way? Sample code would help too. Thanks, Doug Mair ------------------------------------------------------------------------------ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ------------------------------------------------------------------------------ _______________________________________________ Visualpython-users mailing list Vis...@li... https://lists.sourceforge.net/lists/listinfo/visualpython-users |
From: Anders P. <an...@gm...> - 2008-10-26 22:20:47
|
Hello! This is simple to to. You need to write like this: point1=(a,b,c) point2=(x,y,z) cylinder(pos=point1, axis=point2-point1) Regards /Anders Petersson On Sun, Oct 26, 2008 at 10:40 PM, Doug Mair <dou...@gm...> wrote: > Hi all, > > What is the VPython code to draw a cylinder between two arbitrary 3D > points? > > I'm looking for an equivalent to the Windows GDI: > line(x1, y1, x2, y2), but in 3d. > > Maybe Line(x1, y1, z1, x2, y2, z2) or Line(point1=(x,y,z), > point2=(x,y,z)) > > It seems that I would have to calculate the angle vector between the two > points and use that as the axis. > > Then I would have to calculate the distance between the two points. > > Is there an easier way? Sample code would help too. > > Thanks, > Doug Mair > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |
From: Doug M. <dou...@gm...> - 2008-10-26 21:52:29
|
Hi all, What is the VPython code to draw a cylinder between two arbitrary 3D points? I'm looking for an equivalent to the Windows GDI: line(x1, y1, x2, y2), but in 3d. Maybe Line(x1, y1, z1, x2, y2, z2) or Line(point1=(x,y,z), point2=(x,y,z)) It seems that I would have to calculate the angle vector between the two points and use that as the axis. Then I would have to calculate the distance between the two points. Is there an easier way? Sample code would help too. Thanks, Doug Mair |
From: symion <sy...@pr...> - 2008-10-24 14:40:21
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> <font size="-1"><br> I have been studying Vpython modules Text and Controls and I am a little confused by the use of 'range'.<br> The __init__ parameter list looks like this:<br> <br> def __init__(self, x=0, y=0, width=300, height=320, range=100,title=None, foreground=None, background=None):<br> <br> Now RANGE is of course a keyword, but it is being used here as a variable.<br> <br> Using IDLE 1.2.2 produces the following error.<br> <br> >>> range=100<br> >>> range<br> 100<br> >>> for a in range(1,10):<br> print a<br> <br> Traceback (most recent call last):<br> File "<pyshell#5>", line 1, in <module><br> for a in range(1,10):<br> TypeError: 'int' object is not callable<br> <br> Am I missing something?<br> <br> Also, I have cleaned up my <a href="http://home.primusonline.com.au/knoware/python/index.html">Web page</a><a style="color: rgb(0, 0, 255);" href="http://home.primusonline.com.au/knoware/python/index.html"></a><br> </font><font size="-1"><br> </font> </body> </html> |
From: Poul R. <Pou...@sk...> - 2008-10-24 14:12:43
|
Well, I was too quick to respond to my own question. Sometimes the program runs, sometimes it doesn't. In the former case the three graph windows appear on the screen but field windows seems to be incomplete and the program seems to freeze in several seconds. Poul Riis |
From: Poul R. <Pou...@sk...> - 2008-10-24 11:08:59
|
I just discovered that interchanging the two first lines removes the problem! I don't know why it does and I don't know why I dit it! Poul Riis |
From: Poul R. <Pou...@sk...> - 2008-10-24 09:49:30
|
The attach example works if I remove one of the three graphs. If I don't, the program freezes at the very beginning but does not deliver any error messages. Is that a memory problem? Notice that my program is under development - don't trust the physics in it! And yes, I know that several others have developed something similar but I'm learning a lot... Poul Riis |
From: Nathan M. <nt...@gm...> - 2008-10-21 21:10:09
|
Is there a 3-d surface plot (like gnuplot's splot) defined in vpython? I'm presently working on a heat-conduction simulation and would like to visualize the results by plotting 2-d "slices" of the temperature distribution throuought a 3-d object. Nathan -- - - - - - - - - - - - - - - - - - - - - - Nathan Moore Assistant Professor, Physics Winona State University AIM: nmoorewsu - - - - - - - - - - - - - - - - - - - - - |
From: Bruce S. <Bru...@nc...> - 2008-10-13 14:25:38
|
I had a typo in the correction I posted for the text.py module (I had parentheses where I should have had brackets). Here's is the corrected correction: class text: def __init__(self, pos=(0,0,0), axis=defaultdir, string='', justify='left', height=1.0, width=None, depth=0, color=None, up=None, visible=1, **keywords): if keywords.has_key('display'): self.display = keywords['display'] else: self.display = display.get_selected() |
From: symion <sy...@pr...> - 2008-10-13 12:27:08
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> <font size="-1">Hello to everyone using Vpython,<br> <br> I have just updated my Vpython web site with the inclusion of a planetary Flyby animation.<br> The program produces topological planets that generate the surface details like mountain ranges, continents and islands.<br> A new topology is generated every time you run the program, so you never see the same planet twice.<br> Almost everything is randomized including the depth of the oceans and lumpiness of the planet, so a large range of types<br> is possible, from water worlds to barren rocks.<br> Click on any open space to re-play, Note every re-play is different!<br> <br> Here is my web page <a href="http://home.primusonline.com.au/knoware/python/index.html">http://home.primusonline.com.au/knoware/python/index.html</a><br> <br> Here is the Source code location </font><a href="http://home.primusonline.com.au/knoware/python/FlyBy.py"><font size="-1">http://home.primusonline.com.au/knoware/python/FlyBy.py</font></a><br> <br> Symion<br> <br> <font size="-1"><br> </font> </body> </html> |
From: Bruce S. <Bru...@nc...> - 2008-10-11 21:28:33
|
I don't fully understand this problem, but a solution is to import the controls module before importing the text module. The issue is some kind of collision between the name of a module ("text"), the name of an object in that module ("text"), and an attribute "text" of some objects in the controls module. I'm afraid that the text module is a bit of an orphan. It was created very early in the development of VPython but hasn't received much care and feeding. Bruce Sherwood Poul Riis wrote: > I see... > > Next problem: > I want to introduce some sliders but as soon as I add the line 'from > visual.controls import *' I get the following error message: > Traceback (most recent call last): > File "C:/Python25/Lib/site-packages/visual/examples/texttest_3", line > 10, in <module> > homesweethome=text(display=textscene,pos=(0,3,0), string='HOME SWEET > HOME', color=color.red,height=0.1,width=0.1, depth=0.05, justify='center') > TypeError: 'module' object is not callable > > What is wrong? > > > Poul Riis > > > > > > > from visual.text import * > from visual.controls import * > > textscene=display(title="Testing text in > 3D...",width=860,height=860,forward=(-2,-1,-0.5)) > > xakse=arrow(pos=(-3,0,0),axis=(6,0,0),color=(1,0,1),shaftwidth=0.05,fixedwidth > = 1) > yakse=arrow(pos=(0,-3,0),axis=(0,6,0),color=(1,1,0),shaftwidth=0.05,fixedwidth > = 1) > zakse=arrow(pos=(0,0,-3),axis=(0,0,6),color=(0,0,1),shaftwidth=0.05,fixedwidth > = 1) > > homesweethome=text(display=textscene,pos=(0,3,0), string='HOME SWEET > HOME', color=color.red,height=0.1,width=0.1, depth=0.05, justify='center') > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: Bruce S. <Bru...@nc...> - 2008-10-11 21:06:01
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> This is a bug in the __init__ routine in the text module. That routine should start out like this:<br> <br> def __init__(self, pos=(0,0,0), axis=defaultdir, string='', justify='left',<br> height=1.0, width=None, depth=0, color=None, up=None, visible=1, **keywords):<br> if keywords.has_key('display'):<br> self.display = keywords('display')<br> else:<br> self.display = display.get_selected()<br> <br> Thanks for reporting this.<br> <br> Bruce Sherwood<br> <br> Tyler Breisacher wrote: <blockquote cite="mid:48F...@li..." type="cite"> <pre wrap="">I'm pretty sure doing "scene=display(...)" is not considered the normal way of doing things. I can't say exactly why it matters because it does seem like that might work. But I replaced that line with: scene.title="Testing text in 3D..." scene.width=860 scene.height=860 scene.forward=(-2,-1,-0.5) and it seems to work fine. Poul Riis wrote: </pre> <blockquote type="cite"> <pre wrap="">What is the error in the example below? I want to make some 3D-text in the same display as the axes (and later some more objects). Apparently, another window is created automatically.... Poul Riis from visual.text import * scene=display(title="Testing text in 3D...",width=860,height=860,forward=(-2,-1,-0.5)) xakse=arrow(pos=(-3,0,0),axis=(6,0,0),color=(1,0,1),shaftwidth=0.05,fixedwidth = 1) yakse=arrow(pos=(0,-3,0),axis=(0,6,0),color=(1,1,0),shaftwidth=0.05,fixedwidth = 1) zakse=arrow(pos=(0,0,-3),axis=(0,0,6),color=(0,0,1),shaftwidth=0.05,fixedwidth = 1) homesweethome=text(pos=(0,3,0), string='HOME SWEET HOME', color=color.red,height=0.1,width=0.1, depth=0.05, justify='center') ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world <a class="moz-txt-link-freetext" href="http://moblin-contest.org/redirect.php?banner_id=100&url=/">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a> _______________________________________________ Visualpython-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Vis...@li...">Vis...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/visualpython-users">https://lists.sourceforge.net/lists/listinfo/visualpython-users</a> </pre> </blockquote> <pre wrap=""><!----> ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world <a class="moz-txt-link-freetext" href="http://moblin-contest.org/redirect.php?banner_id=100&url=/">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a> _______________________________________________ Visualpython-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Vis...@li...">Vis...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/visualpython-users">https://lists.sourceforge.net/lists/listinfo/visualpython-users</a> </pre> </blockquote> </body> </html> |
From: Poul R. <Pou...@sk...> - 2008-10-11 19:17:34
|
I see... Next problem: I want to introduce some sliders but as soon as I add the line 'from visual.controls import *' I get the following error message: Traceback (most recent call last): File "C:/Python25/Lib/site-packages/visual/examples/texttest_3", line 10, in <module> homesweethome=text(display=textscene,pos=(0,3,0), string='HOME SWEET HOME', color=color.red,height=0.1,width=0.1, depth=0.05, justify='center') TypeError: 'module' object is not callable What is wrong? Poul Riis from visual.text import * from visual.controls import * textscene=display(title="Testing text in 3D...",width=860,height=860,forward=(-2,-1,-0.5)) xakse=arrow(pos=(-3,0,0),axis=(6,0,0),color=(1,0,1),shaftwidth=0.05,fixedwidth = 1) yakse=arrow(pos=(0,-3,0),axis=(0,6,0),color=(1,1,0),shaftwidth=0.05,fixedwidth = 1) zakse=arrow(pos=(0,0,-3),axis=(0,0,6),color=(0,0,1),shaftwidth=0.05,fixedwidth = 1) homesweethome=text(display=textscene,pos=(0,3,0), string='HOME SWEET HOME', color=color.red,height=0.1,width=0.1, depth=0.05, justify='center') |
From: Tyler B. <dan...@li...> - 2008-10-11 17:42:10
|
I'm pretty sure doing "scene=display(...)" is not considered the normal way of doing things. I can't say exactly why it matters because it does seem like that might work. But I replaced that line with: scene.title="Testing text in 3D..." scene.width=860 scene.height=860 scene.forward=(-2,-1,-0.5) and it seems to work fine. Poul Riis wrote: > What is the error in the example below? > I want to make some 3D-text in the same display as the axes (and later > some more objects). Apparently, another window is created automatically.... > > Poul Riis > > > > > from visual.text import * > > scene=display(title="Testing text in > 3D...",width=860,height=860,forward=(-2,-1,-0.5)) > > xakse=arrow(pos=(-3,0,0),axis=(6,0,0),color=(1,0,1),shaftwidth=0.05,fixedwidth > = 1) > yakse=arrow(pos=(0,-3,0),axis=(0,6,0),color=(1,1,0),shaftwidth=0.05,fixedwidth > = 1) > zakse=arrow(pos=(0,0,-3),axis=(0,0,6),color=(0,0,1),shaftwidth=0.05,fixedwidth > = 1) > > homesweethome=text(pos=(0,3,0), string='HOME SWEET HOME', > color=color.red,height=0.1,width=0.1, depth=0.05, justify='center') > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |
From: Poul R. <Pou...@sk...> - 2008-10-11 15:43:20
|
What is the error in the example below? I want to make some 3D-text in the same display as the axes (and later some more objects). Apparently, another window is created automatically.... Poul Riis from visual.text import * scene=display(title="Testing text in 3D...",width=860,height=860,forward=(-2,-1,-0.5)) xakse=arrow(pos=(-3,0,0),axis=(6,0,0),color=(1,0,1),shaftwidth=0.05,fixedwidth = 1) yakse=arrow(pos=(0,-3,0),axis=(0,6,0),color=(1,1,0),shaftwidth=0.05,fixedwidth = 1) zakse=arrow(pos=(0,0,-3),axis=(0,0,6),color=(0,0,1),shaftwidth=0.05,fixedwidth = 1) homesweethome=text(pos=(0,3,0), string='HOME SWEET HOME', color=color.red,height=0.1,width=0.1, depth=0.05, justify='center') |
From: John Z. <joh...@wa...> - 2008-10-05 03:51:28
|
I can confirm this problem. We were running VPython over x4vnc (supports OpenGL) just fine until a lab upgrade this fall. With the new machines running Kubuntu Hardy and Intel graphics drivers, we get this same error trying to run visual over VNC. Visual works fine at the console, and other OpenGL apps run fine over VNC. I'm at a loss. We are running with Python 2.5.2 and visual 3.2.9. --John On Fri, 2008-10-03 at 15:02 +0100, chris lyon wrote: > I presume there are people running visual over VNC like piping > mechanisms with no trouble? > > > chris@harvest001:~/wirusview$ python > Python 2.4.4 (#2, Apr 15 2008, 23:43:20) > [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> from visual import * > >>> a = sphere() > >>> Gdk-ERROR **: GLXBadLargeRequest > serial 108 error_code 158 request_code 148 minor_code 2 > > > Where best for me to start digging? > > Chris > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: chris l. <chr...@sp...> - 2008-10-03 19:16:22
|
I presume there are people running visual over VNC like piping mechanisms with no trouble? chris@harvest001:~/wirusview$ python Python 2.4.4 (#2, Apr 15 2008, 23:43:20) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from visual import * >>> a = sphere() >>> Gdk-ERROR **: GLXBadLargeRequest serial 108 error_code 158 request_code 148 minor_code 2 Where best for me to start digging? Chris |
From: Bruce S. <Bru...@nc...> - 2008-10-02 22:08:29
|
This is a test posting to the VPython mailing list. There is some evidence that messages are not getting through. Bruce Sherwood |
From: Tim K. <jt...@cs...> - 2008-10-01 21:59:50
|
[I posted this message on Sunday, but it appears to be have been dropped somewhere. Apologies if you get two copies.] In response to Bruce's request for help with a VPython wiki site (and with his helpful feedback), I have set up a site using Wikidot at http://vypthon.wikidot.com. All members of this list are welcome (and encouraged!) to join. The site includes a forum for posting questions and answers (including code snippets), which will simplify and organize ongoing discussions. Members can also create pages to post demonstration programs, collaborate on projects and documentation, and develop ideas. To join, visit... http://vpython.wikidot.com/system:join After you have created your Wikidot account, you'll need this "secret password" to become a member of the VPython site: vpython-user Since the visualpython-users archive of messages is public at SourceForge (and hence this message is public), it is possible I will need to disable this password to prevent spurious joins. If you wish to join and the password no longer works, just fill out the "apply box" available on the same page. If the forum proves popular, it could replace the use of this mailing list for other than important announcements. Tim Korb |
From: Bruce S. <Bru...@nc...> - 2008-09-28 20:48:39
|
You ought to be able to specify a list of normals in the constructor for faces, but as you found, you can't; it's a bug. The only workaround is to do something like this: triangle1=faces(color=c) triangle1.append(pos=v1,normal=n1) triangle1.append(pos=v2,normal=n2) triangle1.append(pos=v3,normal=n3) Please be specific about your difficulty with copy; best would be a short example. Note from the Visual documentation that there are issues with copying objects that are in frames: __copy()__ Makes a copy of an object. There are two underscores before and after the copy(). Without any arguments, this results in creating a second object in the exact same position as the first, which is probably not what you want. The __copy__() function takes a list of keyword=value argument pairs which are applied to the new object before making it visible. For example, to clone an object from one display to another, you would execute: new_object = old_object.__copy__( display=new_display). Restriction: If the original object is within a frame, and the new object is on a different display, you must supply both a new display and a new frame for the new object (the new frame may be None). This is due to the restriction that an object may not be located within a frame that is in a separate display. The attribute __members__ used to give a list of all the object's attributes but is no longer available in VPython. Its main use was in copying objects. Poul Riis wrote: > I still can't see in the manual how two to specify different normals at > different vertices in the faces object. > I tried > triangle=faces(pos=[v1,v2,v3],normal=[n1,n2,n3],color=c) > but it didn't work. On the other hand, replacing color=c with > color=[c1,c2,c1] works fine. > > The example below works, but not if I replace normal=n12 with > normal=[n1,n12,n12] > > One further question: How can I make a copy of ny adjacent triangles > before rotating them? I tried __copy__() but couldn't make it work. > > Poul Riis > > > > > from visual import * > > def triangle3d(v1,v2,v3,trianglecolor): > c = color.hsv_to_rgb(trianglecolor) > n = norm(cross(v2-v1,v3-v1)) > triangle1=faces(pos=[v1,v2,v3],normal=n,color=c) > triangle2=faces(pos=[v2,v1,v3],normal=-n,color=c) > > def > adjacenttriangles3d(v1,v2,v3,v4,trianglecolor1,trianglecolor2,rotateang): > c1 = color.hsv_to_rgb(trianglecolor1) > c2 = color.hsv_to_rgb(trianglecolor2) > > backsidecolor1=(1-trianglecolor1[0],trianglecolor1[1],trianglecolor1[2]) > > backsidecolor2=(1-trianglecolor2[0],trianglecolor2[1],trianglecolor2[2]) > > bsc1 = color.hsv_to_rgb(backsidecolor1) > bsc2 = color.hsv_to_rgb(backsidecolor2) > n1 = norm(cross(v2-v1,v4-v1)) > n2 = norm(cross(v3-v2,v4-v3)) > n12 = norm((n1+n2)/2) > twotriangles=frame() > faces(frame=twotriangles,pos=[v1,v2,v4],normal=n12,color=[c1,c2,c1]) > faces(frame=twotriangles,pos=[v2,v3,v4],normal=n12,color=[c2,c1,c2]) > faces(frame=twotriangles,pos=[v2,v1,v4],normal=-n12,color=bsc1) > faces(frame=twotriangles,pos=[v3,v2,v4],normal=-n12,color=bsc2) > twotriangles.rotate(angle=rotateang, axis=(1,0,0), origin=(0,0,0)) > > scene=display(title="Two adjacent > triangles",width=600,height=600,forward=(-2,-1,-0.5),up=(0,0,1),background=(1,1,1)) > > # Grid in xy-plane: > for i in range(-10,11,1): > gridlinesx=curve(pos=[(i,-10,0),(i,10,0)],color=crayola.black) > gridlinesy=curve(pos=[(-10,i,0),(10,i,0)],color=crayola.black) > > # Axes: > xaxis=arrow(pos=(-10,0,0),axis=(20,0,0),shaftwidth=0.02,color=crayola.green) > yaxis=arrow(pos=(0,-10,0),axis=(0,20,0),shaftwidth=0.02,color=crayola.green) > zaxis=arrow(pos=(0,0,-10),axis=(0,0,20),shaftwidth=0.02,color=color.hsv_to_rgb((0.8,0.7,0.9))) > > # Four points, A, B, C, and D: > A=vector(5,0,0) > B=vector(8,10,0) > C=vector(0,7,0) > D=vector(0,0,15) > > # Objects: > > adjacenttriangles3d(A,B,C,D,(0.5,1,0.95),(0.75,1,0.95),pi/4.) > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |
From: Tim K. <jt...@cs...> - 2008-09-28 18:47:33
|
In response to Bruce's request for help with a VPython wiki site (and with his helpful feedback), I have set up a site using Wikidot at http://vypthon.wikidot.com. All members of this list are welcome (and encouraged!) to join. The site includes a forum for posting questions and answers (including code snippets), which will simplify and organize ongoing discussions. Members can also create pages to post demonstration programs, collaborate on projects and documentation, and develop ideas. To join, visit... http://vpython.wikidot.com/system:join After you have created your Wikidot account, you'll need this "secret password" to become a member of the VPython site: vpython-user Since the visualpython-users archive of messages is public at SourceForge (and hence this message is public), it is possible I will need to disable this password to prevent spurious joins. If you wish to join and the password no longer works, just fill out the "apply box" available on the same page. If the forum proves popular, it could replace the use of this mailing list for other than important announcements. Tim Korb |
From: Poul R. <Pou...@sk...> - 2008-09-28 07:41:44
|
I still can't see in the manual how two to specify different normals at different vertices in the faces object. I tried triangle=faces(pos=[v1,v2,v3],normal=[n1,n2,n3],color=c) but it didn't work. On the other hand, replacing color=c with color=[c1,c2,c1] works fine. The example below works, but not if I replace normal=n12 with normal=[n1,n12,n12] One further question: How can I make a copy of ny adjacent triangles before rotating them? I tried __copy__() but couldn't make it work. Poul Riis from visual import * def triangle3d(v1,v2,v3,trianglecolor): c = color.hsv_to_rgb(trianglecolor) n = norm(cross(v2-v1,v3-v1)) triangle1=faces(pos=[v1,v2,v3],normal=n,color=c) triangle2=faces(pos=[v2,v1,v3],normal=-n,color=c) def adjacenttriangles3d(v1,v2,v3,v4,trianglecolor1,trianglecolor2,rotateang): c1 = color.hsv_to_rgb(trianglecolor1) c2 = color.hsv_to_rgb(trianglecolor2) backsidecolor1=(1-trianglecolor1[0],trianglecolor1[1],trianglecolor1[2]) backsidecolor2=(1-trianglecolor2[0],trianglecolor2[1],trianglecolor2[2]) bsc1 = color.hsv_to_rgb(backsidecolor1) bsc2 = color.hsv_to_rgb(backsidecolor2) n1 = norm(cross(v2-v1,v4-v1)) n2 = norm(cross(v3-v2,v4-v3)) n12 = norm((n1+n2)/2) twotriangles=frame() faces(frame=twotriangles,pos=[v1,v2,v4],normal=n12,color=[c1,c2,c1]) faces(frame=twotriangles,pos=[v2,v3,v4],normal=n12,color=[c2,c1,c2]) faces(frame=twotriangles,pos=[v2,v1,v4],normal=-n12,color=bsc1) faces(frame=twotriangles,pos=[v3,v2,v4],normal=-n12,color=bsc2) twotriangles.rotate(angle=rotateang, axis=(1,0,0), origin=(0,0,0)) scene=display(title="Two adjacent triangles",width=600,height=600,forward=(-2,-1,-0.5),up=(0,0,1),background=(1,1,1)) # Grid in xy-plane: for i in range(-10,11,1): gridlinesx=curve(pos=[(i,-10,0),(i,10,0)],color=crayola.black) gridlinesy=curve(pos=[(-10,i,0),(10,i,0)],color=crayola.black) # Axes: xaxis=arrow(pos=(-10,0,0),axis=(20,0,0),shaftwidth=0.02,color=crayola.green) yaxis=arrow(pos=(0,-10,0),axis=(0,20,0),shaftwidth=0.02,color=crayola.green) zaxis=arrow(pos=(0,0,-10),axis=(0,0,20),shaftwidth=0.02,color=color.hsv_to_rgb((0.8,0.7,0.9))) # Four points, A, B, C, and D: A=vector(5,0,0) B=vector(8,10,0) C=vector(0,7,0) D=vector(0,0,15) # Objects: adjacenttriangles3d(A,B,C,D,(0.5,1,0.95),(0.75,1,0.95),pi/4.) |
From: Jon S. <js...@gm...> - 2008-09-25 00:28:01
|
Yes, please, and it would be great to have it eventually rolled into the Mac Vpython package. On 9/24/08 11:55 AM, "Joe Heafner" <hea...@gm...> wrote: > This morning, one of my students downloaded and installed John Armstrong's Mac > VPython package. It installed and works flawlessly, but I just want to point > out something and offer a solution. The package creates a generic shell script > icon in /Applications that must be double clicked to start VPython. Upon > termination of IDLE, the Terminal window is left open and X11 is left running. > The former can be fixed in Terminal's preferences. The latter can be fixed by > manually closing X11. > > I have a droplet that works with a Fink installation. It automatically handles > calling the VPython scripts, initiating X11 (only under OS X 10.5 and later!), > and closing everything when the IDLE editor is exited. It also provides drag > and drop editing of Python scripts. Multiple files can be dropped onto the > droplet icon and opened in different IDLE windows. One problem that I don't > how to fix is that once IDLE is open, drag and drop doesn't work. As long as > the user has a working Fink installation of VPython running on OS X 10.5 or > later, the droplet can simply be copied to /Applications and placed in the > Dock for quick access. > > I'll happily make the droplet available to anyone who wants to use it. > > Joe > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users Jon Schull jon...@ri... cell: 585-738-6696 Associate Professor Rochester Institute of Technology |
From: Bruce S. <Bru...@nc...> - 2008-09-24 23:39:00
|
It might be useful to have a wiki or other kind of collaborative environment associated with VPython. Mailing lists are certainly very good, but there's something to be said for a place that feels more permanent and more collaborative, and where people could post solutions to problems they've encountered, etc. Is there someone(s) in the VPython community with the expertise to set up something of this kind? I'm guessing that there are free hosting possibilities, or maybe it could be somehow part of the VPython site. I myself don't feel competent to select the right kind of vehicle nor set it up. I'll take this opportunity to say that David Scherer and I are in what feels like the final throes of squashing the last remaining major bugs before offering a beta Visual 4.0 that, while likely to be pretty solid, should get some testing from the user community before being promoted to production status. We'll want feedback not only on bugs but also on design decisions. I'm excited about this new version and eager to get it out to you. Bruce Sherwood |
From: Joe H. <hea...@gm...> - 2008-09-24 16:06:14
|
This morning, one of my students downloaded and installed John Armstrong's Mac VPython package. It installed and works flawlessly, but I just want to point out something and offer a solution. The package creates a generic shell script icon in /Applications that must be double clicked to start VPython. Upon termination of IDLE, the Terminal window is left open and X11 is left running. The former can be fixed in Terminal's preferences. The latter can be fixed by manually closing X11. I have a droplet that works with a Fink installation. It automatically handles calling the VPython scripts, initiating X11 (only under OS X 10.5 and later!), and closing everything when the IDLE editor is exited. It also provides drag and drop editing of Python scripts. Multiple files can be dropped onto the droplet icon and opened in different IDLE windows. One problem that I don't how to fix is that once IDLE is open, drag and drop doesn't work. As long as the user has a working Fink installation of VPython running on OS X 10.5 or later, the droplet can simply be copied to /Applications and placed in the Dock for quick access. I'll happily make the droplet available to anyone who wants to use it. Joe |