Skip to content

Commit

Permalink
Merge pull request #146 from easyw/master
Browse files Browse the repository at this point in the history
keeping a shell if 'make solid' is failing
  • Loading branch information
kbwbe authored Jan 13, 2019
2 parents 359ddcf + e7ac864 commit 698f6df
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion a2p_MuxAssembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@ def muxAssemblyWithTopoNames(doc, withColor=False):
faceColors.append(diffuseCol[i])

shell = Part.makeShell(faces)
solid = Part.Solid(shell)
try:
solid = Part.Solid(shell)
except:
# keeping a shell if solid is failing
solid = shell
if withColor:
return muxInfo, solid, faceColors
else:
Expand Down
6 changes: 5 additions & 1 deletion a2p_topomapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,11 @@ def createTopoNames(self,withColor=False):
faceColors.append(diffuseCol[i])

shell = Part.makeShell(faces)
solid = Part.Solid(shell)
try:
solid = Part.Solid(shell)
except:
# keeping a shell if solid is failing
solid = shell
#-------------------------------------------
# if toponaming is used, assign toponames to
# shells geometry
Expand Down

0 comments on commit 698f6df

Please sign in to comment.