5#include <opencv2/core.hpp>
35 void setMesh(
const ITKMesh::Pointer& mesh);
Orient vertex normals towards a reference point.
auto referenceMode() const -> ReferenceMode
Get the current reference mode.
void setMesh(const ITKMesh::Pointer &mesh)
Set the input mesh.
void setReferenceMode(ReferenceMode mode)
Set reference point mode.
auto referencePoint() const -> cv::Vec3d
Get the manually defined reference point.
auto compute() -> ITKMesh::Pointer
Compute vertex normal reorientation.
OrientNormals()=default
Default constructor.
void setReferencePoint(const cv::Vec3d &point)
Set manual reference point.
ReferenceMode
Reference point mode.
@ Centroid
Mesh centroid reference point for convex meshes.
auto getMesh() const -> ITKMesh::Pointer
Get the output mesh with updated normals.
Mesh generation and modification library.
itk::Mesh< ITKPixel, 3, ITKMeshTraits > ITKMesh