mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 20:51:12 -06:00 
			
		
		
		
	Bed3D::is_circle() - Use Geometry::circle_center_taubin_newton() to detect candidate center
This commit is contained in:
		
							parent
							
								
									d34c9cec9a
								
							
						
					
					
						commit
						4fd9a99f5b
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -271,7 +271,8 @@ bool Bed3D::is_circle(const Pointfs& shape, Vec2d* center, double* radius) | |||
| 
 | ||||
|     // Analyze the array of points.
 | ||||
|     // Do they reside on a circle ?
 | ||||
|     const Vec2d box_center = BoundingBoxf(shape).center(); | ||||
|     const Vec2d box_center = Geometry::circle_center_taubin_newton(shape); | ||||
| 
 | ||||
|     std::vector<double> vertex_distances; | ||||
|     double avg_dist = 0.0; | ||||
|     for (const Vec2d& pt : shape) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 enricoturri1966
						enricoturri1966