Volume Cartographer 2.27.0
|
Calculate the number of vertices required to produce a particular resampling density factor. More...
#include <vc/graph/meshing.hpp>
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} |
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.
volcart::CalculateNumVertsNode::CalculateNumVertsNode | ( | ) |
Constructor
|
overrideprivate |
smgl custom deserialization
|
overrideprivate |
smgl custom serialization
smgl::InputPort<double> volcart::CalculateNumVertsNode::density |
Target density factor.
Definition at line 128 of file meshing.hpp.
|
private |
Target density factor
Definition at line 114 of file meshing.hpp.
smgl::InputPort<ITKMesh::Pointer> volcart::CalculateNumVertsNode::mesh |
Input mesh.
Definition at line 120 of file meshing.hpp.
|
private |
Input mesh
Definition at line 110 of file meshing.hpp.
smgl::OutputPort<std::size_t> volcart::CalculateNumVertsNode::numVerts |
Resulting number of vertices.
Definition at line 130 of file meshing.hpp.
|
private |
Resulting number of vertices
Definition at line 116 of file meshing.hpp.
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.
|
private |
Voxel size (um) in mesh/volume space
Definition at line 112 of file meshing.hpp.