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

Method exportBrep

cadquery/occ_impl/shapes.py:561–568  ·  view source on GitHub ↗

Export this shape to a BREP file

(self, f: str | BytesIO)

Source from the content-addressed store, hash-verified

559 return writer.Write(fileName)
560
561 def exportBrep(self, f: str | BytesIO) -> bool:
562 """
563 Export this shape to a BREP file
564 """
565
566 rv = BRepTools.Write_s(self.wrapped, f)
567
568 return True if rv is None else rv
569
570 @classmethod
571 def importBrep(cls, f: str | BytesIO) -> Shape:

Callers 4

exportFunction · 0.80
importBoxMethod · 0.80
importCompoundMethod · 0.80
testBrepImportExportMethod · 0.80

Calls

no outgoing calls

Tested by 3

importBoxMethod · 0.64
importCompoundMethod · 0.64
testBrepImportExportMethod · 0.64