mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Finish porting TriangleMesh->translate
This commit is contained in:
		
							parent
							
								
									04d5d1bb9b
								
							
						
					
					
						commit
						597e9e6c14
					
				
					 2 changed files with 8 additions and 4 deletions
				
			
		|  | @ -26,10 +26,14 @@ | |||
| void | ||||
| stl_invalidate_shared_vertices(stl_file *stl) | ||||
| { | ||||
|     if (stl->v_indices != NULL) | ||||
|     if (stl->v_indices != NULL) { | ||||
|         free(stl->v_indices); | ||||
|     if (stl->v_shared != NULL) | ||||
|         stl->v_indices = NULL; | ||||
|     } | ||||
|     if (stl->v_shared != NULL) { | ||||
|         free(stl->v_shared); | ||||
|         stl->v_shared = NULL; | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| void | ||||
|  |  | |||
|  | @ -37,7 +37,7 @@ TriangleMesh::stats() | |||
| SV* | ||||
| TriangleMesh::vertices() | ||||
|     CODE: | ||||
|         if (THIS->stl.stats.shared_vertices == 0) | ||||
|         if (THIS->stl.v_shared == NULL) | ||||
|             stl_generate_shared_vertices(&(THIS->stl)); | ||||
|          | ||||
|         // vertices | ||||
|  | @ -59,7 +59,7 @@ TriangleMesh::vertices() | |||
| SV* | ||||
| TriangleMesh::facets() | ||||
|     CODE: | ||||
|         if (THIS->stl.stats.shared_vertices == 0) | ||||
|         if (THIS->stl.v_shared == NULL) | ||||
|             stl_generate_shared_vertices(&(THIS->stl)); | ||||
|          | ||||
|         // facets | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci