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

Function _offset

cadquery/occ_impl/shapes.py:6982–7007  ·  view source on GitHub ↗
(t: float)

Source from the content-addressed store, hash-verified

6980 """
6981
6982 def _offset(t: float):
6983
6984 results = []
6985 builders = []
6986
6987 for el in _get(s, ("Face", "Shell")):
6988
6989 builder = BRepOffset_MakeOffset()
6990 builders.append(builder)
6991
6992 builder.Initialize(
6993 el.wrapped,
6994 t,
6995 tol,
6996 BRepOffset_Mode.BRepOffset_Skin,
6997 False,
6998 False,
6999 GeomAbs_Intersection,
7000 cap,
7001 )
7002
7003 builder.MakeOffsetShape()
7004
7005 results.append(builder.Shape())
7006
7007 return results, builders
7008
7009 if both:
7010 results_pos, builders1 = _offset(t)

Callers 1

offsetFunction · 0.85

Calls 3

_getFunction · 0.85
appendMethod · 0.80
InitializeMethod · 0.80

Tested by

no test coverage detected