Ejemplo n.º 1
0
	def __init__( self , curves ) :
		Node.__init__( self , Lines() , (1.0,0.5,0.0) )

		self.curves = curves
		self.paths = []

		self.init_r = HUGE_DRILL / 2.0 / SCALE
		self.flat_r = FLAT_DRILL / 2.0 / SCALE
		self.exac_r = SMALL_DRILL / 2.0 / SCALE 

		print 'Init drill: ' ,self.init_r 
		print 'Flat drill: ' ,self.flat_r
		print 'Exact drill: ' ,self.exac_r

		self.gen_paths()

		proc = lambda p : (p + TRANS)*SCALE + np.array((0,0, -SMALL_DRILL))

		save(0,'01_init.k16'   , self.paths , pre = proc )
		save(1,'02_border.f12' , self.paths , pre = proc )
		save(2,'03_flat.f12'   , self.paths , pre = proc )
		save(3,'04_exact.k8'   , self.paths , pre = proc )

		save_commpressed(0,'11_init_small.k16'   ,  self.paths ,pre = proc )
		save_commpressed(1,'12_border_small.f12' ,  self.paths ,pre = proc )
		save_commpressed(2,'13_flat_small.f12'   ,  self.paths ,pre = proc )
		save_commpressed(3,'14_exact_small.k8'   ,  self.paths ,pre = proc )

		self.set_data( self.paths )

		np.set_printoptions(suppress=True)
Ejemplo n.º 2
0
    def __init__(self, curves):
        Node.__init__(self, Lines(), (1.0, 0.5, 0.0))

        self.curves = curves
        self.paths = []

        self.init_r = HUGE_DRILL / 2.0 / SCALE
        self.flat_r = FLAT_DRILL / 2.0 / SCALE
        self.exac_r = SMALL_DRILL / 2.0 / SCALE

        print 'Init drill: ', self.init_r
        print 'Flat drill: ', self.flat_r
        print 'Exact drill: ', self.exac_r

        self.gen_paths()

        proc = lambda p: (p + TRANS) * SCALE + np.array((0, 0, -SMALL_DRILL))

        save(0, '01_init.k16', self.paths, pre=proc)
        save(1, '02_border.f12', self.paths, pre=proc)
        save(2, '03_flat.f12', self.paths, pre=proc)
        save(3, '04_exact.k8', self.paths, pre=proc)

        save_commpressed(0, '11_init_small.k16', self.paths, pre=proc)
        save_commpressed(1, '12_border_small.f12', self.paths, pre=proc)
        save_commpressed(2, '13_flat_small.f12', self.paths, pre=proc)
        save_commpressed(3, '14_exact_small.k8', self.paths, pre=proc)

        self.set_data(self.paths)

        np.set_printoptions(suppress=True)
Ejemplo n.º 3
0
	def __init__( self ) :
		Node.__init__( self )

		self.bz_points   = True
		self.bz_curves   = True
		self.bz_polygons = False

		self.bs_points   = True
		self.bs_curves   = False
		self.bs_polygons = False

		self.selected = None

		self.cutter = Cutter()

		self.w = 0
		self.h = 0
Ejemplo n.º 4
0
    def __init__(self):
        Node.__init__(self)

        self.bz_points = True
        self.bz_curves = True
        self.bz_polygons = False

        self.bs_points = True
        self.bs_curves = False
        self.bs_polygons = False

        self.selected = None

        self.cutter = Cutter()

        self.w = 0
        self.h = 0
Ejemplo n.º 5
0
	def __init__( self , geom ) :
		Node.__init__( self , geom )

		self.current = None
		self.editmode = Points.PNT