def screw1(scale_ignored): a = np.array([0, 0, 0]) w = np.array([0, 0, 1]) u = np.array([1, 0, 0]) r0 = 0.5 delta = 0.2 lambda_ = 0.4 * 2 phi0 = 0 screw_len = 2 return screw.Screw(a, w, u, screw_len, r0, delta, lambda_, phi0)
def screw2(SCALE=1.): a = np.array([0, 0, 1]) # only works with [0,0,0] w = np.array([0, 0, -1]) u = np.array([1, 0, 0]) r0 = 0.5 * SCALE delta = 0.2 * SCALE twist_rate = 0.4 * 2 / 2.0 * SCALE screw_len = 2 * SCALE return screw.Screw(a, w, u, screw_len, r0, delta, twist_rate) # phi0) , phi0=0
def screw2(scale_ignored): # does not work a = np.array([0, 0, 1]) w = np.array([0, 0, 1]) u = np.array([1, 0, 0]) r0 = 0.5 delta = 0.2 lambda_ = 0.4 * 2 phi0 = 0 screw_len = 2 s = screw.Screw(a, w, u, screw_len, r0, delta, lambda_, phi0) # return vectorized.CrispSubtract(vectorized.UnitCube1(4), s) return s