Volume Cartographer 2.27.0
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
volcart::UVMapToMeshNode Class Reference

Convert a UVMap to a mesh. More...

#include <vc/graph/meshing.hpp>

Inheritance diagram for volcart::UVMapToMeshNode:
[legend]
Collaboration diagram for volcart::UVMapToMeshNode:
[legend]

Public Member Functions

 UVMapToMeshNode ()
 

Public Attributes

smgl::InputPort< ITKMesh::Pointer > inputMesh
 Input mesh. More...
 
smgl::InputPort< UVMap::PointeruvMap
 Input UVMap. More...
 
smgl::InputPort< bool > scaleToUVDimensions
 If true, scale the output mesh to the width/height stored in the UVMap. Default: false. More...
 
smgl::OutputPort< ITKMesh::Pointer > outputMesh
 UV mesh. More...
 

Private Member Functions

auto serialize_ (bool useCache, const filesystem::path &cacheDir) -> smgl::Metadata override
 
void deserialize_ (const smgl::Metadata &meta, const filesystem::path &cacheDir) override
 

Private Attributes

meshing::UVMapToITKMesh mesher_ {}
 
bool scaleDims_ {false}
 
ITKMesh::Pointer output_ {nullptr}
 

Detailed Description

Convert a UVMap to a mesh.

Combines the UV coordinates from a UVMap and the face information from an ITKMesh to produce a meshed UVMap.

See also
meshing::UVMapToITKMesh

Definition at line 234 of file meshing.hpp.

Constructor & Destructor Documentation

◆ UVMapToMeshNode()

volcart::UVMapToMeshNode::UVMapToMeshNode ( )

Constructor

Member Function Documentation

◆ deserialize_()

void volcart::UVMapToMeshNode::deserialize_ ( const smgl::Metadata &  meta,
const filesystem::path &  cacheDir 
)
overrideprivate

smgl custom deserialization

◆ serialize_()

auto volcart::UVMapToMeshNode::serialize_ ( bool  useCache,
const filesystem::path &  cacheDir 
) -> smgl::Metadata
overrideprivate

smgl custom serialization

Member Data Documentation

◆ inputMesh

smgl::InputPort<ITKMesh::Pointer> volcart::UVMapToMeshNode::inputMesh

Input mesh.

Definition at line 246 of file meshing.hpp.

◆ mesher_

meshing::UVMapToITKMesh volcart::UVMapToMeshNode::mesher_ {}
private

Converter

Definition at line 238 of file meshing.hpp.

◆ output_

ITKMesh::Pointer volcart::UVMapToMeshNode::output_ {nullptr}
private

Output mesh

Definition at line 242 of file meshing.hpp.

◆ outputMesh

smgl::OutputPort<ITKMesh::Pointer> volcart::UVMapToMeshNode::outputMesh

UV mesh.

Definition at line 252 of file meshing.hpp.

◆ scaleDims_

bool volcart::UVMapToMeshNode::scaleDims_ {false}
private

Scale the output mesh to the dims of the UVMap

Definition at line 240 of file meshing.hpp.

◆ scaleToUVDimensions

smgl::InputPort<bool> volcart::UVMapToMeshNode::scaleToUVDimensions

If true, scale the output mesh to the width/height stored in the UVMap. Default: false.

Definition at line 250 of file meshing.hpp.

◆ uvMap

smgl::InputPort<UVMap::Pointer> volcart::UVMapToMeshNode::uvMap

Input UVMap.

Definition at line 248 of file meshing.hpp.


The documentation for this class was generated from the following file: