Noether  0.0.0
Loading...
Searching...
No Matches
noether::NormalsFromMeshFacesMeshModifier Class Reference

MeshModifier that assigns vertex normals using mesh faces. More...

Detailed Description

The normal of each vertex is calculated as the average of the normals of all faces which include that vertex. This function handles supra-triangular polygonal faces, but ignores 'faces' that include less than three vertices. Well-behaved on meshes with holes. Note that a mesh with inconsistent face normals will generate inconsistent vertex normals. Note that a non-manifold mesh may produce numerically unstable results.

#include <normals_from_mesh_faces_modifier.h>

Inheritance diagram for noether::NormalsFromMeshFacesMeshModifier:

Public Member Functions

std::vector< pcl::PolygonMesh > modify (const pcl::PolygonMesh &mesh) const override
 

Additional Inherited Members

- Public Types inherited from noether::MeshModifier
using Ptr = std::unique_ptr< MeshModifier >
 
using ConstPtr = std::unique_ptr< const MeshModifier >
 

Member Function Documentation

◆ modify()

std::vector< pcl::PolygonMesh > noether::NormalsFromMeshFacesMeshModifier::modify ( const pcl::PolygonMesh &  mesh) const
overridevirtual

Reimplemented from noether::MeshModifier.