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

Function circle

cadquery/occ_impl/shapes.py:6354–6364  ·  view source on GitHub ↗

Construct a circle.

(r: float)

Source from the content-addressed store, hash-verified

6352
6353
6354def circle(r: float) -> Edge:
6355 """
6356 Construct a circle.
6357 """
6358
6359 return _shape(
6360 BRepBuilderAPI_MakeEdge(
6361 gp_Circ(gp_Ax2(Vector().toPnt(), Vector(0, 0, 1).toDir()), r)
6362 ).Edge(),
6363 Edge,
6364 )
6365
6366
6367def ellipse(r1: float, r2: float) -> Edge:

Callers 15

test_edge_tangentsFunction · 0.90
test_curvatureFunction · 0.90
test_trimmingFunction · 0.90
test_addHoleFunction · 0.90
circlesFunction · 0.85
trimmed_circlesFunction · 0.85
rotated_circlesFunction · 0.85
test_approximateFunction · 0.85
test_ctrlPtsFunction · 0.85
test_loft_faceMethod · 0.85
test_utilsFunction · 0.85

Calls 4

_shapeFunction · 0.85
VectorClass · 0.85
toPntMethod · 0.80
toDirMethod · 0.80

Tested by 15

test_edge_tangentsFunction · 0.72
test_curvatureFunction · 0.72
test_trimmingFunction · 0.72
test_addHoleFunction · 0.72
circlesFunction · 0.68
trimmed_circlesFunction · 0.68
rotated_circlesFunction · 0.68
test_approximateFunction · 0.68
test_ctrlPtsFunction · 0.68
test_loft_faceMethod · 0.68
test_utilsFunction · 0.68