Article View: comp.graphics.explorer
Article #169Re: streak.c and average velocity
From: Wizard of OZ
Date: Fri, 11 Dec 1992 18:52
Date: Fri, 11 Dec 1992 18:52
37 lines
1666 bytes
1666 bytes
In article <1992Dec11.160107.8845@seas.gwu.edu>, favre@seas.gwu.edu (Jean Favre) writes: |> From: favre@seas.gwu.edu (Jean Favre) |> Newsgroups: comp.graphics.explorer |> Subject: streak.c and average velocity | |> I have been looking at the code of streak.c in the Streakline module so I |> could modify it for my own needs. I am puzzled by the following line in the |> code, where the average velocity is computed: |> |> ave_vel = |> velocity[0]*velocity[1]+velocity[1]*velocity[1]*velocity[2]*velocity[2]; |> |> Shouldn't this be: |> |> ave_vel = |> velocity[0]*velocity[0]+velocity[1]*velocity[1]+velocity[2]*velocity[2]; |> Yes, you are correct. One more typo caught. This value was only used in determining when a dead spot was found, so the actual streaks are correct. It just may have stopped at the wrong time. Note that an expensive sqrt is not used because it is just a criteria for completion. |> -- |> Jean M. Favre. EE&CS Dept. The George Washington University |> (202) 994 5917 |> favre@seas.gwu.edu -- Gary Griffin Second to the left gary@sgi.com Straight on to morning P. Pan Think WORLDWIDE
Technical Details
Message-ID:
<1gao1cINN6lb@fido.asd.sgi.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!ames!sgi!fido!enigma.esd.sgi.com!garyReferences:
<1992Dec11.160107.8845@seas.gwu.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!ames!sgi!fido!enigma.esd.sgi.com!gary From: gary@enigma.esd.sgi.com (Wizard of OZ) Newsgroups: comp.graphics.explorer Subject: Re: streak.c and average velocity Date: 11 Dec 1992 18:52:28 GMT Organization: Silicon Graphics Computer Systems, Mountain View, CA Lines: 37 Distribution: world Message-ID: <1gao1cINN6lb@fido.asd.sgi.com> References: <1992Dec11.160107.8845@seas.gwu.edu> Reply-To: gary@sgi.com NNTP-Posting-Host: enigma.esd.sgi.com