elif "voxelgrids" in key:
self.voxelgrids = kwargs[key]
else:
setattr(self, key, kwargs[key])
// store raw values to share memory along structures
self.xyz = self.points[["x", "y", "z"]].values
self.centroid = self.xyz.mean(0)
After Change
self.mesh = mesh
self.structures = StructuresDict()
for key, val in structures.items():
self.structures[key] = val
for key, val in kwargs.items():
setattr(self, key, val)
// store raw xyz values to share memory along structures
self.xyz = self.points[["x", "y", "z"]].values