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

Method copy

cadquery/occ_impl/shapes.py:1174–1182  ·  view source on GitHub ↗

Creates a new object that is a copy of this object. :param mesh: should I copy the triangulation too (default: False) :returns: a copy of the object

(self: T, mesh: bool = False)

Source from the content-addressed store, hash-verified

1172 return self._apply_transform(T)
1173
1174 def copy(self: T, mesh: bool = False) -> T:
1175 """
1176 Creates a new object that is a copy of this object.
1177
1178 :param mesh: should I copy the triangulation too (default: False)
1179 :returns: a copy of the object
1180 """
1181
1182 return self.__class__(BRepBuilderAPI_Copy(self.wrapped, True, mesh).Shape())
1183
1184 def transformShape(self, tMatrix: Matrix) -> Shape:
1185 """

Callers 3

_toCAFFunction · 0.45
toFusedCAFFunction · 0.45
gradMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected