Lemniscate script vs node

 From:  bemfarmer
11375.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:-)

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All