I am confused with lattice parameter and the basis. The structure I generated is not HCP. To verify this, one could use this plotting function from the answer to Can a LatticeData image be displayed in a space filled fashion:
volumetricPlot[latticeType_] :=
Module[{img = LatticeData[latticeType, "Image"],
r = LatticeData[latticeType, "PackingRadius"]},
Show[img /. Sphere[pt_, r_] :> {},
Map[RegionPlot3D[(EuclideanDistance[{x, y, z}, #] < r), {x, -1,
1}, {y, -1, 1}, {z, -1, 1}, Mesh -> False,
PlotStyle -> Opacity[.5]] &,
Cases[img, Sphere[pos_, _] :> pos, Infinity]]]]
volumetricPlot["HexagonalClosePacking"]
The structure should be close-packed, so the bottom row of spheres should be touching the ones above it. But this is clearly not the case.

