Generates a PerPixelMap from an ITKMesh and a UVMap.
void setShading(Shading s)
Set the normal shading method.
PPMGenerator(std::size_t h, std::size_t w)
void setUVMap(const UVMap::Pointer &u)
Set the input UV map.
auto progressIterations() const -> std::size_t override
Returns the maximum progress value.
auto compute() -> PerPixelMap::Pointer
Compute the PerPixelMap.
Shading
Pixel normal shading method.
@ Smooth
Each pixel's normal is a linear interpolation of the face's vertex normals. This is similar to Phong ...
void setDimensions(std::size_t h, std::size_t w)
Set the dimensions of the output PPM.
void setMesh(const ITKMesh::Pointer &m)
Set the input mesh.
auto getPPM() const -> PerPixelMap::Pointer
Get the generated PerPixelMap.
PerPixelMap::Pointer ppm_
ITKMesh::Pointer workingMesh_
ITKMesh::Pointer inputMesh_
Texturing and parameterization algorithms and utilities library.
auto GenerateCellMap(const ITKMesh::Pointer &mesh, const UVMap::Pointer &uv, std::size_t height, std::size_t width) -> cv::Mat
Generate a cell map image.