Volume Cartographer 2.27.0
List of all members
volcart::meshing::OrderedResampling Class Reference

Resample an ITKMesh using point ordering information. More...

#include <vc/meshing/OrderedResampling.hpp>

Public Member Functions

Constructors
 OrderedResampling ()
 
 OrderedResampling (ITKMesh::Pointer mesh, int inWidth, int inHeight)
 
Input/Output
void setMesh (const ITKMesh::Pointer &mesh, int inWidth, int inHeight)
 Set the input mesh and the dimensions of the ordering matrix. More...
 
ITKMesh::Pointer getOutputMesh () const
 Get the resampled mesh.
 
int getOutputWidth () const
 Get the width of the resampled mesh. More...
 
int getOutputHeight () const
 Get the height of the resampled mesh. More...
 

Processing

ITKMesh::Pointer input_
 
ITKMesh::Pointer output_
 
int inWidth_
 
int inHeight_
 
int outWidth_
 
int outHeight_
 
void compute ()
 Compute resampled mesh.
 
void add_cell_ (std::uint32_t a, std::uint32_t b, std::uint32_t c)
 Add a face to the output mesh. More...
 

Detailed Description

Resample an ITKMesh using point ordering information.

Author
Hannah Hatch
Date
7/25/16

Reduce the number of points and faces in a mesh by removing every other point along the horizontal and vertical axes of the ordering matrix defined by the width and height parameters. Assumes the input mesh was constructed from an OrderedPointSet using OrderedPointSetMesher.

Warning
This function assumes the input mesh was constructed from an OrderedPointSet using OrderedPointSetMesher, and will produce undesired results for any other type of triangulation.
See also
examples/src/OrderedResamplingExample.cpp test/OrderedResamplingTest.cpp

Definition at line 35 of file OrderedResampling.hpp.

Constructor & Destructor Documentation

◆ OrderedResampling() [1/2]

volcart::meshing::OrderedResampling::OrderedResampling ( )
inline

Definition at line 40 of file OrderedResampling.hpp.

◆ OrderedResampling() [2/2]

volcart::meshing::OrderedResampling::OrderedResampling ( ITKMesh::Pointer  mesh,
int  inWidth,
int  inHeight 
)
inline
Parameters
meshMesh to be resampled
inWidthof the ordering matrix
inHeightHeight of the ordering matrix

Definition at line 47 of file OrderedResampling.hpp.

Member Function Documentation

◆ add_cell_()

void volcart::meshing::OrderedResampling::add_cell_ ( std::uint32_t  a,
std::uint32_t  b,
std::uint32_t  c 
)
private

Add a face to the output mesh.

Parameters
aID for the first vertex in the face
bID for the second vertex in the face
cID for the third vertex in the face

◆ getOutputHeight()

int volcart::meshing::OrderedResampling::getOutputHeight ( ) const
inline

Get the height of the resampled mesh.

Definition at line 80 of file OrderedResampling.hpp.

◆ getOutputWidth()

int volcart::meshing::OrderedResampling::getOutputWidth ( ) const
inline

Get the width of the resampled mesh.

Definition at line 75 of file OrderedResampling.hpp.

◆ setMesh()

void volcart::meshing::OrderedResampling::setMesh ( const ITKMesh::Pointer &  mesh,
int  inWidth,
int  inHeight 
)

Set the input mesh and the dimensions of the ordering matrix.

Width defines the number of vertices in each row of the ordering matrix. Height defines the number of rows in the ordering matrix.

Parameters
meshMesh to be resampled
inWidthWidth of the ordering matrix
inHeightHeight of the ordering matrix

Member Data Documentation

◆ inHeight_

int volcart::meshing::OrderedResampling::inHeight_
private

The number of rows in the input ordering matrix

Definition at line 97 of file OrderedResampling.hpp.

◆ input_

ITKMesh::Pointer volcart::meshing::OrderedResampling::input_
private

Definition at line 91 of file OrderedResampling.hpp.

◆ inWidth_

int volcart::meshing::OrderedResampling::inWidth_
private

The number of columns in the input ordering matrix

Definition at line 95 of file OrderedResampling.hpp.

◆ outHeight_

int volcart::meshing::OrderedResampling::outHeight_
private

The number of rows in the output ordering matrix

Definition at line 101 of file OrderedResampling.hpp.

◆ output_

ITKMesh::Pointer volcart::meshing::OrderedResampling::output_
private

Definition at line 92 of file OrderedResampling.hpp.

◆ outWidth_

int volcart::meshing::OrderedResampling::outWidth_
private

The number of columns in the output ordering matrix

Definition at line 99 of file OrderedResampling.hpp.


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