Skip to content

Commit

Permalink
bump cq version to allow binary brep use
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-proximafusion committed Jan 8, 2025
1 parent 8b1fd33 commit 36e7208
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ classifiers = [
dependencies = [
"trimesh",
"networkx",
"cadquery>=2.4.0",
"numpy<=1.26.4",
"cadquery>=2.5.2",
"numpy,
"gmsh"
]
dynamic = ["version"]
Expand Down
4 changes: 2 additions & 2 deletions src/cad_to_dagmc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ 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):
assembly.toCompound().exportBrep(temp_file.name)
assembly.toCompound().exportBin(temp_file.name)
else:
assembly.exportBrep(temp_file.name)
assembly.exportBin(temp_file.name)
volumes = gmsh.model.occ.importShapes(temp_file.name)

# updating the model to ensure the entities in the geometry are found
Expand Down

0 comments on commit 36e7208

Please sign in to comment.