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

Function vertex

cadquery/occ_impl/shapes.py:6237–6242  ·  view source on GitHub ↗

Construct a vertex from coordinates.

(x: Real, y: Real, z: Real)

Source from the content-addressed store, hash-verified

6235
6236@multimethod
6237def vertex(x: Real, y: Real, z: Real) -> Vertex:
6238 """
6239 Construct a vertex from coordinates.
6240 """
6241
6242 return _shape(BRepBuilderAPI_MakeVertex(gp_Pnt(x, y, z)).Vertex(), Vertex)
6243
6244
6245@multimethod

Callers 9

test_centerFunction · 0.90
test_loft_to_vertexMethod · 0.85
test_utilsFunction · 0.85
test_vertexFunction · 0.85
test_extrudeFunction · 0.85
test_loft_vertexFunction · 0.85
test_history_loftFunction · 0.85
test_comibine_hist_dictFunction · 0.85

Calls 3

_shapeFunction · 0.85
VectorClass · 0.85
toPntMethod · 0.80

Tested by 9

test_centerFunction · 0.72
test_loft_to_vertexMethod · 0.68
test_utilsFunction · 0.68
test_vertexFunction · 0.68
test_extrudeFunction · 0.68
test_loft_vertexFunction · 0.68
test_history_loftFunction · 0.68
test_comibine_hist_dictFunction · 0.68