parameters: (self,result=None)
docstring: apply([result]): Applies the computed placements of the given
          result, or the last computed result if none is given, to the
          document objects given to the nester via addObjects() before
          running.
docstring_summary: apply([result]): Applies the computed placements of the given
          result, or the last computed result if none is given, to the
          document objects given to the nester via addObjects() before
          running.
docstring_tokens: apply ( [ result ] ) : Applies the computed placements of the given result or the last computed result if none is given to the document objects given to the nester via addObjects () before running .
function: def apply(self,result=None):
  
          """apply([result]): Applies the computed placements of the given
          result, or the last computed result if none is given, to the
          document objects given to the nester via addObjects() before
          running."""
  
          if not self.objects:
              print("objects list is empty")
              return
          p = self.getPlacements(result)
          if p:
              for key,pla in p.items():
                  if key in self.objects:
                      sh = self.objects[key].Shape.copy()
                      sh.translate(pla.Base)
                      sh.rotate(sh.Faces[0].CenterOfMass,pla.Rotation.Axis,math.degrees(pla.Rotation.Angle))
                      self.objects[key].Placement = sh.Placement
                  else:
                      print("error: hashCode mismatch with original object")
function_tokens: def apply ( self , result = None ) : if not self . objects : print ( "objects list is empty" ) return p = self . getPlacements ( result ) if p : for key , pla in p . items ( ) : if key in self . objects : sh = self . objects [ key ] . Shape . copy ( ) sh . translate ( pla . Base ) sh . rotate ( sh . Faces [ 0 ] . CenterOfMass , pla . Rotation . Axis , math . degrees ( pla . Rotation . Angle ) ) self . objects [ key ] . Placement = sh . Placement else : print ( "error: hashCode mismatch with original object" )