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

Method cylinders

tests/test_cadquery.py:180–187  ·  view source on GitHub ↗
(self, radius, height)

Source from the content-addressed store, hash-verified

178 """
179
180 def cylinders(self, radius, height):
181
182 # construct a cylinder at (0,0,0)
183 c = Solid.makeCylinder(radius, height, Vector(0, 0, 0))
184
185 # combine all the cylinders into a single compound
186 r = self.eachpoint(lambda loc: c.located(loc), True).union()
187 return r
188
189 Workplane.cyl = cylinders
190

Callers

nothing calls this directly

Calls 5

VectorClass · 0.85
makeCylinderMethod · 0.80
unionMethod · 0.80
eachpointMethod · 0.80
locatedMethod · 0.45

Tested by

no test coverage detected