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

Calculate the number of vertices required to produce a particular resampling density factor. More...

#include <vc/graph/meshing.hpp>

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

Public Member Functions

 CalculateNumVertsNode ()
 

Public Attributes

smgl::InputPort< ITKMesh::Pointer > mesh
 Input mesh. More...
 
smgl::InputPort< double > voxelSize
 Voxel size (um) in the mesh's coordinate space. More...
 
smgl::InputPort< double > density
 Target density factor. More...
 
smgl::OutputPort< std::size_t > numVerts
 Resulting number of vertices. More...
 

Private Member Functions

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

Private Attributes

ITKMesh::Pointer mesh_ {nullptr}
 
double voxelSize_ {100}
 
double density_ {50}
 
std::size_t numVerts_ {0}
 

Detailed Description

Calculate the number of vertices required to produce a particular resampling density factor.

Density factor is defined as the average number of vertices per square mm of mesh surface area. This class calculates the number of vertices needed to produce a given density factor for a particular mesh. The number of vertices produced bu this class are meant to be passed to ResampleMeshNode::numVertices.

Definition at line 106 of file meshing.hpp.

Constructor & Destructor Documentation

◆ CalculateNumVertsNode()

volcart::CalculateNumVertsNode::CalculateNumVertsNode ( )

Constructor

Member Function Documentation

◆ deserialize_()

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

smgl custom deserialization

◆ serialize_()

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

smgl custom serialization

Member Data Documentation

◆ density

smgl::InputPort<double> volcart::CalculateNumVertsNode::density

Target density factor.

Definition at line 128 of file meshing.hpp.

◆ density_

double volcart::CalculateNumVertsNode::density_ {50}
private

Target density factor

Definition at line 114 of file meshing.hpp.

◆ mesh

smgl::InputPort<ITKMesh::Pointer> volcart::CalculateNumVertsNode::mesh

Input mesh.

Definition at line 120 of file meshing.hpp.

◆ mesh_

ITKMesh::Pointer volcart::CalculateNumVertsNode::mesh_ {nullptr}
private

Input mesh

Definition at line 110 of file meshing.hpp.

◆ numVerts

smgl::OutputPort<std::size_t> volcart::CalculateNumVertsNode::numVerts

Resulting number of vertices.

Definition at line 130 of file meshing.hpp.

◆ numVerts_

std::size_t volcart::CalculateNumVertsNode::numVerts_ {0}
private

Resulting number of vertices

Definition at line 116 of file meshing.hpp.

◆ voxelSize

smgl::InputPort<double> volcart::CalculateNumVertsNode::voxelSize

Voxel size (um) in the mesh's coordinate space.

This is the voxel size of the Volume from which the mesh was produced.

Definition at line 126 of file meshing.hpp.

◆ voxelSize_

double volcart::CalculateNumVertsNode::voxelSize_ {100}
private

Voxel size (um) in mesh/volume space

Definition at line 112 of file meshing.hpp.


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