Hello,
I found myself needing to have a rounded rectangle to loft to, and realized that rect() doesn't have, fillet or chamfer parameters.
Since offset2D and chamfer2D have been implemented some time ago I think supporting this could be nice.
Looking at the source code for rect() it doesn't seems too complicated to implement.
For reference here a quick plugin I made that do rounded rect :
def rounded_rect(self, xlen, ylen, fillet_radius):
rect = cq.Workplane().rect(xlen, ylen).val()
pts = rect.Vertices()
rect = rect.fillet2D(fillet_radius, pts)
return self.eachpoint(lambda loc: rect.moved(loc), True)
cq.Workplane.rounded_rect = rounded_rect
