From f33681361abf608d9451ed8306392bf8d8e8af94 Mon Sep 17 00:00:00 2001 From: "Jason S. McMullan" Date: Thu, 7 Sep 2023 22:39:15 -0400 Subject: [PATCH] direct_api: Joint.connected_to is a set(), not singleton --- src/build123d/topology.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/build123d/topology.py b/src/build123d/topology.py index ca8c7e94..fce3c9cb 100644 --- a/src/build123d/topology.py +++ b/src/build123d/topology.py @@ -6782,7 +6782,7 @@ class Joint(ABC): def __init__(self, label: str, parent: Union[Solid, Compound]): self.label = label self.parent = parent - self.connected_to: Joint = None + self.connected_to: Joint = set() def _connect_to(self, other: Joint, **kwargs): # pragma: no cover """Connect Joint self by repositioning other""" @@ -6792,7 +6792,7 @@ def _connect_to(self, other: Joint, **kwargs): # pragma: no cover relative_location = self.relative_to(other, **kwargs) other.parent.locate(self.parent.location * relative_location) - self.connected_to = other + self.connected_to.add(other) @abstractmethod def connect_to(self, other: Joint, **kwags):