Forum: Poser - OFFICIAL


Subject: Matmatic - Displacement Problem

ropeypopey opened this issue on Aug 31, 2006 · 36 posts


ropeypopey posted Sat, 02 September 2006 at 7:36 PM

Quote - Could you possibly show these with the corrections?

The code about 10 posts up (with the golden primitive props) is the almost correct version.
It looks different because, instead of coding  three separate coils, I made a "coil" function and then just called it three times with different parameters.

As bagginsbill pointed out there is still a correction to be made there however:
The lines:
    k = Max(k, 0)                 # avoid negative numbers ;-)
    DispThread = Sqrt(k * (Diam - k))

Should read:
    k = Max(k * (Diam - k, 0)  # avoid negative numbers ;-)
    DispThread = Sqrt(k)

It worked without the correction, but best to be sure. 😉

My favourite question is "Why?", my second favourite is "Why not?"