Get centre/center point of a room?

Hi All

I am trying to get the centre point of a room. A coordinate in the middle of a room, is their a node for this or if not how this could be done otherwise?

image

For simple shapes, as you show, you can extract vertices of the room boundary - then make a polygon out of them - and finally use a polygon centre node.

Keep in mind though that for complex shapes polygon centre might be located outside of the shape:)
There are actually a few geometrical ways of finding shape’s centre (like centre of the mass for example), but for simple shapes they should give similar results. Otherwise you would have to be more specific about what you’re after…

This may help: Re-center Room object origin to centroid?