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

Function simple_surf

tests/test_nurbs.py:458–482  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

456
457@fixture
458def simple_surf():
459
460 pts = np.array(
461 [
462 [[0.0, 0.0, 0.0], [0.0, 2.0, 0.0]],
463 [[2.0, 0.0, 1.0], [2.0, 2.0, 1.0]],
464 [[4.0, 0.0, 0.0], [4.0, 2.0, 0.0]],
465 ],
466 dtype=float,
467 )
468
469 uknots = np.array([0.0, 0.0, 0.0, 1.0, 1.0, 1.0])
470 vknots = np.array([0.0, 0.0, 1.0, 1.0])
471
472 surf = Surface(
473 pts=pts,
474 uknots=uknots,
475 vknots=vknots,
476 uorder=2,
477 vorder=1,
478 uperiodic=False,
479 vperiodic=False,
480 )
481
482 return surf
483
484
485@fixture

Callers

nothing calls this directly

Calls 1

SurfaceClass · 0.90

Tested by

no test coverage detected