From cee4cb48541c858f332d3e906a925b6aeee9ce68 Mon Sep 17 00:00:00 2001 From: easyw Date: Sun, 13 Jan 2019 12:04:52 +0100 Subject: [PATCH 1/2] keeping a shell if make solid is failing --- a2p_topomapper.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/a2p_topomapper.py b/a2p_topomapper.py index 0117e406..a5b0be16 100644 --- a/a2p_topomapper.py +++ b/a2p_topomapper.py @@ -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 From e7ac864fa8ebb0a63b7c2029faeb43a6a67b306c Mon Sep 17 00:00:00 2001 From: easyw Date: Sun, 13 Jan 2019 12:11:12 +0100 Subject: [PATCH 2/2] keeping shell if make solid is failing also for sub assemblies --- a2p_MuxAssembly.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/a2p_MuxAssembly.py b/a2p_MuxAssembly.py index 2f1c1a9b..65dd1a67 100644 --- a/a2p_MuxAssembly.py +++ b/a2p_MuxAssembly.py @@ -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: