Volume Cartographer 2.27.0
|
Mesh resampling using Approximated Centroidal Voronoi Diagrams. More...
#include <vc/graph/meshing.hpp>
Public Types | |
using | Mode = ACVD::Mode |
Isotropy modes. More... | |
Public Member Functions | |
ResampleMeshNode () | |
Public Attributes | |
smgl::InputPort< ITKMesh::Pointer > | input |
Input mesh. More... | |
smgl::InputPort< Mode > | mode |
Isotropy mode. More... | |
smgl::InputPort< std::size_t > | numVertices |
The number of voronoi clusters to use for remeshing. More... | |
smgl::InputPort< double > | gradation |
The gradation (curvature) constraint. More... | |
smgl::InputPort< std::size_t > | subsampleThreshold |
The subsampling threshold. More... | |
smgl::InputPort< std::size_t > | quadricsOptimizationLevel |
Quadrics optimization level. More... | |
smgl::OutputPort< ITKMesh::Pointer > | output |
Resampled mesh. More... | |
Private Types | |
using | ACVD = meshing::ACVD |
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 | |
ACVD | acvd_ |
ITKMesh::Pointer | mesh_ |
Mesh resampling using Approximated Centroidal Voronoi Diagrams.
Definition at line 186 of file meshing.hpp.
|
private |
Resampler class type
Definition at line 190 of file meshing.hpp.
Isotropy modes.
Definition at line 198 of file meshing.hpp.
volcart::ResampleMeshNode::ResampleMeshNode | ( | ) |
Constructor
|
overrideprivate |
smgl custom deserialization
|
overrideprivate |
smgl custom serialization
|
private |
Mesh resampler
Definition at line 192 of file meshing.hpp.
smgl::InputPort<double> volcart::ResampleMeshNode::gradation |
The gradation (curvature) constraint.
If set to 0 (default), uniform clustering will be performed. Higher values will produce a clustering which favors regions of high curvature.
Definition at line 207 of file meshing.hpp.
smgl::InputPort<ITKMesh::Pointer> volcart::ResampleMeshNode::input |
Input mesh.
Definition at line 201 of file meshing.hpp.
|
private |
Output mesh
Definition at line 194 of file meshing.hpp.
smgl::InputPort<Mode> volcart::ResampleMeshNode::mode |
Isotropy mode.
Definition at line 203 of file meshing.hpp.
smgl::InputPort<std::size_t> volcart::ResampleMeshNode::numVertices |
The number of voronoi clusters to use for remeshing.
Because this algorithm uses the center of voronoi clusters as the vertices of the output mesh, this parameter sets the approximate number of vertices desired in the output mesh.
If set to 0 (default), the number of vertices in the input mesh will be used.
Definition at line 205 of file meshing.hpp.
smgl::OutputPort<ITKMesh::Pointer> volcart::ResampleMeshNode::output |
Resampled mesh.
Definition at line 213 of file meshing.hpp.
smgl::InputPort<std::size_t> volcart::ResampleMeshNode::quadricsOptimizationLevel |
Quadrics optimization level.
For values greater than 0, refine the resampled vertices to minimize the quadric error between the input and output mesh. Only use if mode is Mode::Isotropic
. Default value: 1
Definition at line 211 of file meshing.hpp.
smgl::InputPort<std::size_t> volcart::ResampleMeshNode::subsampleThreshold |
The subsampling threshold.
Input mesh will be iteratively divided until the subsample ratio is above the subsampling threshold. In practice, higher values produce better results, but require more subdivision.
Definition at line 209 of file meshing.hpp.