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

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

src/c/h/Chiplotle-0.4/chiplotle/geometry/shapes/path_linear.py   Chiplotle(Download)
from chiplotle.geometry.core.coordinatearray import CoordinateArray
from chiplotle.geometry.core.path import Path
from chiplotle.tools.mathtools.interpolate_linear import interpolate_linear
 
def path_linear(coords, interpolation_unit):
   result = [ ]
   for cp, n in divs:
      newcoords = [interpolate_linear(cp[0], cp[1], float(i) / n) for i in range(n)]
      result.extend(newcoords)