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

Method test_loft_to_vertex

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

Source from the content-addressed store, hash-verified

5882 assert w2.solids().size() == 1
5883
5884 def test_loft_to_vertex(self):
5885
5886 f1 = plane(1, 1)
5887 v1 = vertex(0, 0, 1)
5888
5889 c = compound(f1, v1)
5890
5891 w1 = Workplane().add(f1).add(v1).loft()
5892 w2 = Workplane().add(c).loft()
5893
5894 # in both cases we get a solid
5895 assert w1.solids().size() == 1
5896 assert w2.solids().size() == 1
5897
5898 def test_compound_faces_center(self):
5899 sk = Sketch().rect(50, 50).faces()

Callers

nothing calls this directly

Calls 8

planeFunction · 0.85
vertexFunction · 0.85
compoundFunction · 0.85
WorkplaneClass · 0.85
loftMethod · 0.80
addMethod · 0.45
sizeMethod · 0.45
solidsMethod · 0.45

Tested by

no test coverage detected