7#include <smgl/Node.hpp>
40 smgl::InputPort<Mesher::PointSet>
points;
42 smgl::OutputPort<ITKMesh::Pointer>
mesh;
49 auto serialize_(
bool useCache,
const filesystem::path& cacheDir)
50 -> smgl::Metadata
override;
54 const smgl::Metadata& meta,
const filesystem::path& cacheDir)
override;
75 smgl::InputPort<ITKMesh::Pointer>
input;
79 smgl::OutputPort<ITKMesh::Pointer>
output;
86 auto serialize_(
bool useCache,
const filesystem::path& cacheDir)
87 -> smgl::Metadata
override;
91 const smgl::Metadata& meta,
const filesystem::path& cacheDir)
override;
120 smgl::InputPort<ITKMesh::Pointer>
mesh;
138 -> smgl::Metadata
override;
142 const smgl::Metadata& meta,
143 const filesystem::path& )
override;
163 smgl::InputPort<ITKMesh::Pointer>
input;
165 smgl::OutputPort<ITKMesh::Pointer>
output;
172 auto serialize_(
bool useCache,
const filesystem::path& cacheDir)
173 -> smgl::Metadata
override;
177 const smgl::Metadata& meta,
const filesystem::path& cacheDir)
override;
201 smgl::InputPort<ITKMesh::Pointer>
input;
213 smgl::OutputPort<ITKMesh::Pointer>
output;
220 auto serialize_(
bool useCache,
const filesystem::path& cacheDir)
221 -> smgl::Metadata
override;
225 const smgl::Metadata& meta,
const filesystem::path& cacheDir)
override;
248 smgl::InputPort<UVMap::Pointer>
uvMap;
259 auto serialize_(
bool useCache,
const filesystem::path& cacheDir)
260 -> smgl::Metadata
override;
264 const smgl::Metadata& meta,
const filesystem::path& cacheDir)
override;
288 smgl::InputPort<ITKMesh::Pointer>
input;
294 smgl::OutputPort<ITKMesh::Pointer>
output;
301 auto serialize_(
bool useCache,
const filesystem::path& cacheDir)
302 -> smgl::Metadata
override;
306 const smgl::Metadata& meta,
const filesystem::path& cacheDir)
override;
Utility functions for calculations on meshes.
Calculate the number of vertices required to produce a particular resampling density factor.
smgl::InputPort< ITKMesh::Pointer > mesh
Input mesh.
auto serialize_(bool, const filesystem::path &) -> smgl::Metadata override
smgl::InputPort< double > density
Target density factor.
smgl::OutputPort< std::size_t > numVerts
Resulting number of vertices.
smgl::InputPort< double > voxelSize
Voxel size (um) in the mesh's coordinate space.
void deserialize_(const smgl::Metadata &meta, const filesystem::path &) override
Apply Laplacian smoothing to a mesh.
smgl::OutputPort< ITKMesh::Pointer > output
Output mesh.
LaplacianSmoothMeshNode()
void deserialize_(const smgl::Metadata &meta, const filesystem::path &cacheDir) override
auto serialize_(bool useCache, const filesystem::path &cacheDir) -> smgl::Metadata override
smgl::InputPort< ITKMesh::Pointer > input
Input mesh.
Generate an ordered mesh from an OrderedPointSet.
smgl::InputPort< Mesher::PointSet > points
Input point set.
void deserialize_(const smgl::Metadata &meta, const filesystem::path &cacheDir) override
smgl::OutputPort< ITKMesh::Pointer > mesh
Output mesh.
auto serialize_(bool useCache, const filesystem::path &cacheDir) -> smgl::Metadata override
Orient vertex normals towards a reference point.
smgl::InputPort< ITKMesh::Pointer > input
Input mesh.
smgl::InputPort< ReferenceMode > referenceMode
Set reference point mode.
smgl::InputPort< cv::Vec3d > referencePoint
Set manual reference point.
void deserialize_(const smgl::Metadata &meta, const filesystem::path &cacheDir) override
auto serialize_(bool useCache, const filesystem::path &cacheDir) -> smgl::Metadata override
smgl::OutputPort< ITKMesh::Pointer > output
Output mesh.
OrientNormals orientNormals_
Mesh resampling using Approximated Centroidal Voronoi Diagrams.
smgl::InputPort< std::size_t > subsampleThreshold
The subsampling threshold.
smgl::InputPort< ITKMesh::Pointer > input
Input mesh.
auto serialize_(bool useCache, const filesystem::path &cacheDir) -> smgl::Metadata override
smgl::InputPort< std::size_t > numVertices
The number of voronoi clusters to use for remeshing.
void deserialize_(const smgl::Metadata &meta, const filesystem::path &cacheDir) override
smgl::InputPort< double > gradation
The gradation (curvature) constraint.
smgl::InputPort< std::size_t > quadricsOptimizationLevel
Quadrics optimization level.
smgl::InputPort< Mode > mode
Isotropy mode.
smgl::OutputPort< ITKMesh::Pointer > output
Resampled mesh.
Scale an ITKMesh by a linear scale factor.
smgl::InputPort< ITKMesh::Pointer > input
Input mesh.
smgl::InputPort< double > scaleFactor
Linear scale factor.
smgl::OutputPort< ITKMesh::Pointer > output
Scaled output mesh.
void deserialize_(const smgl::Metadata &meta, const filesystem::path &cacheDir) override
auto serialize_(bool useCache, const filesystem::path &cacheDir) -> smgl::Metadata override
Convert a UVMap to a mesh.
smgl::OutputPort< ITKMesh::Pointer > outputMesh
UV mesh.
void deserialize_(const smgl::Metadata &meta, const filesystem::path &cacheDir) override
smgl::InputPort< ITKMesh::Pointer > inputMesh
Input mesh.
smgl::InputPort< UVMap::Pointer > uvMap
Input UVMap.
auto serialize_(bool useCache, const filesystem::path &cacheDir) -> smgl::Metadata override
smgl::InputPort< bool > scaleToUVDimensions
If true, scale the output mesh to the width/height stored in the UVMap. Default: false.
meshing::UVMapToITKMesh mesher_
Mesh resampling using Approximated Centroidal Voronoi Diagrams.
Apply Laplacian smoothing to a mesh.
Generate an ordered mesh from an OrderedPointSet.
Orient vertex normals towards a reference point.
ReferenceMode
Reference point mode.
Convert a UVMap to a mesh.
Volume Cartographer library