Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 60 pieces for one lampshade, ratio of short arm to long neck: 16/25 | |
# needs more spacing in y direction, fewer elements in x direction | |
import math | |
s60 = math.sqrt(3.0) / 2.0 | |
c60 = 0.5 | |
rad = 10 # rad of all arcs | |
l0 = 90 # neck | |
l1 = (16.0 / 25.0) * l0 # legs and arms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys, time, os | |
from ctypes import * | |
def myFmtCallback(command, modifier, arg): | |
#print("command = ", command) | |
return 1 # TRUE | |
def format_drive(Drive, Format, Title): | |
fm = windll.LoadLibrary('fmifs.dll') |