The locus of the centre of the circle travelling around the square will be a square with rounded corners.
The length of this locus will be the perimeter of the square plus the circumference of the circle.

Ball rolling round the perimeter of a square

The locus of the centre of the circle travelling around the equilateral triangle will be an equilateral triangle with rounded corners.
The length of this locus will be the perimeter of the triangle plus the circumference of the circle.

Circle rolling round a triangle