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

Method test_loft_face

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

Source from the content-addressed store, hash-verified

5868 assert len(list(w3)) == 2
5869
5870 def test_loft_face(self):
5871
5872 f1 = plane(1, 1)
5873 f2 = face(circle(1)).moved(z=1)
5874
5875 c = compound(f1, f2)
5876
5877 w1 = Workplane().add(f1).add(f2).loft()
5878 w2 = Workplane().add(c).loft()
5879
5880 # in both cases we get a solid
5881 assert w1.solids().size() == 1
5882 assert w2.solids().size() == 1
5883
5884 def test_loft_to_vertex(self):
5885

Callers

nothing calls this directly

Calls 10

planeFunction · 0.85
faceFunction · 0.85
circleFunction · 0.85
compoundFunction · 0.85
WorkplaneClass · 0.85
loftMethod · 0.80
movedMethod · 0.45
addMethod · 0.45
sizeMethod · 0.45
solidsMethod · 0.45

Tested by

no test coverage detected