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

Method testCompSolid

tests/test_cadquery.py:5071–5083  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5069 w5.cutBlind(-1)
5070
5071 def testCompSolid(self):
5072
5073 from OCP.BRepPrimAPI import BRepPrimAPI_MakePrism
5074
5075 tool = Solid.makeSphere(1, angleDegrees3=120)
5076 shell = tool.Shells()[0]
5077 v = Vector(0, 0, 1)
5078
5079 builder = BRepPrimAPI_MakePrism(shell.wrapped, v.wrapped)
5080 result = Shape.cast(builder.Shape())
5081
5082 self.assertEqual(len(result.CompSolids()), 1)
5083 self.assertEqual(len(result.Solids()), 4)
5084
5085 def test2Dfillet(self):
5086

Callers

nothing calls this directly

Calls 6

VectorClass · 0.85
makeSphereMethod · 0.80
ShellsMethod · 0.80
castMethod · 0.80
CompSolidsMethod · 0.80
SolidsMethod · 0.80

Tested by

no test coverage detected