Exemple #1
0
 def isValidSelection(selection):
     validSelection = False
     if len(selection) == 2:
         s1, s2 = selection
         if s1.ObjectName != s2.ObjectName:
             if (
                 (LinearEdgeSelected(s1) or cylindricalFaceSelected(s1) or CircularEdgeSelected(s1)) and
                 (LinearEdgeSelected(s2) or cylindricalFaceSelected(s2) or CircularEdgeSelected(s2))
                 ):
                 validSelection = True
     return validSelection
Exemple #2
0
 def ValidSelection(selectionExObj):
     return cylindricalFaceSelected(selectionExObj) \
         or LinearEdgeSelected(selectionExObj) \
         or CircularEdgeSelected(selectionExObj)