You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
subcompounds=np.array_split(compound, 10) # TODO: generalise this
defmake_compound(self, dim: int, tags: list):
gmsh.model.occ.synchronize()
# make sure that tags is a list of integers or numpy array of integersifall(isinstance(item, int) foritemintags) orall(
isinstance(item, (int, np.integer)) foritemintags
):
compound=tagselse:
# get a list of the tags of the entities to be combinedcompound= []
forentityintags:
compound.append(entity[0][1])
# make compound of size 'dim' and tags 'compound'ifdim==1:
subcompounds=np.array_split(compound, 10) # TODO: generalise thisforsubcompinsubcompounds:
gmsh.model.mesh.setCompound(dim, subcomp)
else:
gmsh.model.mesh.setCompound(dim, compound)
gmsh.model.occ.synchronize()
returnNone
The text was updated successfully, but these errors were encountered:
spline_mesher/src/pyhexspline/spline_mesher.py
Line 62 in 932f56f
The text was updated successfully, but these errors were encountered: