Resample an ITKMesh using point ordering information.
More...
#include <vc/meshing/OrderedResampling.hpp>
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.
◆ OrderedResampling() [1/2]
volcart::meshing::OrderedResampling::OrderedResampling |
( |
| ) |
|
|
inline |
◆ OrderedResampling() [2/2]
volcart::meshing::OrderedResampling::OrderedResampling |
( |
ITKMesh::Pointer |
mesh, |
|
|
int |
inWidth, |
|
|
int |
inHeight |
|
) |
| |
|
inline |
- Parameters
-
mesh | Mesh to be resampled |
inWidth | of the ordering matrix |
inHeight | Height of the ordering matrix |
Definition at line 47 of file OrderedResampling.hpp.
◆ 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
-
a | ID for the first vertex in the face |
b | ID for the second vertex in the face |
c | ID for the third vertex in the face |
◆ getOutputHeight()
int volcart::meshing::OrderedResampling::getOutputHeight |
( |
| ) |
const |
|
inline |
◆ getOutputWidth()
int volcart::meshing::OrderedResampling::getOutputWidth |
( |
| ) |
const |
|
inline |
◆ 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
-
mesh | Mesh to be resampled |
inWidth | Width of the ordering matrix |
inHeight | Height of the ordering matrix |
◆ inHeight_
int volcart::meshing::OrderedResampling::inHeight_ |
|
private |
◆ input_
ITKMesh::Pointer volcart::meshing::OrderedResampling::input_ |
|
private |
◆ inWidth_
int volcart::meshing::OrderedResampling::inWidth_ |
|
private |
◆ outHeight_
int volcart::meshing::OrderedResampling::outHeight_ |
|
private |
◆ output_
ITKMesh::Pointer volcart::meshing::OrderedResampling::output_ |
|
private |
◆ outWidth_
int volcart::meshing::OrderedResampling::outWidth_ |
|
private |
The documentation for this class was generated from the following file: