kopia lustrzana https://github.com/vilemduha/blendercam
-debug stuff
-finish support for spherical cutter, which is used in projected curve only anyway.pull/4/head
rodzic
c4cd4f0242
commit
decb8b27dd
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue