Ejemplo n.º 1
0
 def isValidSelection(selection):
     validSelection = False
     if len(selection) == 2:
         s1, s2 = selection
         if s1.ObjectName != s2.ObjectName:
             if CircularEdgeSelected(s1) and CircularEdgeSelected(s2):
                 validSelection = True
     return validSelection
Ejemplo n.º 2
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
Ejemplo n.º 3
0
 def isValidSelection(selection):
     validSelection = False
     if len(selection) == 2:
         s1, s2 = selection
         if s1.ObjectName != s2.ObjectName:
             if ((vertexSelected(s1) or sphericalSurfaceSelected(s1)
                  or CircularEdgeSelected(s1))
                     and (vertexSelected(s2) or sphericalSurfaceSelected(s2)
                          or CircularEdgeSelected(s2))):
                 validSelection = True
     return validSelection
Ejemplo n.º 4
0
 def ValidSelection(selectionExObj):
     return cylindricalFaceSelected(selectionExObj) \
         or LinearEdgeSelected(selectionExObj) \
         or CircularEdgeSelected(selectionExObj)