MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/splashsurf / par_vertex_normals

Method par_vertex_normals

splashsurf_lib/src/mesh.rs:948–952  ·  view source on GitHub ↗

Computes the mesh's vertex normals using an area weighted average of the adjacent triangle faces (parallelized version)

(&self)

Source from the content-addressed store, hash-verified

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 {

Callers 3

compute_normals_genericFunction · 0.80
reconstruction_pipelineFunction · 0.80

Tested by

no test coverage detected