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

Method close

cadquery/occ_impl/shapes.py:2914–2925  ·  view source on GitHub ↗

Close a Wire

(self)

Source from the content-addressed store, hash-verified

2912 return rv
2913
2914 def close(self) -> Wire:
2915 """
2916 Close a Wire
2917 """
2918
2919 if not self.IsClosed():
2920 e = Edge.makeLine(self.endPoint(), self.startPoint())
2921 rv = Wire.combine((self, e))[0]
2922 else:
2923 rv = self
2924
2925 return rv
2926
2927 @classmethod
2928 def combine(

Callers

nothing calls this directly

Calls 5

IsClosedMethod · 0.80
makeLineMethod · 0.80
endPointMethod · 0.80
startPointMethod · 0.80
combineMethod · 0.45

Tested by

no test coverage detected