parameters: (vertices)
docstring: Center model (middle of bounding box).
docstring_summary: Center model (middle of bounding box).
docstring_tokens: Center model ( middle of bounding box ) .
function: def center(vertices):
      """Center model (middle of bounding box).
      """
  
      bb = bbox(vertices)
  
      cx = bb['x'][0] + (bb['x'][1] - bb['x'][0])/2.0
      cy = bb['y'][0] + (bb['y'][1] - bb['y'][0])/2.0
      cz = bb['z'][0] + (bb['z'][1] - bb['z'][0])/2.0
  
      translate(vertices, [-cx,-cy,-cz])
function_tokens: def center ( vertices ) : bb = bbox ( vertices ) cx = bb [ 'x' ] [ 0 ] + ( bb [ 'x' ] [ 1 ] - bb [ 'x' ] [ 0 ] ) / 2.0 cy = bb [ 'y' ] [ 0 ] + ( bb [ 'y' ] [ 1 ] - bb [ 'y' ] [ 0 ] ) / 2.0 cz = bb [ 'z' ] [ 0 ] + ( bb [ 'z' ] [ 1 ] - bb [ 'z' ] [ 0 ] ) / 2.0 translate ( vertices , [ - cx , - cy , - cz ] )