Creating Voronoi diagram using points on a BREP

Hi all,

This is my first time posting here and I’m fairly new to Grasshopper, so please take it easy.

My problem is related to wind tunnel testing, where a series of pressure measurement taps/points are arranged on a building model. Each tap should have it’s own tributary area, so I’m trying to use a Voronoi diagram to achieve the desired results.

I’ve managed to create a simple Grasshopper script to achieve this somewhat. However, I am facing two main problems:

  1. Voronoi areas should only be limited to the 2d face they are set upon. It seems like some of the points around corners are trying to “connect” to each other. But I would like to avoid that.

  2. I want to avoid creating any voronoi areas for horizontal areas (e.g. the building roof).

Could any help guide a lost soul?

Currently all the points are in a single CSV file. Do I need to separate the points according to the 2d plane which they sit on? I’d like to avoid doing that, if possible. Is there another easy way to achieve my goals?


Thank you.