I'm hoping someone can help me with this. I've looked around the forum and I don't seem to be able to find a topic that addresses this problem. I might be looking for the wrong keyword but basically I have a curve and I want too find out the length of this curve which would be a useful feature if this functionality is not already implemented in MOI. It might also be helpful to know things like area and volume therefore weight etc... I digress , the reason I need to know this is so that I can create a flat mesh to the right size and then use the 'Deform' tool to (excuse the Rhino terminology) 'flow' it around that curve without distorting it too much.
Any help would be greatly appreciated. Many thanks in advance.
CurveLengthV2 – It is possible to measure a length of curve in v2 by setting up a keyboard shortcut with this as the command. Then when you push that shortcut key it will calculate the length of the selected curves and copy it to the clipboard as text, and you can paste it into a text editor to see it.
quote:
script:/* Calculate length of selected curves and copy to the clipboard as text */ var crvs = moi.geometryDatabase.getSelectedObjects().getCurves(); var len = 0.0; for ( var i = 0; i < crvs.length; ++i ) len += crvs.item(i).getLength(); moi.copyTextToClipboard( len );
Thanks Marco the command worked great. It's made the job so much easier. Thanks for that. as far as the script goes I haven't graduated to using those yet. I'm not quite sure how to run them. I'll dig around and see if I can find a tutorial on this.
Thanks Brian, it's good to know I'm not the only one that is looking for this functionality. at the moment I have to keep jumping between programs to see the weight of the object i'm creating which is a right pain.