MCPcopy Index your code
hub / github.com/CadQuery/cadquery / toCompound

Method toCompound

cadquery/assembly.py:733–742  ·  view source on GitHub ↗

Returns a Compound made from this Assembly (including all children) with the current Locations applied. Usually this method would only be used after solving.

(self)

Source from the content-addressed store, hash-verified

731 yield from ch.__iter__(loc, name, color)
732
733 def toCompound(self) -> Compound:
734 """
735 Returns a Compound made from this Assembly (including all children) with the
736 current Locations applied. Usually this method would only be used after solving.
737 """
738
739 shapes = self.shapes
740 shapes.extend((child.toCompound() for child in self.children))
741
742 return Compound.makeCompound(shapes).locate(self.loc)
743
744 def _repr_javascript_(self):
745 """

Callers 9

solveMethod · 0.95
exportMethod · 0.95
test_toCompoundFunction · 0.95
runMethod · 0.80
test_unary_constraintsFunction · 0.80
test_fixed_rotationFunction · 0.80
test_point_on_lineFunction · 0.80
test_order_of_transformFunction · 0.80

Calls 3

extendMethod · 0.80
locateMethod · 0.80
makeCompoundMethod · 0.80

Tested by 6

test_toCompoundFunction · 0.76
test_unary_constraintsFunction · 0.64
test_fixed_rotationFunction · 0.64
test_point_on_lineFunction · 0.64
test_order_of_transformFunction · 0.64