home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / graphics / explorer / 386 next >
Encoding:
Internet Message Format  |  1992-12-11  |  1.6 KB

  1. Path: sparky!uunet!think.com!ames!sgi!fido!enigma.esd.sgi.com!gary
  2. From: gary@enigma.esd.sgi.com (Wizard of OZ)
  3. Newsgroups: comp.graphics.explorer
  4. Subject: Re: streak.c and average velocity
  5. Date: 11 Dec 1992 18:52:28 GMT
  6. Organization: Silicon Graphics Computer Systems, Mountain View, CA
  7. Lines: 37
  8. Distribution: world
  9. Message-ID: <1gao1cINN6lb@fido.asd.sgi.com>
  10. References: <1992Dec11.160107.8845@seas.gwu.edu>
  11. Reply-To: gary@sgi.com
  12. NNTP-Posting-Host: enigma.esd.sgi.com
  13.  
  14. In article <1992Dec11.160107.8845@seas.gwu.edu>, favre@seas.gwu.edu (Jean Favre) writes:
  15. |> From: favre@seas.gwu.edu (Jean Favre)
  16. |> Newsgroups: comp.graphics.explorer
  17. |> Subject: streak.c and average velocity
  18. |
  19. |> I have been looking at the code of streak.c in the Streakline module so I
  20. |> could modify it for my own needs. I am puzzled by the following line in the 
  21. |> code, where the average velocity is computed:
  22. |> 
  23. |> ave_vel =
  24. |>    velocity[0]*velocity[1]+velocity[1]*velocity[1]*velocity[2]*velocity[2];
  25. |> 
  26. |> Shouldn't this be:
  27. |> 
  28. |> ave_vel = 
  29. |>  velocity[0]*velocity[0]+velocity[1]*velocity[1]+velocity[2]*velocity[2];
  30. |> 
  31.  
  32. Yes, you are correct. One more typo caught.
  33.  
  34. This value was only used in determining when a dead spot was found, so
  35. the actual streaks are correct. It just may have stopped at the wrong time.
  36.  
  37. Note that an expensive sqrt is not used because it is just a criteria for
  38. completion.
  39.  
  40. |> -- 
  41. |> Jean M. Favre. EE&CS Dept. The George Washington University
  42. |>         (202) 994 5917
  43. |>         favre@seas.gwu.edu
  44.  
  45. -- 
  46.  
  47. Gary Griffin            Second to the left    
  48. gary@sgi.com            Straight on to morning
  49.                         P. Pan    
  50. Think WORLDWIDE
  51.