From 1b20d6446230cb0419ee210eba99c076522f7f10 Mon Sep 17 00:00:00 2001 From: Jonathan Shimwell Date: Thu, 29 Jun 2023 14:26:13 +0100 Subject: [PATCH 1/3] added extent from boundary --- src/cad_to_dagmc/brep_to_h5m.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cad_to_dagmc/brep_to_h5m.py b/src/cad_to_dagmc/brep_to_h5m.py index 652198c..2c59977 100644 --- a/src/cad_to_dagmc/brep_to_h5m.py +++ b/src/cad_to_dagmc/brep_to_h5m.py @@ -81,6 +81,7 @@ def mesh_brep( gmsh.option.setNumber("Mesh.Algorithm", mesh_algorithm) gmsh.option.setNumber("Mesh.MeshSizeMin", min_mesh_size) gmsh.option.setNumber("Mesh.MeshSizeMax", max_mesh_size) + gmsh.option.setNumber("Mesh.MeshSizeExtendFromBoundary", False) gmsh.model.mesh.generate(2) return gmsh, volumes From 179df872f671d19e7ad6fd11a5ed5ac4a1548918 Mon Sep 17 00:00:00 2001 From: shimwell Date: Thu, 29 Jun 2023 21:37:27 +0100 Subject: [PATCH 2/3] changed to box --- examples/single_cadquery_object.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/single_cadquery_object.py b/examples/single_cadquery_object.py index b70923f..3d03e48 100644 --- a/examples/single_cadquery_object.py +++ b/examples/single_cadquery_object.py @@ -1,8 +1,8 @@ from cad_to_dagmc import CadToDagmc import cadquery as cq -result = sphere = cq.Workplane().moveTo(100, 0).sphere(5) +result = cq.Workplane().moveTo(100, 0).box(5,5,5) my_model = CadToDagmc() my_model.add_cadquery_object(result, material_tags=["mat1"]) -my_model.export_dagmc_h5m_file() +my_model.export_dagmc_h5m_file() \ No newline at end of file From 5469c7541a400a8c3345afb73f25520b1ab2be82 Mon Sep 17 00:00:00 2001 From: shimwell Date: Thu, 29 Jun 2023 20:47:04 +0000 Subject: [PATCH 3/3] [skip ci] Apply formatting changes --- examples/single_cadquery_object.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/single_cadquery_object.py b/examples/single_cadquery_object.py index 3d03e48..7123693 100644 --- a/examples/single_cadquery_object.py +++ b/examples/single_cadquery_object.py @@ -1,8 +1,8 @@ from cad_to_dagmc import CadToDagmc import cadquery as cq -result = cq.Workplane().moveTo(100, 0).box(5,5,5) +result = cq.Workplane().moveTo(100, 0).box(5, 5, 5) my_model = CadToDagmc() my_model.add_cadquery_object(result, material_tags=["mat1"]) -my_model.export_dagmc_h5m_file() \ No newline at end of file +my_model.export_dagmc_h5m_file()