Forgot password?

Create an account!

Forum

« back

RhinoScript – Find edge length

Messages

Please log in to write a message.

  • 3. bfackrell (May 06, 2010 22.53):

    Thanks for the help Johannes. I got the script running and found that with several thousand surfaces this procedure runs very slow. I also realized that I’m looking for something more like UV spacing. So I’m back to the drawing board.

  • 2. Johannes (May 04, 2010 08.49):

    you need to duplicate the border of the surface. then you will get an array of crv-id's.

    Dim strSrf      : strSrf    = Rhino.getobject("pick srf", 8+16)
    Dim arrBorder   : arrBorder = Rhino.DuplicateEdgeCurves(strSrf)
           
    Dim i
           
    For i = 0 To Ubound(arrBorder)
         Call msgbox("edge " & (i+1) & ": " & Rhino.CurveLength(arrBorder(i)))
    Next
  • 1. bfackrell (May 04, 2010 00.19):

    How do I find the length of a surface edge?

    I read that edges to not have ID’s in Rhino so there is no data. Is there some sort of trick that can be used to determine the length of an edge?

    I’m trying to write a script that will select all surfaces that have any edge less than a specific length.

Recommend

Why are these buttons gray?