diff --git a/coxeter/shapes/polygon.py b/coxeter/shapes/polygon.py index a4091f6b..c0c7aae3 100644 --- a/coxeter/shapes/polygon.py +++ b/coxeter/shapes/polygon.py @@ -800,6 +800,7 @@ def to_hoomd(self): self.centroid = np.array([0, 0, 0]) data = self.to_json(["vertices", "centroid", "area", "inertia_tensor"]) hoomd_dict = _map_dict_keys(data, key_mapping=_hoomd_dict_mapping) + hoomd_dict |= {"vertices": self.vertices[:, :2]} hoomd_dict["sweep_radius"] = 0.0 self.centroid = old_centroid