mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 12:11:15 -06:00 
			
		
		
		
	Merge remote-tracking branch 'origin/master'
This commit is contained in:
		
						commit
						fefa4ded00
					
				
					 2 changed files with 4 additions and 5 deletions
				
			
		|  | @ -254,12 +254,11 @@ std::vector<Vec3d> SLAAutoSupports::uniformly_cover(const std::pair<ExPolygon, c | |||
|     // In case there is just one point to place, we'll place it into the polygon's centroid (unless it lies in a hole).
 | ||||
|     if (num_of_points == 1) { | ||||
|         Point out(island.first.contour.centroid()); | ||||
|         out(2) = island.second; | ||||
| 
 | ||||
|         for (const auto& hole : island.first.holes) | ||||
|             if (hole.contains(out)) | ||||
|                 goto HOLE_HIT; | ||||
|         return std::vector<Vec3d>{unscale(out(0), out(1), out(2))}; | ||||
|         return std::vector<Vec3d>{unscale(out(0), out(1), island.second)}; | ||||
|     } | ||||
| 
 | ||||
| HOLE_HIT: | ||||
|  | @ -296,10 +295,8 @@ HOLE_HIT: | |||
|                 } | ||||
|             } | ||||
|         } | ||||
|         if (add_it) { | ||||
|             out(2) = island.second; | ||||
|         if (add_it) | ||||
|             island_new_points.emplace_back(unscaled_out); | ||||
|         } | ||||
|     } | ||||
|     return island_new_points; | ||||
| } | ||||
|  |  | |||
|  | @ -1466,6 +1466,7 @@ void GLGizmoFlatten::on_render(const GLCanvas3D::Selection& selection) const | |||
|         const Transform3d& m = selection.get_volume(*selection.get_volume_idxs().begin())->get_instance_transformation().get_matrix(); | ||||
|         ::glPushMatrix(); | ||||
|         ::glMultMatrixd(m.data()); | ||||
|         ::glTranslatef(0.f, 0.f, selection.get_volume(*selection.get_volume_idxs().begin())->get_sla_shift_z()); | ||||
|         for (int i = 0; i < (int)m_planes.size(); ++i) | ||||
|         { | ||||
|             if (i == m_hover_id) | ||||
|  | @ -1497,6 +1498,7 @@ void GLGizmoFlatten::on_render_for_picking(const GLCanvas3D::Selection& selectio | |||
|         const Transform3d& m = selection.get_volume(*selection.get_volume_idxs().begin())->get_instance_transformation().get_matrix(); | ||||
|         ::glPushMatrix(); | ||||
|         ::glMultMatrixd(m.data()); | ||||
|         ::glTranslatef(0.f, 0.f, selection.get_volume(*selection.get_volume_idxs().begin())->get_sla_shift_z()); | ||||
|         for (int i = 0; i < (int)m_planes.size(); ++i) | ||||
|         { | ||||
|             ::glColor3f(1.0f, 1.0f, picking_color_component(i)); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 tamasmeszaros
						tamasmeszaros