How to determine the length of a given Curve

Next
 From:  KRUM
7087.1 
Hi all,

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.

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

Previous
Next
 From:  KRUM
7087.2 In reply to 7087.1 
correction 'flow' is a native MOI functionality as well. sorry. but the questions still stands.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  coi (MARCO)
7087.3 In reply to 7087.1 
Hi KRUM

I've found the UnwrapCurve plug-in particularly useful when working with Flow:

http://moi3d.com/forum/index.php?webtag=MOI&msg=5136.1

there also exists a CurveLength-script:

http://kyticka.webzdarma.cz/3d/moi/#CurveLength

quote:
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 );


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

Previous
Next
 From:  bemfarmer
7087.4 In reply to 7087.1 
Hi KRUM

unwrapcurve is great.

AFAIK, there is no Area or Volume script yet. (It is possible with NURBS, but way beyond my puny skills:-)

(I did do a very simple and limited area of polygon script for measuring polygons only, for acreage)

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

Previous
 From:  KRUM
7087.5 
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.

cheers
KRUM
  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