MoI discussion forum
MoI discussion forum

Full Version: Lemniscate script vs node

From: bemfarmer
31 Mar   [#1]
Attached is a script for the Lemniscate of Bernoulli, LemniscateB, which is done using Interpcurve factory.

Also attached is a new LemniscateBer.nod assemblage. I think the node editor is using Curve factory. (?)

All were done with 800 points.

The LemniscateB curve has its start point at x = ( a,0 ). It's midpoint does not quite reach the point x = ( -a,0 )

The LemniscateBer curve has its start point, not at y=0, but very near the nearest Edit>Show pts point.

I also did a test LemniscateBcc script using Curve factory, which seems to be exactly the same as the LemniscateBer curve.

Of course Javascript has some slight inaccuracies in PI, cos and sin...and the usual decimal vs binary number differences.

- Brian

(I previously posted a different node assemblage for the Lemniscate, which behaves the same as LemniscateBer, at 800 points.)
ps Taking the square root, or nth root by Math.pow, of a negative number does not work:-)

Attachments:
LemniscateBer.zip
_LemniscateB.zip