Returns a copy of all of the items on the stack moved by the specified translation vector. :param tupleDistance: distance to move, in global coordinates :type tupleDistance: a 3-tuple of float :returns: a CQ object
(self: T, vec: VectorLike)
| 1166 | return newS |
| 1167 | |
| 1168 | def translate(self: T, vec: VectorLike) -> T: |
| 1169 | """ |
| 1170 | Returns a copy of all of the items on the stack moved by the specified translation vector. |
| 1171 | |
| 1172 | :param tupleDistance: distance to move, in global coordinates |
| 1173 | :type tupleDistance: a 3-tuple of float |
| 1174 | :returns: a CQ object |
| 1175 | """ |
| 1176 | return self.newObject( |
| 1177 | [ |
| 1178 | o.translate(Vector(vec)) if isinstance(o, Shape) else o |
| 1179 | for o in self.objects |
| 1180 | ] |
| 1181 | ) |
| 1182 | |
| 1183 | def shell( |
| 1184 | self: T, thickness: float, kind: Literal["arc", "intersection"] = "arc" |