Hi Burr, thanks for the video description that helps clear it up.
So yeah you don't want any "perp/perp" type of thing for your case, so that CrvDeviation tool in Rhino will not work for this case.
Doing a set of y-axis aligned lines like you showed there will work but the accuracy will be limited to whatever density of lines you used. But you can probably do a pretty large number of them just in the general area where you know the spot is at.
Then doing a script that just selects the longest curve from all existing ones in the model is definitely possible without much fuss - here's one that you can set up on a shortcut key:
script: /* select longest curve */ var curves = moi.geometryDatabase.getObjects().getCurves(); var maxlen = -1; var maxcrv = null; for ( var i = 0; i < curves.length; ++i ) { var crv = curves.item(i); if ( crv.hidden || crv.locked ) { continue; } var thislen = crv.getLength(); if ( thislen> maxlen ) { maxlen = thislen; maxcrv = crv; } } if ( maxcrv != null ) maxcrv.selected = true;
That will look through all curves that are not hidden or locked, it does not only look at lines, so if you have some curves that you don't want to have considered (like the original ones that you are measuring between) lock or hide those before running the script.
Hope that helps!
- Michael
|