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: Bruce S. <bas...@un...> - 2002-07-25 14:56:21
|
Attached is yet another version of tube.py. It is much faster in resetting some attribute such as inner or outer radius, or axis length. The speed is obtained by just scaling x or y or z appropriately in the faces pos list, rather than recalculating from scratch all the face coordinates. When you run the program, click the window to see how fast the two objects change appearance. Bruce Sherwood |
From: Bruce S. <bas...@un...> - 2002-07-25 03:52:31
|
Attached is a significantly improved routine for making hollow cylinders (tubes). You can now set the attributes (pos, axis, r1, r2, color) and change the appearance of an existing tube, just as with regular built-in Visual objects. I don't think the "property" machinery used in tube.py is discussed in the standard Python documentation, being relatively new. You can find a discussion in the auxiliary documents at http://python.org associated with the Python 2.2 release. It is an improved mechanism for handling special processing when reading (getattr) or writing (setattr) an attribute of an object. An important detail that's easy to miss is that in the "class" statement you have to specify the word "object" in parentheses, as in "class tube(object):", which gets you new-style Python object behavior. Bruce Sherwood |
From: Bruce S. <bas...@un...> - 2002-07-25 01:18:51
|
Many thanks for contributing this! Users have been asking for a way to make a hollow cylinder (tube). I attach a modification of your routine, which runs significantly faster. Here are the main changes: Since you're building the tube in a frame anyway, you don't have to do all that work to rotate the object. Just reset the axis of the frame, and everything gets rotated for you! In order to get proper lighting, I made the normals to the faces be in fact simply normal to the geometrical surface of the object, rather than adding in various vectors. I got rid of lots of cos and sin calls, which are relatively expensive functions. Instead I use the formulas for calculating sine and cosine of (theta+dtheta), given the sines and cosines of theta and of dtheta. I made the attributes be more similar to the attributes for Visual cylinders (pos and axis rather than point and tail). I changed the def to a class, in preparation for a more general object approach that would let you change the position, axis, etc. of an existing tube. Once there is the ability to change these attributes, I'd like to include this routine in the VPython distribution. Again, thanks for making this contribution! Bruce Sherwood ----- Original Message ----- From: "IVES,THOM (HP-Boise,ex1)" <tho...@hp...> To: "Visual Python Users (E-mail)" <vis...@li...> Cc: <lev...@ut...> Sent: Wednesday, July 24, 2002 6:23 PM Subject: [Visualpython-users] Multipurpose Cylinder / Disc with a whole in it - Code. > Visual Users, > > A while back, I asked about coding a cylinder with a hole / disc with a > whole in it. > |
From: Bruce S. <bas...@un...> - 2002-07-25 01:18:28
|
Many thanks for contributing this! Users have been asking for a way to make a hollow cylinder (tube). I attach a modification of your routine, which runs significantly faster. Here are the main changes: Since you're building the tube in a frame anyway, you don't have to do all that work to rotate the object. Just reset the axis of the frame, and everything gets rotated for you! In order to get proper lighting, I made the normals to the faces be in fact simply normal to the geometrical surface of the object, rather than adding in various vectors. I got rid of lots of cos and sin calls, which are relatively expensive functions. Instead I use the formulas for calculating sine and cosine of (theta+dtheta), given the sines and cosines of theta and of dtheta. I made the attributes be more similar to the attributes for Visual cylinders (pos and axis rather than point and tail). I changed the def to a class, in preparation for a more general object approach that would let you change the position, axis, etc. of an existing tube. Once there is the ability to change these attributes, I'd like to include this routine in the VPython distribution. Again, thanks for making this contribution! Bruce Sherwood ----- Original Message ----- From: "IVES,THOM (HP-Boise,ex1)" <tho...@hp...> To: "Visual Python Users (E-mail)" <vis...@li...> Cc: <lev...@ut...> Sent: Wednesday, July 24, 2002 6:23 PM Subject: [Visualpython-users] Multipurpose Cylinder / Disc with a whole in it - Code. > Visual Users, > > A while back, I asked about coding a cylinder with a hole / disc with a > whole in it. > |
From: Bruce S. <bas...@un...> - 2002-07-24 15:07:31
|
I tried those tools and had a hard time getting what I really wanted, though maybe I didn't use them properly. I think a better way might in fact be the PIL module advertised in Jon Schull's note, which has a method to capture a screen image and then manipulate it. Bruce Sherwood ----- Original Message ----- From: "Matthew Kohlmyer" <mak...@un...> To: <vis...@li...> Sent: Wednesday, July 24, 2002 10:31 AM Subject: Re: [Visualpython-users] animation > I'm not sure if exporting to Pov-Ray first is absolutely necessary. > There are software products out there that allow you to take screen caps > or create videos from anything on your computer's screen, including > presumably the VPython graphics window. Try looking at: > <http://www.techsmith.com> > who make SnagIt for taking screen shots and Camtasia for making videos. > > -Matt > |
From: Bruce S. <bas...@un...> - 2002-07-24 14:35:34
|
a) The issue is that you changed the window from being square to being rectangular, in which case Visual applies your specified range to the longest dimension. For example, when you make your window wide and short (not tall), the horizontal range is indeed 800 as your specified, but that means that the vertical range is less than 800. It's not clear to me what Visual's rule should be, but certainly you'll have a problem if you depend on a square window but then make it rectangular. b) There is no way to control the rendering. Can you say what problem you're trying to address? Bruce Sherwood ----- Original Message ----- From: "Shah Ritesh" <vpy...@ya...> To: <vis...@li...> Sent: Monday, July 22, 2002 8:26 PM Subject: [Visualpython-users] scaling in vpython > > I have two questions. > > a) How can I control scaling in vpython? When I resize the "scene" window, the positions of the objects change relative to the bottom of the window. > > Here is some of my code.. > > scene.autoscale=0 > > scene.height = 400 > scene.width = 400 > scene.x = 0 > scene.y =0 > scene.range = (800,800,800) > > floor = box(pos=(-50,-560,0), length=3000, height=20, width=0,color=(0,1,0)) > > I am sending the the two figures.One when the window is not maximized and one when it is maximized.The position of the floor changes with respect to the bottom of the window. > > b) I am not satisfied with the performance of my animations,therefore to improve the performance I wish to directly control the frame buffer.Is it possible to do so using vpython? > > Thanks a lot, > > Ritesh |
From: Matthew K. <mak...@un...> - 2002-07-24 14:31:11
|
I'm not sure if exporting to Pov-Ray first is absolutely necessary. There are software products out there that allow you to take screen caps or create videos from anything on your computer's screen, including presumably the VPython graphics window. Try looking at: <http://www.techsmith.com> who make SnagIt for taking screen shots and Camtasia for making videos. -Matt Bruce Sherwood wrote: > The only thing I know of immediately available is the Pov-Ray export > facility (see http://vpython.org home page). This module lets you export > individual frames as Pov-Ray scene descriptions. Then you can use > Pov-Ray (which is cross-platform freeware) to render the scenes (in > glorious ray-traced glory). After that you could use some freeware > program to stitch the frames together as a movie. > > It would be nice to have a lighter-weight scheme for generating, say, a > set of gifs. > > Bruce Sherwood > > At 02:43 PM 7/23/2002 -0700, Bruce Peterson wrote: > >> Is there any code available to save individual frames as bit maps >> (e.g. bmp files on windows or something more sophisticated such as gif >> files). The idea is that a sequence of these can be made into a >> movie-- both for portability and for instances when the real time >> performance of vpython is slow (I know you lose the interactivity, but >> in some cases it would be worth it). > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |
From: jon s. <js...@so...> - 2002-07-24 01:48:28
|
The Python Imaging Library has some simple and elegant routines that ought to be applicable for this. http://www.pythonware.com/products/pil/ ------------------------------------------ Jonathan Schull, Ph.D. Founder and President SoftLock.com dba Digital Goods Sc...@Di... recent bio: http://conferences.oreillynet.com/cs/p2pweb2001/view/e_spkr/1017 weblog: http://radio.weblogs.com/0104369/ 978-764-1058 cell and v-mail 585-242-9497 landline 978-246-0487 fax ------------------------------------------ > -----Original Message----- > From: vis...@li... > [mailto:vis...@li...]On Behalf Of > Bruce Sherwood > Sent: Tuesday, July 23, 2002 9:06 PM > To: Bruce Peterson; vis...@li... > Subject: Re: [Visualpython-users] animation > > > The only thing I know of immediately available is the Pov-Ray export > facility (see http://vpython.org home page). This module lets you export > individual frames as Pov-Ray scene descriptions. Then you can use Pov-Ray > (which is cross-platform freeware) to render the scenes (in glorious > ray-traced glory). After that you could use some freeware program > to stitch > the frames together as a movie. > > It would be nice to have a lighter-weight scheme for generating, > say, a set > of gifs. > > Bruce Sherwood > > At 02:43 PM 7/23/2002 -0700, Bruce Peterson wrote: > >Is there any code available to save individual frames as bit maps (e.g. > >bmp files on windows or something more sophisticated such as gif files). > >The idea is that a sequence of these can be made into a movie-- both for > >portability and for instances when the real time performance of > vpython is > >slow (I know you lose the interactivity, but in some cases it would be > >worth it). > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: Bruce S. <bas...@un...> - 2002-07-24 00:06:12
|
The only thing I know of immediately available is the Pov-Ray export facility (see http://vpython.org home page). This module lets you export individual frames as Pov-Ray scene descriptions. Then you can use Pov-Ray (which is cross-platform freeware) to render the scenes (in glorious ray-traced glory). After that you could use some freeware program to stitch the frames together as a movie. It would be nice to have a lighter-weight scheme for generating, say, a set of gifs. Bruce Sherwood At 02:43 PM 7/23/2002 -0700, Bruce Peterson wrote: >Is there any code available to save individual frames as bit maps (e.g. >bmp files on windows or something more sophisticated such as gif files). >The idea is that a sequence of these can be made into a movie-- both for >portability and for instances when the real time performance of vpython is >slow (I know you lose the interactivity, but in some cases it would be >worth it). |
From: Bruce P. <bap...@te...> - 2002-07-23 21:43:18
|
Is there any code available to save individual frames as bit maps (e.g. bmp files on windows or something more sophisticated such as gif files). The idea is that a sequence of these can be made into a movie-- both for portability and for instances when the real time performance of vpython is slow (I know you lose the interactivity, but in some cases it would be worth it). Bruce Peterson Terastat, Inc Information Access Systems Voice (425) 466 7344 Fax (206) 350 3685 |
From: Bruce S. <bas...@un...> - 2002-07-22 21:19:10
|
At http://vpython.org I've started a log of recent developments. This was requested by users in order to have an easy way to see what's new, and in particular whether it's worthwhile to update VPython on their machines. On the initial page, choose "Recent Developments". Bruce Sherwood |
From: Bruce S. <bas...@un...> - 2002-07-22 20:28:23
|
The arrow object has a new attribute, "fixedwidth", which if nonzero forces the shaftwidth and headwidth to be what you specify, even if the arrow gets very short or very long. The only adjustment made in this case is that if the headlength of the arrow is specified to be shorter than half the total length of the arrow, the headlength is forced to be half the full length. This means that a very short arrow may look something like a thumbtack. New versions for Windows, Linux, and Mac available at http://vpython.org Bruce Sherwood |
From: Andy D. <dou...@la...> - 2002-07-19 14:00:10
|
On Thu, 18 Jul 2002, rod holland wrote: > I am trying to compile cvisual on Mandrake 8.2. > I ran ./install 7 times in succession and got the following errors > (this is for cvisual only, Python and Numeric are properly installed). > The seg fault is generally different each time. > Do you think this compile problem is related to a library(software) problem > or a hardware problem such as bad memory? Unless there's some caching going on somewhere (e.g. cccache, or some such), successive tries on the same source ought to get the same result. Whenever I've had such problems it has always turned out to be either a hardware problem or a filesystem problem. I'd recommend rebooting to single user mode and running fsck on all your file systems, as well as running any hardware diagnostics you may have. Recompiling a kernel is also sometimes suggested as a good stress test for your system. > /usr/include/g++-3/stl_alloc.h:423: Internal error: Segmentation fault. > Please submit a full bug report. > See <URL:https://qa.mandrakesoft.com/> for instructions. Of course you might want to try that too. -- Andy Dougherty dou...@la... Dept. of Physics Lafayette College, Easton PA 18042 |
From: Bruce S. <bas...@un...> - 2002-07-19 13:50:12
|
Something very odd. I was reviewing some old mail from Debian users, intending to take care of the problem they had reported (shown below). When I went to fix the typo in cvisual/CXX/Src/cxx_extensions.cxx ("name" should be "nam"), I found that there is no typo in the VPython file! Looking back in time through CVS at sourceforge.net, I cannot find a version of that file with the mistake in it. So how did two Debian users manage to get hold of a file in which "nam" had been changed to "name"? (A problem with English "silent e"?) Bruce Sherwood >From: "Neal M. Holtz" <nh...@do...> >To: vis...@li... >User-Agent: Mutt/1.3.28i >Subject: [Visualpython-users] Re: Trouble installing on Debian >Sender: vis...@li... >X-BeenThere: vis...@li... >X-Mailman-Version: 2.0.9-sf.net >List-Help: ><mailto:vis...@li...?subject=help> >List-Post: <mailto:vis...@li...> >List-Subscribe: ><https://lists.sourceforge.net/lists/listinfo/visualpython-users>, > ><mailto:vis...@li...?subject=subscribe> >List-Id: <visualpython-users.lists.sourceforge.net> >List-Unsubscribe: ><https://lists.sourceforge.net/lists/listinfo/visualpython-users>, > ><mailto:vis...@li...?subject=unsubscribe> >List-Archive: ><http://www.geocrawler.com/redir-sf.php3?list=visualpython-users> >X-Original-Date: Sat, 4 May 2002 07:58:31 -0400 >Date: Sat, 4 May 2002 07:58:31 -0400 > >A couple of replies with respect to a "segfault" problem on Debian >(and also on my highly non-standard Caldera) mentioned problems >with passing const char * pointers. Those points may be valid, >but consider the original method causing the problem: > >void PythonType::name( const char* nam ) >{ > table->tp_name = const_cast<char *>( name ); >} > >I bet that line should be: > > table->tp_name = const_cast<char *>( nam ); > >Otherwise, the code is storing a pointer to the method >and not the string -- a simple typo. > >Changing it this way fixes the segfault on my Caldera system. > >Cheers, and thanks for making it easy for me to fix >the problem get VPython to run .. > >neal > > > FROM: Bruce Sherwood > DATE: 04/26/2002 06:40:58 > SUBJECT: [Visualpython-users] Trouble installing on Debian > > > Here is some nice detective work by Yves Bailly in France. I should > > incorporate his change, but in the meantime here is what he found. I'm > > puzzled that others running on Debian did not run into this problem. > > > > Bruce Sherwood > > > > --On Friday, April 26, 2002 1:57 AM +0200 Yves BAILLY > > <<EMAIL: PROTECTED>> wrote: > > > > > Hello, > > > > > > First of all, I have to say : contragulation for your great work ! > > > > > > Now, my problem : > > > I tried to install VPython on a Debian "sid", using : > > > - Python 2.2.1 > > > - Numeric 21.0 > > > - GtkGlArea 1.2.3 > > > - Mesa which comes with XFree86 4.1.0 > > > > > > Everything compiles fine, but when running > > > from visual import * > > > ...I was always getting a segfault. > > > > > > I dig a little bit, and found this in > cvisual/CXX/Src/cxx_extensions.cxx : > > > void PythonType::name( const char* nam ) > > > { > > > table->tp_name = const_cast<char *>( name ); > > > } > > > The segfault seemed to occure during this method. > > > > > > Considering the char* is a rather strange thing, that should > always be > > > used with care, moreover when you give a litteral string to a > function, > > > I just modified this method a little, to allocate and duplicate the > > > string : > > > void PythonType::name( const char* nam ) > > > { > > > char* str = new char[strlen(nam)+1] ; > > > strcpy(str, nam) ; > > > table->tp_name = const_cast<char *>( str ); > > > } > > > > > > ...and now it works fine, I can even use the KineticsKit ! > > > > > > Just a quick hack, for sure there should something better (nicer). > > > > > > Best regards, > > > > > > -- > > > ( | Yves Bailly : http://kafka-fr.net | - > > > //\ | Linux Dijon : http://www.coagul.org | //\ > > > \_/ | Don d'organe : http://adot21.free.fr | \_/` > > > >-- >Neal Holtz http://www.docuweb.ca/~nholtz >Dept. of Civil and Environmental Engineering, Carleton University, >Ottawa, Ontario, Canada K1S 5B6. nh...@do... > > >_______________________________________________________________ > >Have big pipes? SourceForge.net is looking for download mirrors. We supply >the hardware. You get the recognition. Email Us: ban...@so... >_______________________________________________ >Visualpython-users mailing list >Vis...@li... >https://lists.sourceforge.net/lists/listinfo/visualpython-users |
From: rod h. <rh...@St...> - 2002-07-19 06:17:55
|
I am trying to compile cvisual on Mandrake 8.2. I ran ./install 7 times in succession and got the following errors (this is for cvisual only, Python and Numeric are properly installed). The seg fault is generally different each time. Do you think this compile problem is related to a library(software) problem or a hardware problem such as bad memory? #1. /usr/include/g++-3/stl_alloc.h:423: Internal error: Segmentation fault. Please submit a full bug report. See <URL:https://qa.mandrakesoft.com/> for instructions. #2. CXX/Include/CXX_Objects.h:1039: Internal error: Segmentation fault. Please submit a full bug report. See <URL:https://qa.mandrakesoft.com/> for instructions. #3. /usr/include/g++-3/stl_function.h:129: Internal error: Segmentation fault. Please submit a full bug report. See <URL:https://qa.mandrakesoft.com/> for instructions. #4. /usr/include/gtk-1.2/gdk/gdktypes.h:72: Internal error: Segmentation fault. Please submit a full bug report. See <URL:https://qa.mandrakesoft.com/> for instructions. #5. /usr/include/g++-3/stl_map.h:64: Internal error: Segmentation fault. Please submit a full bug report. See <URL:https://qa.mandrakesoft.com/> for instructions. #6. /usr/include/gtk-1.2/gdk/gdktypes.h:72: Internal error: Segmentation fault. Please submit a full bug report. See <URL:https://qa.mandrakesoft.com/> for instructions. #7. CXX/Include/CXX_Objects.h:1039: Internal error: Segmentation fault. Please submit a full bug report. See <URL:https://qa.mandrakesoft.com/> for instructions. |
From: Bruce S. <bas...@un...> - 2002-07-17 18:07:23
|
Now available at http://vpython.org is a new installer for Mac OS9. It includes the mag2 function for the square magnitude of a vector, with documentation. Now the installers for all platforms are up to date. Bruce Sherwood |
From: Bruce S. <bas...@un...> - 2002-07-17 04:47:17
|
Currently when an arrow head length is greater than half the total length of the arrow, the head length (and shaft and head widths) are scaled down proportionally, preserving the correct total length but shrinking the lateral dimensions so that the arrow still looks like a reasonable arrow. Two users have asked for an option on the arrow object to not scale down the widths of the arrow shaft and arrow head when the head size is larger than half the total length of the arrow. A possible interpretation of this request is that when the head length is greater than half the total length, the head length should be made to be half the total length, and the lateral dimensions not be affected. In the extreme case of arrows whose total length is very small compared to the widths, the object will look like a box with a plane attached at one end. For some purposes this may be preferable to the shrinking currently done by Visual. I append a little program which displays standard arrows (cyan) and new-style arrows (red). The new-style arrows are mocked up by using box and convex. The shortest new-style arrow looks a bit like a thumbtack. If people think this is a good option to have, it would be possible to add a "fixedwidth" attribute to arrow which would give this effect if set to true (1). Suggestions are also welcome for other possible rules for the fixedwidth case. Note that there does have to be a rule for shortening the head length when necessary, because it is not acceptable for the head length to be longer than the total length of the arrow. Bruce Sherwood from visual import * # Display standard cyan arrow's, whose shaft and head widths shrink # for short lengths, next to proposed red arrows with fixed widths. def newarrow(pos=(0,0,0), axis=(1,0,0), color=color.white, shaftwidth=0.1, headwidth=2.*0.1, headlength=3.*0.1): pos = vector(pos) axis = vector(axis) L = mag(axis) sl = L-headlength hl = headlength if headlength > 0.5*L: sl = hl = 0.5*L fr = frame(pos=pos) box (frame=fr, pos=vector(sl/2.,0,0), size=(sl, shaftwidth, shaftwidth), color=color) p = vector(L,0,0) dx = -hl dy = headwidth/2. convex(frame=fr, pos=[p, p+vector(dx,dy,dy), p+vector(dx,dy,-dy), p+vector(dx,-dy,-dy), p+vector(dx,-dy,dy)], color=color) fr.axis = axis for y in arange(1, 10, 1): newarrow(pos=(0,y-5,0), axis=(y/4.,0,0), headlength=1, headwidth=1, shaftwidth=0.4, color=color.red) arrow(pos=(-2.6,y-5,0), axis=(y/4.,0,0), headlength=1, headwidth=1, shaftwidth=0.4, color=color.cyan) |
From: Bruce S. <bas...@un...> - 2002-07-15 19:05:39
|
At http://vpython.org is a new installer for Mac OSX. This brings that version up to date to include the mag2() function for finding the square magnitude of a vector. Now the only version that isn't up to date is the one for Mac OS9. On my Mac OSX when I press F1 in IDLE to get the Python and Visual documentation I get an error message saying that no browser is available, which I don't understand. Those of you who are running VPython on OSX, can you please tell me whether this works or doesn't work for you? Thanks. Bruce Sherwood |
From: Joe H. <hea...@vn...> - 2002-07-14 15:34:26
|
Hi. A couple of questions before I take the plunge. 1) Has anyone had any experience using OroborOSX (a Mac port) rather than the plain Oroboros window manager with VPython? 2) Does the installation actually require *root* as opposed to simply an administrative account password? Under OS X, the default user has admin privileges. Is enabling root absolutely necessary? Thanks! Cheers, Joe Heafner - Instructional Astronomy and Physics Home Page http://users.vnet.net/heafnerj/index.html I'll never be able to afford a Lexus, but I do have a Mac. Same thing. |
From: Bruce S. <bas...@un...> - 2002-07-14 14:22:18
|
I added these comments to the VPython website advice on Mandrake. Thanks much. Bruce Sherwood At 02:06 AM 02/07/14 -0400, Andrew Morrison wrote: >Okay, I have successfully installed on Mandrake8.1. The additional notes >by Francois Papa were helpfull, but were not exactly the same for my >system. The difference between our systems was that (somehow) my >installation of python2.2 uses the /usr/local/ and his used /usr/. I did >have to make the other changes he suggested. > >Thanks to all for the help! > >Martin: > >When I tried to install the libMesaGLU1 and libMesaGLU1-devel rpms, I >found I also needed libgcc3.0. Maybe installing that will allow your >compile to work. > > >Andrew |
From: M. L. <mc...@we...> - 2002-07-14 09:23:33
|
Bruce, my system is a Mandrake 8.2 (download version) with many "Mandrake-cooker" updated files / libraries etc. Kernel version 2.4.18-6mdk. gcc -v: ===================================================================== Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.1/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-cstdio=stdio --enable-clocale=generic --with-gxx-include-dir='$${prefix}/include/g++-v31' --enable-languages=c,c++,f77,objc,java --program-suffix=-3.1 --host=i586-mandrake-linux-gnu --with-system-zlib Thread model: posix gcc version 3.1 (Mandrake Linux 8.3 3.1-0.7mdk) ===================================================================== Just before this email I changed the /etc/colorgccrc, so that gcc-2.96 was used: ==================================================================== # Define the paths to the actual location of the various compilers. # (Currently, colorgcc only understands these: g++ gcc c++ cc) #g++: /usr/bin/g++-3.1 #gcc: /usr/bin/gcc-3.1 #c++: /usr/bin/g++-3.1 #cc: /usr/bin/gcc-3.1 g++: /usr/bin/g++-2.96 gcc: /usr/bin/gcc-2.96 c++: /usr/bin/g++-2.96 cc: /usr/bin/gcc-2.96 ==================================================================== Then compilation of cvisualmodule.so was successful. I'm not a programmer - so I don't understand why gcc-3.1 has a problem with compiling the cvisualmodule.so ... Am Son, 2002-07-14 um 03.30 schrieb Bruce Sherwood: > Here are the relevant statements in cvisual\CXX\Include\CXX_Config.h: > > #if STANDARD_LIBRARY_HAS_ITERATOR_TRAITS > #define random_access_iterator_parent(itemtype) > STD::random_access_iterator<itemtype, int> > #else > #define random_access_iterator_parent(itemtype) > STD::iterator<STD::random_access_iterator_tag,itemtype,int> > #endif > > Knowing nothing about the Mandrake environment, I don't know what the > ramifications of this might be. > > Bruce Sherwood |
From: Andrew M. <mo...@tb...> - 2002-07-14 06:04:13
|
Okay, I have successfully installed on Mandrake8.1. The additional note= s=20 by Francois Papa were helpfull, but were not exactly the same for my=20 system. The difference between our systems was that (somehow) my=20 installation of python2.2 uses the /usr/local/ and his used /usr/. I did= =20 have to make the other changes he suggested. Thanks to all for the help! Martin: When I tried to install the libMesaGLU1 and libMesaGLU1-devel rpms, I=20 found I also needed libgcc3.0. Maybe installing that will allow your=20 compile to work. Andrew On 13 Jul 2002, M. Lutz wrote: > Hi -=20 >=20 > After reading the info's of Francois Papa on link =20 > http://vpython.org/morelinux.html > regarding installing VPython I failed with the following error:=20 >=20 >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > g++ -I. -I./CXX/Include -I/usr/include/python2.2 -I/usr/include/gtk-1.= 2 > -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT > -I/usr/X11R6/include -w -c -o arrow.o arrow.cpp > In file included from pvector.h:6, > from cvisual.h:6, > from display.h:5, > from prim.h:5, > from axial.h:5, > from arrow.cpp:1: > CXX/Include/CXX_Objects.h:967: no class template named > `random_access_iterator' > in `std' > CXX/Include/CXX_Objects.h:1077: no class template named > `random_access_iterator > ' in `std' > make: *** [arrow.o] Fehler 1 > cp: Aufruf von stat f=FCr =BBcvisualmodule.so=AB nicht m=F6glich: No su= ch file > or directory > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > I've installed all mentioned packages including the Numeric library.=20 > But the result still like shown in the screenprint above. >=20 > Could somebody help me with that? > Thanks in advance! >=20 > Martin > in=20 > Koeln / Germany. >=20 >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users >=20 |
From: Bruce S. <bas...@un...> - 2002-07-14 01:29:33
|
Here are the relevant statements in cvisual\CXX\Include\CXX_Config.h: #if STANDARD_LIBRARY_HAS_ITERATOR_TRAITS #define random_access_iterator_parent(itemtype)=20 STD::random_access_iterator<itemtype, int> #else #define random_access_iterator_parent(itemtype)=20 STD::iterator<STD::random_access_iterator_tag,itemtype,int> #endif Knowing nothing about the Mandrake environment, I don't know what the=20 ramifications of this might be. Bruce Sherwood At 09:57 PM 02/07/13 +0200, M. Lutz wrote: >Hi - > >After reading the info's of Francois Papa on link >http://vpython.org/morelinux.html >regarding installing VPython I failed with the following error: > > >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >g++ -I. -I./CXX/Include -I/usr/include/python2.2 -I/usr/include/gtk-1.2 >-I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT >-I/usr/X11R6/include -w -c -o arrow.o arrow.cpp >In file included from pvector.h:6, > from cvisual.h:6, > from display.h:5, > from prim.h:5, > from axial.h:5, > from arrow.cpp:1: >CXX/Include/CXX_Objects.h:967: no class template named >`random_access_iterator' > in `std' >CXX/Include/CXX_Objects.h:1077: no class template named >`random_access_iterator > ' in `std' >make: *** [arrow.o] Fehler 1 >cp: Aufruf von stat f=FCr =BBcvisualmodule.so=AB nicht m=F6glich: No such= file >or directory >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >I've installed all mentioned packages including the Numeric library. >But the result still like shown in the screenprint above. > >Could somebody help me with that? >Thanks in advance! > >Martin >in >Koeln / Germany. > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Visualpython-users mailing list >Vis...@li... >https://lists.sourceforge.net/lists/listinfo/visualpython-users |
From: Bruce S. <bas...@un...> - 2002-07-14 01:27:17
|
Thanks for the report. I've posted the following bug report in the VPython sourceforge.net project. Reported by Gregor Lingl: s = sphere() print dir(s) # shows "constr" and "name" print s.name # AttributeError print s.constr # AttributeError Presumably Visual is either reporting attributes incorrectly to dir(), or isn't handling them correctly. I don't think these attributes are documented. |
From: M. L. <mc...@we...> - 2002-07-13 19:58:21
|
Hi -=20 After reading the info's of Francois Papa on link =20 http://vpython.org/morelinux.html regarding installing VPython I failed with the following error:=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D g++ -I. -I./CXX/Include -I/usr/include/python2.2 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT -I/usr/X11R6/include -w -c -o arrow.o arrow.cpp In file included from pvector.h:6, from cvisual.h:6, from display.h:5, from prim.h:5, from axial.h:5, from arrow.cpp:1: CXX/Include/CXX_Objects.h:967: no class template named `random_access_iterator' in `std' CXX/Include/CXX_Objects.h:1077: no class template named `random_access_iterator ' in `std' make: *** [arrow.o] Fehler 1 cp: Aufruf von stat f=FCr =BBcvisualmodule.so=AB nicht m=F6glich: No such f= ile or directory =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I've installed all mentioned packages including the Numeric library.=20 But the result still like shown in the screenprint above. Could somebody help me with that? Thanks in advance! Martin in=20 Koeln / Germany. |