|
![](/i/fill.gif) |
On Thu, 6 Aug 1998 12:24:37 -0500, "Mark Arrasmith"
<arr### [at] math twsu edu> wrote:
>Shouldn't that be (dx_zero)? Anyway with
>
>if ((dx_zero) && (k1 < k2 - EPSILON / maxdv) && (k1>0.0))
Um.... I don't think so.... You're now saying that you _only_ want to
do those things when dx is zero... If the problem was exactly as I
stated, you should not only still be crashing, you should be getting
strange results everywhere else as well.
You're saying that if dx is zero (and thus, when dz is negative, so is
maxdv) you want to divide by maxdv. That's just not right.
HOWEVER---
I failed to account for the fact that maxdv can be zero when dz is
zero and dx is negative as well. Your scene probably tickles dz in
the wrong way instead of dx, and your change has made it not try to
divide in the cases when dz is zero (since dx=dz=0 makes it stop long
before it gets here.)
So what line 2209 should say is:
if (dz_zero || ((!dx_sero) && (k1<k2 - EPSILON / maxdv) && (k1>0.0)))
2220 should still be as I stated in the original post.
Post a reply to this message
|
![](/i/fill.gif) |