-finish support for spherical cutter, which is used in projected curve only anyway.
pull/4/head
vilda.novak@gmail.com 2015-03-10 21:34:20 +00:00
rodzic c4cd4f0242
commit decb8b27dd
3 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -141,6 +141,9 @@ def getSampleBulletNAxis(cutter, startpoint,endpoint,rotation, cutter_compensati
'''fully 3d collision test for NAxis milling'''
cutterVec=Vector((0,0,1))*cutter_compensation#cutter compensation vector - cutter physics object has center in the middle, while cam needs the tip position.
cutterVec.rotate(Euler(rotation))
#print(rotation)
#print(cutterVec)
#cutterVec=Vector((0,0,0))
#cutterVec = startpoint-endpoint
#cutterVec.normalize()
#cutterVec*=cutter_compensation

Wyświetl plik

@ -65,7 +65,7 @@ def getCutterArray(operation,pixsize):
v.y=(b+0.5-m)*ps
if(v.length<=r):
car.itemset((a,b),0)
elif type=='BALL':
elif type=='BALL' or type == 'BALLNOSE' :
for a in range(0,res):
v.x=(a+0.5-m)*ps
for b in range(0,res):

Wyświetl plik

@ -2249,7 +2249,8 @@ def getPath3axis(context,operation):
layers=[[layerstart,layerend]]
chunks.extend(sampleChunksNAxis(o,pathSamples,layers))
#for ch in pathSamples:
# ch.points=ch.endpoints
chunksToMesh(chunks,o)