Skip to content

Commit

Permalink
Merge pull request openmsr#71 from ebknudsen/develop
Browse files Browse the repository at this point in the history
revert an accidental premature fix
  • Loading branch information
ebknudsen authored Oct 26, 2023
2 parents 2a2c031 + b7ca523 commit f34ebaf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CAD_to_OpenMC/assemblymesher_gmsh.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ def _cq_solids_to_gmsh(self):
#create a compund cq solid from entities
solids=[e.solid for e in self.gmsh_mesher_entities]
compound=cq.Compound.makeCompound(solids)
vols = gmsh.model.occ.importShapesNativePointer(compound)
with tempfile.TemporaryDirectory() as td:
outpath=os.path.join(td,'export.'+self.IntermediateLayer)
compound.exportBrep(outpath)
vols=gmsh.model.occ.importShapes(outpath)
#vols = gmsh.model.occ.importShapesNativePointer(compound)
gmsh.model.occ.synchronize()
self._reorder()

Expand Down

0 comments on commit f34ebaf

Please sign in to comment.