Any piece able to freely rotate is considered the same structure. For example, for 2 1X2 legos the arrangement count is 2: top connected to bottom with both nubs, top connected to bottom with one nub because if you analyze legos you will find that such an arrangement can freely rotate over 270 degrees, and left vs right nubs result in the same structure when taking rotational symmetry into account.
For the problem I assume an 'ideal' lego with 0 manufacturing tolerance, no illegal building techniques are allowed.
Is there a name for the above combinatorics question? Is it well-posed?
Is there a closed-form solution? If not is there a generator program?
I should say that with a high enough N any generator would be very complex - imagine how degrees of rotational freedom give rise to the possibility of further structures hidden from other rotational orientations.