limaBean curve

 From:  bemfarmer
10600.26 
Here is another "Bean" curve, created with 4 arcs.
The link was given previously, and is also in the .js file.
The math is simple, yet fairly intricate.
The x and y coordinates (lengths) are based upon a right triangle, with the other two angles at 45 degrees.
Radical r = square root of 2.
If the two legs of the triangle are 1, the hypotenuse is r.
If the two legs are r, the hypotenuse is 2.
Pointpicker is used to pick local origin in desired View.
This version moved the cPlane origin from point "O" to point S, which is on the largest arc.
This required adjusting the math for each point.
Point S is offset from point O.
3 point arc factory was used, because center arc factory does not always draw the arc on the desired side.
The center arc factory seems to work "counter clockwise", but as the points move around, some arcs may be on the "wrong" side.
Coordinate Frames, and Local coordinates versus World coordinates are now slightly less confusing.
I was thinking of doing an essay on Coordinate Frames. MoI5beta API, and numerous past posts on the forum were helpful.
Help from Michael from past years was utilized, and Max script techniques were also helpful.
Added some reset pushbuttons.
This version may be considered an "alpha".
It seems to work in MoI4 and MoI5beta.
There is brief documentation by using the Blue ? button.

- Brian
Attachments: