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
Use the rectangle to create a surface, and the the point at parameter 0.5,0.5 on said surface.
Surface.PointAtParameter(Surface.ByPatch(YourRectangle),0.5,0.5);