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

Function plane

cadquery/occ_impl/shapes.py:6381–6390  ·  view source on GitHub ↗

Construct a finite planar face.

(w: Real, l: Real)

Source from the content-addressed store, hash-verified

6379
6380@multimethod
6381def plane(w: Real, l: Real) -> Face:
6382 """
6383 Construct a finite planar face.
6384 """
6385
6386 pln_geom = gp_Pln(Vector(0, 0, 0).toPnt(), Vector(0, 0, 1).toDir())
6387
6388 return _shape(
6389 BRepBuilderAPI_MakeFace(pln_geom, -w / 2, w / 2, -l / 2, l / 2).Face(), Face
6390 )
6391
6392
6393@multimethod

Callers 15

test_face_paramAtFunction · 0.90
test_face_paramsFunction · 0.90
test_face_positionAtFunction · 0.90
test_face_positionsFunction · 0.90
test_trimmingFunction · 0.90
test_replaceFunction · 0.90
test_addHoleFunction · 0.90
test_name_geometriesFunction · 0.90
plane_faceFunction · 0.85
test_show_nurbsFunction · 0.85
test_ctrlPtsFunction · 0.85

Calls 4

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

Tested by 15

test_face_paramAtFunction · 0.72
test_face_paramsFunction · 0.72
test_face_positionAtFunction · 0.72
test_face_positionsFunction · 0.72
test_trimmingFunction · 0.72
test_replaceFunction · 0.72
test_addHoleFunction · 0.72
test_name_geometriesFunction · 0.72
plane_faceFunction · 0.68
test_show_nurbsFunction · 0.68
test_ctrlPtsFunction · 0.68