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
#!/usr/bin/bash | |
# Figure out the current file name and path | |
# https://stackoverflow.com/a/4774063 | |
script_path="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" | |
script_filename=${0##*/} | |
script_full_path=$script_path/$script_filename | |
# Shows the help page for this script |
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
if "show_object" not in locals(): | |
from cq_server.ui import ui, show_object | |
from fnmatch import translate | |
from os import link | |
import cadquery as cq | |
from math import cos, sin, tan, radians as rad, floor, ceil | |
from collections import namedtuple | |
DimsCube = namedtuple('DimsCube', ['l', 'w', 't']) |