kopia lustrzana https://github.com/vilemduha/blendercam
25 wiersze
582 B
Python
25 wiersze
582 B
Python
# hpgl2dv.py
|
|
#
|
|
# Copyright (c) 2009, Dan Heeks
|
|
# This program is released under the BSD license. See the file COPYING for details.
|
|
#
|
|
|
|
# This is the same as the hpgl2d machine, but uses units of 0.25mm instead of 0.01mm
|
|
|
|
from . import nc
|
|
from . import hpgl2d
|
|
|
|
|
|
class Creator(hpgl2d.Creator):
|
|
def __init__(self):
|
|
hpgl2d.Creator.__init__(self)
|
|
|
|
def imperial(self):
|
|
self.units_to_mc_units = 101.6 # multiplier from inches to machine units
|
|
|
|
def metric(self):
|
|
self.units_to_mc_units = 4 # multiplier from mm to machine units
|
|
|
|
|
|
nc.creator = Creator()
|