Forgot password?

Create an account!


« back

RhinoScript – Find vertex of a 3D mesh object in XY plane


Please log in to write a message.

  • 3. Novice (Jun 27, 2013 08.41):

    Hi Johannes,

    Thank you so much and the script works beautifully.

    Is there any way to get the vertices of a particular selection area instead of the whole object, so that I can reduce the loop time to compare the vertices?


  • 2. Johannes (Jun 26, 2013 16.58):

    Hi, yes you can use the MeshVerticies. Just take a look on the Rhino Script help... meshverticies() and run a loop throug the result:

            Const rhObjectMesh = 32

            Dim strObject, arrVertices

            strObject = Rhino.GetObject("Select mesh", rhObjectMesh)
            arrVertices = Rhino.MeshVertices(strObject)

            Dim v, pointMin
            If IsArray(arrVertices) Then
                    For Each v In arrVertices
                            If Not isArray(pointMin) Then
                                    pointMin = v
                            ElseIf v(1) < pointMin(1) Then 
                                    pointMin = v
                            End If

                    Call Rhino.AddtextDot("YMin", pointMin)
            End If


  • 1. Novice (Jun 26, 2013 11.37):

    Hi, I'm very new to Rhino. Can any of you help me to find the vertex of a 3D mesh object using Rhino script? Is it feasible to use MeshVertices and compare the coordinates? I need to find the highest and lowest Y on an XY plane (Top View). Any help is appreciated.

    Thanks in advance.


Why are these buttons gray?