Skip to content

Commit

Permalink
Merge pull request #431 from nschloe/import-shapes
Browse files Browse the repository at this point in the history
add import_shapes()
  • Loading branch information
nschloe authored Feb 19, 2021
2 parents 103b42b + f7fd47a commit b9eeadf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions pygmsh/occ/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,3 +247,9 @@ def boolean_fragments(
self._SIZE_QUEUE = [s for s in self._SIZE_QUEUE if s[0] not in all_entities]

return [Dummy(*dim_tag) for dim_tag in dim_tags]

from pygmsh.occ.dummy import Dummy

def import_shapes(self, filename: str):
s = gmsh.model.occ.importShapes(filename)
return [Dummy(*i) for i in s]
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = pygmsh
version = 7.1.7
version = 7.1.8
author = Nico Schlömer
email = [email protected]
description = Python frontend for Gmsh
Expand Down

0 comments on commit b9eeadf

Please sign in to comment.