Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/c/h/Chiplotle-0.4/chiplotle/tools/hpgltools/get_centroid.py   Chiplotle(Download)
from chiplotle.geometry.core.coordinate import Coordinate
from chiplotle.tools.hpgltools.get_all_coordinates import get_all_coordinates
 
def get_centroid(arg):
   '''Returns the centroid of the given Chiplotle-HPGL shapes.'''
   arg = get_all_coordinates(arg)

src/c/h/Chiplotle-0.4/chiplotle/tools/hpgltools/get_bounding_box.py   Chiplotle(Download)
from chiplotle.geometry.core.coordinate import Coordinate
from chiplotle.tools.hpgltools.get_all_coordinates import get_all_coordinates
 
def get_bounding_box(arg):
   '''Returns the pair of coordinate pairs outlining the bounding box of
   max_x = max_y = -1000000.0
 
   coords = get_all_coordinates(arg)
 
   if len(coords) == 0: