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

Method cylinders

tests/test_cad_objects.py:273–280  ·  view source on GitHub ↗
(self, radius, height)

Source from the content-addressed store, hash-verified

271 """
272
273 def cylinders(self, radius, height):
274
275 c = Solid.makeCylinder(radius, height, Vector())
276
277 # Combine all the cylinders into a single compound
278 r = self.eachpoint(lambda loc: c.located(loc), True).union()
279
280 return r
281
282 Workplane.cyl = cylinders
283

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