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

Method vertex_normals_parallel

pysplashsurf/src/mesh.rs:188–196  ·  view source on GitHub ↗

Computes the vertex normals of the mesh using an area weighted average of the adjacent triangle faces

(
        &self,
        py: Python<'py>,
    )

Source from the content-addressed store, hash-verified

186
187 /// Computes the vertex normals of the mesh using an area weighted average of the adjacent triangle faces
188 pub fn vertex_normals_parallel<'py>(
189 &self,
190 py: Python<'py>,
191 ) -> PyResult<Bound<'py, PyUntypedArray>> {
192 match &self.inner {
193 PyTriMesh3dData::F32(mesh) => compute_normals_generic(py, mesh),
194 PyTriMesh3dData::F64(mesh) => compute_normals_generic(py, mesh),
195 }
196 }
197
198 /// Computes the vertex-vertex connectivity of the mesh
199 pub fn vertex_vertex_connectivity(&self) -> PyVertexVertexConnectivity {

Callers

nothing calls this directly

Calls 1

compute_normals_genericFunction · 0.85

Tested by

no test coverage detected