Forgot password?

Create an account!

Scripts

« back

n-closest point

Description Example image: n-closest point

RhinoScript Library by Johannes

Finds the point in an array of 3-D points that is the 1st, 2nd, 3rd, .... n-closest point to a test point.
It is a similar function like Rhino.PointArrayClosestPoint() but with a range.
The return is the index of that point.

Version

Version 1 (Jun 08, 2010)

Requirements

Rhino version: Rhino 4

Libraries: Array Library (version 1.4) by Hanno

Code

You need to be logged in to view the source code.

Download

You need to be logged in to download the script.

Recommend

Why are these buttons gray?

Comments
  • 3. Ning (Jun 15, 2010 16.58):

    johannes,

    Thank you for your explanation. I should look at it more carefully.

    Best Wishes

    ning

  • 2. Johannes (Jun 11, 2010 16.59):

    hi ning,

    the same like that problem with printing array's..
    take a look on the requirements... i used the array library of hanno.
    www.rhinoscript.org/rhinoscript/37
    so you need do wonload the lib and run it before running the n-closest point.

    johannes

  • 1. Ning (Jun 11, 2010 15.38):

    Johannes,

    Thank you for sharing your code here. I am tryind to use your code and encountered a problem associated with "variable is undefined array_extract". Do you have the definition of array_extract?

    Regards

    ning

  • +++ Jun 08, 2010 18.54: n-closest point version 1 published +++