mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Fixed typo in its_collect_mesh_projection_points_above() and method TriangleMesh::slice() set as const
This commit is contained in:
		
							parent
							
								
									ff6623b0f4
								
							
						
					
					
						commit
						8377b6ef4f
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		|  | @ -611,7 +611,7 @@ TriangleMesh TriangleMesh::convex_hull_3d() const | |||
|     return output_mesh; | ||||
| } | ||||
| 
 | ||||
| std::vector<ExPolygons> TriangleMesh::slice(const std::vector<double> &z) | ||||
| std::vector<ExPolygons> TriangleMesh::slice(const std::vector<double> &z) const | ||||
| { | ||||
|     // convert doubles to floats
 | ||||
|     std::vector<float> z_f(z.begin(), z.end()); | ||||
|  | @ -905,7 +905,7 @@ void its_collect_mesh_projection_points_above(const indexed_triangle_set &its, c | |||
|     all_pts.reserve(all_pts.size() + its.indices.size() * 3); | ||||
|     for (const stl_triangle_vertex_indices &tri : its.indices) { | ||||
|         const Vec3f pts[3] = { transform_fn(its.vertices[tri(0)]), transform_fn(its.vertices[tri(1)]), transform_fn(its.vertices[tri(2)]) }; | ||||
|         int iprev = 3; | ||||
|         int iprev = 2; | ||||
|         for (int iedge = 0; iedge < 3; ++ iedge) { | ||||
|             const Vec3f &p1 = pts[iprev]; | ||||
|             const Vec3f &p2 = pts[iedge]; | ||||
|  |  | |||
|  | @ -65,7 +65,7 @@ public: | |||
|     // Returns the convex hull of this TriangleMesh
 | ||||
|     TriangleMesh convex_hull_3d() const; | ||||
|     // Slice this mesh at the provided Z levels and return the vector
 | ||||
|     std::vector<ExPolygons> slice(const std::vector<double>& z); | ||||
|     std::vector<ExPolygons> slice(const std::vector<double>& z) const; | ||||
|     void reset_repair_stats(); | ||||
|     bool needed_repair() const; | ||||
|     void require_shared_vertices(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 enricoturri1966
						enricoturri1966