I am trying to find the neighbours of each point. then I will measure the distance between each point with its neighbour.
How I can exclude the points on the edge?
import Rhino.Geometry as rg
import rhinoscriptsyntax as rs
import scriptcontext as sc
for j in range (len(curves)-1):
first_points = rs.DivideCurve(curves[j], div)
for i in range(div+1):
for line in lines:
row_points = rs.DivideCurve(line, div)
flat_points = [item for sublist in points for item in sublist]
i = 5
j = 7