kopia lustrzana https://github.com/vilemduha/blendercam
				
				
				
			Reference Repair pt3
							rodzic
							
								
									748dae6f00
								
							
						
					
					
						commit
						c4729317dc
					
				| 
						 | 
					@ -349,7 +349,7 @@ async def oclGetWaterline(operation, chunks):
 | 
				
			||||||
        layer_chunks = []
 | 
					        layer_chunks = []
 | 
				
			||||||
        await progress_async("Waterline", int((100 * count) / len(layers)))
 | 
					        await progress_async("Waterline", int((100 * count) / len(layers)))
 | 
				
			||||||
        waterline.reset()
 | 
					        waterline.reset()
 | 
				
			||||||
        waterline.set_z(height * OCL_SCALE)
 | 
					        waterline.setZ(height * OCL_SCALE)
 | 
				
			||||||
        waterline.run2()
 | 
					        waterline.run2()
 | 
				
			||||||
        wl_loops = waterline.getLoops()
 | 
					        wl_loops = waterline.getLoops()
 | 
				
			||||||
        for l in wl_loops:
 | 
					        for l in wl_loops:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -25,8 +25,14 @@ with tempfile.TemporaryDirectory() as td:
 | 
				
			||||||
    # blender 4.0 installing addon crashes sometimes on mac github actions...
 | 
					    # blender 4.0 installing addon crashes sometimes on mac github actions...
 | 
				
			||||||
    for x in range(NUM_RETRIES):
 | 
					    for x in range(NUM_RETRIES):
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            subprocess.run([shutil.which('blender'), '-b', '-P', str(file)], shell=False,
 | 
					            subprocess.run(
 | 
				
			||||||
                           check=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)
 | 
					                [shutil.which("blender"), "-b", "-P", str(file)],
 | 
				
			||||||
 | 
					                shell=False,
 | 
				
			||||||
 | 
					                check=True,
 | 
				
			||||||
 | 
					                stdout=subprocess.PIPE,
 | 
				
			||||||
 | 
					                stderr=subprocess.STDOUT,
 | 
				
			||||||
 | 
					                text=True,
 | 
				
			||||||
 | 
					            )
 | 
				
			||||||
            print("installed addon okay")
 | 
					            print("installed addon okay")
 | 
				
			||||||
            sys.exit(0)
 | 
					            sys.exit(0)
 | 
				
			||||||
        except subprocess.CalledProcessError as e:
 | 
					        except subprocess.CalledProcessError as e:
 | 
				
			||||||
| 
						 | 
					@ -37,7 +43,7 @@ with tempfile.TemporaryDirectory() as td:
 | 
				
			||||||
            print("------------------------------")
 | 
					            print("------------------------------")
 | 
				
			||||||
            for line in str(e.output):
 | 
					            for line in str(e.output):
 | 
				
			||||||
                if line.startswith("Writing: "):
 | 
					                if line.startswith("Writing: "):
 | 
				
			||||||
                    crash_file = pathlib.Path(line[len("Writing: "):])
 | 
					                    crash_file = pathlib.Path(line[len("Writing: ") :])
 | 
				
			||||||
                    if crash_file.exists():
 | 
					                    if crash_file.exists():
 | 
				
			||||||
                        print("Crash log:\n================")
 | 
					                        print("Crash log:\n================")
 | 
				
			||||||
                        print(crash_file.read_text())
 | 
					                        print(crash_file.read_text())
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -553,7 +553,7 @@ def voronoi(siteList, context):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            # if this halfedge has no edge, bot = bottom site (whatever that is)
 | 
					            # if this halfedge has no edge, bot = bottom site (whatever that is)
 | 
				
			||||||
            # create a new edge that bisects
 | 
					            # create a new edge that bisects
 | 
				
			||||||
            bot = lbnd.rightreg(bottomsite)
 | 
					            bot = lbnd.right_reg(bottomsite)
 | 
				
			||||||
            edge = Edge.bisect(bot, newsite)
 | 
					            edge = Edge.bisect(bot, newsite)
 | 
				
			||||||
            context.out_bisector(edge)
 | 
					            context.out_bisector(edge)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -598,10 +598,10 @@ def voronoi(siteList, context):
 | 
				
			||||||
            # get the Site to the left of the left HE and to the right of
 | 
					            # get the Site to the left of the left HE and to the right of
 | 
				
			||||||
            # the right HE which it bisects
 | 
					            # the right HE which it bisects
 | 
				
			||||||
            bot = lbnd.leftreg(bottomsite)
 | 
					            bot = lbnd.leftreg(bottomsite)
 | 
				
			||||||
            top = rbnd.rightreg(bottomsite)
 | 
					            top = rbnd.right_reg(bottomsite)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            # output the triple of sites, stating that a circle goes through them
 | 
					            # output the triple of sites, stating that a circle goes through them
 | 
				
			||||||
            mid = lbnd.rightreg(bottomsite)
 | 
					            mid = lbnd.right_reg(bottomsite)
 | 
				
			||||||
            context.out_triple(bot, top, mid)
 | 
					            context.out_triple(bot, top, mid)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            # get the vertex that caused this event and set the vertex number
 | 
					            # get the vertex that caused this event and set the vertex number
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Ładowanie…
	
		Reference in New Issue