|
![](/i/fill.gif) |
Tor Olav Kristensen wrote:
[I've snipped the cosmetic and newbie errors (too many parens, etc.)
Also, I had #local instead of #declare originally, then thought that
that might be the problem, replaced them, saw no difference, never
bothered to change them back.]
> And the parentheses in these three expressions
> were not present in Paul Bourke's code:
>
> (DotsArray[MinP1].x + PlusElem)
> (DotsArray[MinP1].y + PlusElem)
> (DotsArray[MinP1].z + PlusElem)
>
> (Will lead to a serious calculation error)
Ah. Operator precedence. Thank you SO much, Tor.
> This means that you don't have to use two
> different constants for the percent amount to
> move the points.
>
> I.e. you can replace both the PlusElem and the
> MinusElem constants with e.g. MovePercent if
> you rewrite the expression for DotsArray[MinP2]
> a little.
I did that for "clarity" (FSVO). This was intended to be for someone
only slightly less experienced than I am (because it's only possible to
be SLIGHTLY less experienced than I am) to read.
> I hope this helped a little.
> (But note that I have not tested any of the code above.)
I haven't tested it either (not able to quite yet), but that's the only
thing I didn't check several dozen times. I'm sure that's it. Thank
you once again.
Deaken
Post a reply to this message
|
![](/i/fill.gif) |