Clothoid 2 point curve script

 From:  Michael Gibson
5878.16 In reply to 5878.15 
Hi Brian,

> Is there some way to get the end point tangent of a curve, by script?

Sorry no there is not currently any curve tangent evaluation set up for script access.


> I have read that for these types of curves, it is not possible to perfectly display the
> curves by NURBS, but only to within some tolerance?

Yeah that's pretty common, usually any specific kind of curve can't be 100% exactly represented by a different kind of curve but can be approximated using a bunch of points to some tolerance level.

NURBS curves can exactly represent conic section curves though.


> Also wondered if you will be improving the slide bars for scripts, as the sliders
> that you do for your factory commands work so much better?

Probably what you're running into here is that the script is running in a separate process so every call that it makes into MoI has to do some inter-process communication. But it's also why a command script can't easily crash MoI, because the separate process that the script is running in can be just torn down without really needing any cooperation from the script itself.

One thing you could try is to put more of the logic into a <script> tag inside the .htm file - that will run inside of the main moi process and won't have to do any inter-process communication when it makes calls into moi.

- Michael