Skip to content

Commit

Permalink
Latest
Browse files Browse the repository at this point in the history
  • Loading branch information
KeithSloan committed Mar 25, 2021
1 parent f4620e4 commit 91dda89
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions freecad/OpenSCAD_Alt_Import/importCSG.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,10 +623,10 @@ def p_hull_action(p):
myHull = hullTwoEqCylinders(obj1,obj2, p[1])
else :
myHull = hullTwoCylinders(obj1,obj2, p[1])
col = hullColour()
setObjectColour(myHull,col)
p[0] = [myHull]
return
col = hullColour()
setObjectColour(myHull,col)
p[0] = [myHull]
return

if hShape is not None :
print(hShape)
Expand All @@ -648,10 +648,10 @@ def p_hull_action(p):
setObjectColour(hShape,col)

else :
print('Not directly handled')
# from OpenSCADFeatures import CGALFeature
# p[0] = [ CGALFeatureObj(p[1],p[5]) ]
p[0] = p[5]
#print('Not directly handled')
from OpenSCADFeatures import CGALFeature
p[0] = [ CGALFeatureObj(p[1],p[5]) ]
#p[0] = p[5]

def setObjColor(obj, color):
# set color for all faces of selected object
Expand Down Expand Up @@ -1211,6 +1211,7 @@ def p_cylinder_action(p):
fnmax = FreeCAD.ParamGet(\
"User parameter:BaseApp/Preferences/Mod/OpenSCAD").\
GetInt('useMaxFN')
if fnmax == 0 : fnmax = 16
if printverbose: print(p[3])
if h > 0:
if ( r1 == r2 and r1 > 0):
Expand Down
Empty file.

0 comments on commit 91dda89

Please sign in to comment.