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

Method copyWorkplane

cadquery/cq.py:620–631  ·  view source on GitHub ↗

Copies the workplane from obj. :param obj: an object to copy the workplane from :type obj: a CQ object :returns: a CQ object with obj's workplane

(self, obj: T)

Source from the content-addressed store, hash-verified

618 return s
619
620 def copyWorkplane(self, obj: T) -> T:
621 """
622 Copies the workplane from obj.
623
624 :param obj: an object to copy the workplane from
625 :type obj: a CQ object
626 :returns: a CQ object with obj's workplane
627 """
628 out = copy(obj)
629 out.parent = self
630 out.ctx = self.ctx
631 return out
632
633 def workplaneFromTagged(self, name: str) -> "Workplane":
634 """

Callers 2

workplaneFromTaggedMethod · 0.95
testCopyWorkplaneMethod · 0.80

Calls

no outgoing calls

Tested by 1

testCopyWorkplaneMethod · 0.64