From 36e7208d803c9787009eb6eae45780539f87aacb Mon Sep 17 00:00:00 2001 From: Jon Shimwell Date: Wed, 8 Jan 2025 11:01:58 +0100 Subject: [PATCH] bump cq version to allow binary brep use --- pyproject.toml | 4 ++-- src/cad_to_dagmc/core.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 605ca0f..c86e5e6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,8 +20,8 @@ classifiers = [ dependencies = [ "trimesh", "networkx", - "cadquery>=2.4.0", - "numpy<=1.26.4", + "cadquery>=2.5.2", + "numpy, "gmsh" ] dynamic = ["version"] diff --git a/src/cad_to_dagmc/core.py b/src/cad_to_dagmc/core.py index cb117f7..0840ce3 100644 --- a/src/cad_to_dagmc/core.py +++ b/src/cad_to_dagmc/core.py @@ -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