Convert DirectShape to room or MEP space

Hello everyone,

which node converts a DirectShape into a room or MEP room?

Best regards

Rolf

Hi Rolf,

You could get a point on a DirectShape and use that to place a room? (‘MEP rooms’ are Spaces)

Hopefully that helps :slight_smile:

Mark

Hi Mark,

can any point on the space boundary be used, including a corner point, or does the point have to be in space?

Best regards

Rolf

Hi Rolf,

It would want to be inside, so I’d probably get the average point? You might be able to get the bounding box of the Directshape which would compute faster? It wouldn’t matter that the bounding box is axis aligned for the purpose of the centroid…

Hope that helps,

Mark

Hi Mark,

thanks for the help.

Unfortunately, in L- or U-shaped rooms, the center of gravity may also be outside the room contour.

Is there maybe another method?

Best regards

Rolf

1 Like

Hi Simon,

Thanks for the link. There is “Search”, but “Finding” is sometimes difficult!

So far I have used: Move the room outline inwards by 0.5 meters and use the center of an offset outline line with Space.ByPoint.

I’m testing which solution runs faster.

Best regards

Rolf

1 Like