How to get rectangle center

Hi, I’m looking for a way to get the center of a rectangle. I want to translate an extruded solid in the direction of an other extruded solid so I thought to Translate with directon and distance; I want to create a vector linking the centers of the two rectangles which the solid are extruded from.
Thanks for help

Hi @Lucaly1994

1 Like

Use the rectangle to create a surface, and the the point at parameter 0.5,0.5 on said surface.


@Marcel_Rijsmus This solution only works when the rectangle isnt rotated

1 Like

Polygon.Center eh? :slight_smile: