Computes the mesh's vertex normals using an area weighted average of the adjacent triangle faces (parallelized version)
(&self)
| 946 | |
| 947 | /// Computes the mesh's vertex normals using an area weighted average of the adjacent triangle faces (parallelized version) |
| 948 | pub fn par_vertex_normals(&self) -> Vec<Unit<Vector3<R>>> { |
| 949 | let mut normals = vec![Unit::new_unchecked(Vector3::zeros()); self.vertices.len()]; |
| 950 | self.par_vertex_normals_inplace_assume_zeroed(normals.as_mut_slice()); |
| 951 | normals |
| 952 | } |
| 953 | |
| 954 | /// Computes a helper struct with information about all edges in the mesh (i.e. number of incident triangles etc.) |
| 955 | pub fn compute_edge_information(&self) -> MeshEdgeInformation { |
no test coverage detected