Forgot password?

Create an account!


« back

RhinoScript – select surfaces by surface normal


Please log in to write a message.

  • 2. Johannes (Jun 17, 2011 20.57):

    you overwrite the result each round/loop.
    i think a 'for' loop would be a better option. along with the upper bound (ubound()) of an array (fassaden), an index (i) and another array storing the normal vector of each surface.
    what do you want to do with the normal vector? its a zero based vector. so you get three coordinates according to the direction.

  • 1. timkado (Jun 17, 2011 19.36):

    hi there
    im new to rhino script and i have the following issue
    somehow i cant store the surface normal vector as an variable
    heres the code:

    Dim hauser,fassaden, flaeche
    fassaden = Rhino.AllObjects

    For Each flaeche In fassaden

    Dim strObject, arrPoint, arrParam, arrNormal

    arrPoint = Rhino.SurfaceAreaCentroid (flaeche)
    arrParam = Rhino.SurfaceClosestPoint(flaeche, arrPoint)
    arrNormal = Rhino.SurfaceNormal(flaeche, arrParam)

    Rhino.Print (arrNormal)


    any help apperciated



Why are these buttons gray?