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

Mesh resampling using Approximated Centroidal Voronoi Diagrams. More...

#include <vc/graph/meshing.hpp>

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

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< Modemode
 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_
 

Detailed Description

Mesh resampling using Approximated Centroidal Voronoi Diagrams.

See also
meshing::ACVD

Definition at line 186 of file meshing.hpp.

Member Typedef Documentation

◆ ACVD

Resampler class type

Definition at line 190 of file meshing.hpp.

◆ Mode

Isotropy modes.

Definition at line 198 of file meshing.hpp.

Constructor & Destructor Documentation

◆ ResampleMeshNode()

volcart::ResampleMeshNode::ResampleMeshNode ( )

Constructor

Member Function Documentation

◆ deserialize_()

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

smgl custom deserialization

◆ serialize_()

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

smgl custom serialization

Member Data Documentation

◆ acvd_

ACVD volcart::ResampleMeshNode::acvd_
private

Mesh resampler

Definition at line 192 of file meshing.hpp.

◆ gradation

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.

◆ input

smgl::InputPort<ITKMesh::Pointer> volcart::ResampleMeshNode::input

Input mesh.

Definition at line 201 of file meshing.hpp.

◆ mesh_

ITKMesh::Pointer volcart::ResampleMeshNode::mesh_
private

Output mesh

Definition at line 194 of file meshing.hpp.

◆ mode

smgl::InputPort<Mode> volcart::ResampleMeshNode::mode

Isotropy mode.

Definition at line 203 of file meshing.hpp.

◆ numVertices

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.

◆ output

smgl::OutputPort<ITKMesh::Pointer> volcart::ResampleMeshNode::output

Resampled mesh.

Definition at line 213 of file meshing.hpp.

◆ quadricsOptimizationLevel

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.

◆ subsampleThreshold

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.


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