Calculate vertex normals for ITK Meshes.
More...
#include <vc/meshing/CalculateNormals.hpp>
|
| CalculateNormals (const ITKMesh::Pointer &mesh) |
|
void | setMesh (const ITKMesh::Pointer &mesh) |
| Set the input mesh. More...
|
|
ITKMesh::Pointer | getMesh () const |
| Get the output mesh with computed normals. More...
|
|
ITKMesh::Pointer | compute () |
| Compute vertex normals for the mesh.
|
|
Calculate vertex normals for ITK Meshes.
- Author
- Hannah Hatch
- Date
- 7/26/16
Given an ITK mesh, generates a copy of that mesh with embedded vertex normals.
Definition at line 25 of file CalculateNormals.hpp.
◆ CalculateNormals()
volcart::meshing::CalculateNormals::CalculateNormals |
( |
const ITKMesh::Pointer & |
mesh | ) |
|
|
explicit |
- Parameters
-
mesh | Input Mesh whose normals you want computed |
◆ assign_to_mesh_()
void volcart::meshing::CalculateNormals::assign_to_mesh_ |
( |
| ) |
|
|
private |
Assign the summed normals to the output mesh.
Takes the summed normals for each vertex and assigns them to the corresponding vertex in the output mesh.
◆ compute_normals_()
void volcart::meshing::CalculateNormals::compute_normals_ |
( |
| ) |
|
|
private |
Compute normals for each vertex.
For each face, computes the normal to that face and adds the resulting vector to a sum vector for each vertex in that face.
◆ getMesh()
ITKMesh::Pointer volcart::meshing::CalculateNormals::getMesh |
( |
| ) |
const |
|
inline |
◆ setMesh()
void volcart::meshing::CalculateNormals::setMesh |
( |
const ITKMesh::Pointer & |
mesh | ) |
|
Set the input mesh.
- Parameters
-
mesh | The mesh for which normals will be calculated |
◆ input_
ITKMesh::Pointer volcart::meshing::CalculateNormals::input_ |
|
private |
◆ output_
ITKMesh::Pointer volcart::meshing::CalculateNormals::output_ |
|
private |
◆ vertexNormals_
std::vector<cv::Vec3d> volcart::meshing::CalculateNormals::vertexNormals_ |
|
private |
The documentation for this class was generated from the following file: