@classmethod
def from_box(cls, box):
    """Creates a `SolidPrimitive` from a :class:`compas.geometry.Box`.

        Parameters
        ----------
        box: `compas.geometry.Box`

        Returns
        -------
        SolidPrimitive
        """
    return cls(type=cls.BOX, dimensions=[box.xsize, box.ysize, box.zsize])
