You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error!("Checked mesh for problems (holes: {}, non-manifold edges/vertices: {}), problems were found!", postprocessing.check_mesh_closed, postprocessing.check_mesh_manifold);
1313
+
error!("{}", err);
1314
+
returnErr(anyhow!("{}", err))
1315
+
.context(format!("Checked mesh for problems (holes: {}, non-manifold edges/vertices: {}), problems were found!", postprocessing.check_mesh_closed, postprocessing.check_mesh_manifold))
1316
+
.context(format!("Problem found with mesh file \"{}\"", paths.output_file.display()));
1318
1317
}else{
1319
1318
info!("Checked mesh for problems (holes: {}, non-manifold edges/vertices: {}), no problems were found.", postprocessing.check_mesh_closed, postprocessing.check_mesh_manifold);
*error_string += &format!("\n\tTriangle {}, boundary edge {:?} is located in cell with {:?} with center coordinates {:?} and edge length {}.", tri_idx, edge, cell_index, cell_center, grid.cell_size());
172
+
error_strings.push(format!("\n\tTriangle {}, boundary edge {:?} is located in cell with {:?} with center coordinates {:?} and edge length {}.", tri_idx, edge, cell_index, cell_center, grid.cell_size()));
173
173
}else{
174
-
*error_string += &format!(
174
+
error_strings.push(format!(
175
175
"\n\tCannot get cell index for edge {:?} of triangle {}",
176
176
edge, tri_idx
177
-
);
177
+
));
178
178
}
179
179
};
180
180
181
-
letmuterror_string = String::new();
181
+
letmuterror_strings = Vec::new();
182
182
183
183
if check_closed && !boundary_edges.is_empty(){
184
-
error_string += &format!("Mesh is not closed. It has {} boundary edges (edges that are connected to only one triangle).", boundary_edges.len());
184
+
error_strings.push(format!("Mesh is not closed. It has {} boundary edges (edges that are connected to only one triangle).", boundary_edges.len()));
185
185
if debug {
186
186
for e in boundary_edges {
187
-
add_edge_errors(&muterror_string, e);
187
+
add_edge_errors(&muterror_strings, e);
188
188
}
189
189
}
190
-
error_string += "\n";
191
190
}
192
191
193
192
if check_manifold && !non_manifold_edges.is_empty(){
194
-
error_string += &format!("Mesh is not manifold. It has {} non-manifold edges (edges that are connected to more than twi triangles).", non_manifold_edges.len());
193
+
error_strings.push(format!("Mesh is not manifold. It has {} non-manifold edges (edges that are connected to more than twi triangles).", non_manifold_edges.len()));
195
194
if debug {
196
195
for e in non_manifold_edges {
197
-
add_edge_errors(&muterror_string, e);
196
+
add_edge_errors(&muterror_strings, e);
198
197
}
199
198
}
200
-
error_string += "\n";
201
199
}
202
200
203
201
if check_manifold && !non_manifold_vertices.is_empty(){
204
-
error_string += &format!("Mesh is not manifold. It has {} non-manifold vertices (vertices with more than one triangle fan).", non_manifold_vertices.len());
202
+
error_strings.push(format!("Mesh is not manifold. It has {} non-manifold vertices (vertices with more than one triangle fan).", non_manifold_vertices.len()));
0 commit comments