def doboolean(self): from OpenSCADUtils import meshoponobjs if self.form.rb_intersection.isChecked(): opname = 'intersection' elif self.form.rb_difference.isChecked(): opname = 'difference' elif self.form.rb_hull.isChecked(): opname = 'hull' elif self.form.rb_minkowski.isChecked(): opname = 'minkowski' else: opname = 'union' newmesh,objsused = meshoponobjs(opname,FreeCADGui.Selection.getSelection()) if len(objsused) > 0: newmeshobj = FreeCAD.activeDocument().addObject('Mesh::Feature',opname) #create a Feature for the result newmeshobj.Mesh = newmesh #assign the result to the new Feature for obj in objsused: obj.ViewObject.hide() #hide the selected Features