Python Forum
[Geometry] Finding centers of each grid in pointgrid
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Geometry] Finding centers of each grid in pointgrid
#1
[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 :)
Reply


Messages In This Thread
[Geometry] Finding centers of each grid in pointgrid - by andre - Aug-22-2017, 10:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  finding point in m grid jenya56 0 843 Feb-06-2022, 09:00 PM
Last Post: jenya56
  Import Text, output curve geometry Alyner 0 2,013 Feb-03-2020, 03:05 AM
Last Post: Alyner
  How do I apply a Gaussian blur to a particular edge of geometry in Matplotlib? hbolandi 0 2,032 Feb-02-2020, 06:08 PM
Last Post: hbolandi
  terminal/console geometry Skaperen 12 9,602 Feb-02-2017, 02:09 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020