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

Method importBin

cadquery/occ_impl/shapes.py:595–603  ·  view source on GitHub ↗

Import shape from a binary BREP file.

(cls, f: str | BytesIO)

Source from the content-addressed store, hash-verified

593
594 @classmethod
595 def importBin(cls, f: str | BytesIO) -> Shape:
596 """
597 Import shape from a binary BREP file.
598 """
599 s = TopoDS_Shape()
600
601 BinTools.Read_s(s, f)
602
603 return cls.cast(s)
604
605 def geomType(self) -> Geoms:
606 """

Callers 3

importBinFunction · 0.80
test_bin_import_exportFunction · 0.80
testBINMethod · 0.80

Calls 1

castMethod · 0.80

Tested by 2

test_bin_import_exportFunction · 0.64
testBINMethod · 0.64