Aug-22-2017, 10:45 AM
[Geometry] How to find centerpoints in a grid of independent (but symmetrically spread) points?
I am using Python in Dynamo which is an extension to the Autodesk modelling software Revit.
This means (as far as i know) that I am locked to IronPython, and thus cannot use external modules.
(I have not really read up too much on this, but its the conclusion I have drawn from working with IronPython so far)
My problem is that I have a list of points which represents a few grids of points, and I want to find the centerpoint for each grid.
How do I proceed to do that?
Image from Dynamo (Its a list of lists with points. The points are grouped in list per horizontal line as you can see in the image below)
i.imgur.com/1RVvknl.png
This is basically just an array in the python code.
Any suggestions for a solution?
I am not very experienced with Python, but I get around.
Thanks for your response :)
I am using Python in Dynamo which is an extension to the Autodesk modelling software Revit.
This means (as far as i know) that I am locked to IronPython, and thus cannot use external modules.
(I have not really read up too much on this, but its the conclusion I have drawn from working with IronPython so far)
My problem is that I have a list of points which represents a few grids of points, and I want to find the centerpoint for each grid.
How do I proceed to do that?
Image from Dynamo (Its a list of lists with points. The points are grouped in list per horizontal line as you can see in the image below)
i.imgur.com/1RVvknl.png
This is basically just an array in the python code.
Any suggestions for a solution?
I am not very experienced with Python, but I get around.
Thanks for your response :)