Skip to content

Commit

Permalink
added comment on binaray brep
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell authored Jan 9, 2025
1 parent 29f4af1 commit 2eb1ad4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cad_to_dagmc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ def get_volumes(gmsh, assembly, method="file", scale_factor=1.0):
elif method == "file":
with tempfile.NamedTemporaryFile(suffix=".brep") as temp_file:
if isinstance(assembly, cq.Assembly):
# binary brep export (Bin), requires cq 2.5.2 or greater but is faster than exportBrep
assembly.toCompound().exportBin(temp_file.name)
else:
assembly.exportBin(temp_file.name)
Expand Down

0 comments on commit 2eb1ad4

Please sign in to comment.