Draw a Rectangle with middle centred on a point,

Hey all, Trying to find out how to spawn rectangles with their centres being aligned on each point of a PopGen and not their plane ‘0’.

which function(s) do i need to be able to shift it from the X,Y plane centre to the centre of a rectangle who’s dimensions are random?

many thanks!

you could spawn them immediately centered, like this.

rectangle_centered.gh (6.8 KB)

Hi, thank you for replying. Its a good solution but I have the x and Y axis already being randomized at creation and I can’t quite get your solution to fit in.


Procedural Towers.gh (27.8 KB)

It should be something like this :slight_smile:

Procedural Towers.gh (34.2 KB)

Ah that works great! thank you!