MCPcopy
hub / github.com/CadQuery/cadquery / key

Method key

cadquery/selectors.py:324–330  ·  view source on GitHub ↗

Return the key for ordering. Can raise a ValueError if obj can not be used to create a key, which will result in obj being dropped by the clustering method.

(self, obj: Shape)

Source from the content-addressed store, hash-verified

322
323 @abstractmethod
324 def key(self, obj: Shape) -> float:
325 """
326 Return the key for ordering. Can raise a ValueError if obj can not be
327 used to create a key, which will result in obj being dropped by the
328 clustering method.
329 """
330 raise NotImplementedError
331
332 def cluster(self, objectlist: Sequence[Shape]) -> List[List[Shape]]:
333 """

Calls

no outgoing calls