Skip to content

Commit 5e27875

Browse files
committed
qtvcp -qt_vismach: update millturn to use primative.py functions
1 parent c04e0c3 commit 5e27875

1 file changed

Lines changed: 0 additions & 35 deletions

File tree

lib/python/qtvcp/lib/qt_vismach/millturn.py

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -40,41 +40,6 @@
4040
toolshape = TriangleXZ(0)
4141
toolshape = Color([1, 1, 0, 1],[toolshape])
4242

43-
# we use a triangle for the tool
44-
# since we need to visualize a lathe tool here
45-
# not great for the mill bit but it will do for now
46-
class HalToolTriangle(TriangleXZ):
47-
def __init__(self, comp, *args):
48-
# get machine access so it can
49-
# change itself as it runs
50-
# specifically tool cylinder in this case.
51-
TriangleXZ.__init__(self, *args)
52-
self.comp = c
53-
def coords(self):
54-
#print(self.comp["tooldiameter"])
55-
try:
56-
leng = hal.get_value('motion.tooloffset.z') * self.MODEL_SCALING
57-
except:
58-
leng = 0
59-
try:
60-
xleng = hal.get_value('motion.tooloffset.x') * self.MODEL_SCALING
61-
except:
62-
xleng = 0
63-
64-
x1 = leng
65-
z1 = -xleng
66-
x2 = 1#self.comp["tool-x-offset"]+10
67-
z2 = -leng/2
68-
x3 = 2#self.comp["tooldiameter"]
69-
z3 = 0
70-
if self.comp["millkins"] :
71-
x1 = 0
72-
z1 = -leng
73-
x2 = -2 #-self.comp["tooldiameter"]/2-0.01
74-
z2 = 0
75-
x3 = 2 #self.comp["tooldiameter"]/2+0.01
76-
z3 = 0
77-
return (x1, z1, x2, z2, x3, z3, 0, 1)
7843

7944

8045
# updates tool cylinder shape.

0 commit comments

Comments
 (0)