MCPcopy Index your code
hub / github.com/CadQuery/cadquery / exportBin

Method exportBin

cadquery/occ_impl/shapes.py:585–592  ·  view source on GitHub ↗

Export this shape to a binary BREP file.

(self, f: str | BytesIO)

Source from the content-addressed store, hash-verified

583 return cls.cast(s)
584
585 def exportBin(self, f: str | BytesIO) -> bool:
586 """
587 Export this shape to a binary BREP file.
588 """
589
590 rv = BinTools.Write_s(self.wrapped, f)
591
592 return True if rv is None else rv
593
594 @classmethod
595 def importBin(cls, f: str | BytesIO) -> Shape:

Callers 4

exportFunction · 0.80
test_bin_import_exportFunction · 0.80
importBoxMethod · 0.80
importCompoundMethod · 0.80

Calls

no outgoing calls

Tested by 3

test_bin_import_exportFunction · 0.64
importBoxMethod · 0.64
importCompoundMethod · 0.64