def can_connect_to(self, other):
assert other.is_mesh()<EOL>disconnected = not other.is_connected() and not self.is_connected()<EOL>types_differ = self._is_consumed_mesh() != other._is_consumed_mesh()<EOL>return disconnected and types_differ<EOL>
Whether a connection can be established between those two meshes.