Volume Cartographer 2.27.0
|
Generate an ordered mesh from an OrderedPointSet. More...
#include <vc/meshing/OrderedPointSetMesher.hpp>
Public Types | |
using | PointSet = OrderedPointSet< cv::Vec3d > |
Public Member Functions | |
OrderedPointSetMesher ()=default | |
Default Constructor. | |
OrderedPointSetMesher (PointSet points) | |
Construct with OrderedPointSet to be converted. More... | |
void | setPointSet (const PointSet &points) |
Set the input OrderedPointSet. More... | |
void | setComputeTriangulation (bool b) |
Set whether to compute a triangulation from point ordering. More... | |
ITKMesh::Pointer | getOutputMesh () const |
Get the generated mesh. More... | |
ITKMesh::Pointer | compute () |
Compute the mesh triangulation. | |
Private Member Functions | |
void | add_cell_ (std::size_t a, std::size_t b, std::size_t c) |
Add a face to the output mesh. More... | |
Private Attributes | |
PointSet | input_ |
ITKMesh::Pointer | output_ |
bool | generateTriangles_ {true} |
Generate an ordered mesh from an OrderedPointSet.
Create a mesh from an OrderedPointSet, using the ordering information to generate a triangulation of the vertices. Triangulation relies upon the ordering information inherent to the OrderedPointSet and is independent of the actual 3D position of vertices.
Vertices are grouped into "squares" according to their position within the ordering matrix. These squares are then subdivided into two triangles and added to the output mesh.
Vertex normals are computed using CalculateNormals.
Definition at line 34 of file OrderedPointSetMesher.hpp.
using volcart::meshing::OrderedPointSetMesher::PointSet = OrderedPointSet<cv::Vec3d> |
Point set convenience alias
Definition at line 38 of file OrderedPointSetMesher.hpp.
|
inlineexplicit |
Construct with OrderedPointSet to be converted.
Definition at line 45 of file OrderedPointSetMesher.hpp.
|
private |
Add a face to the output mesh.
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 |
|
inline |
Get the generated mesh.
Definition at line 65 of file OrderedPointSetMesher.hpp.
|
inline |
Set whether to compute a triangulation from point ordering.
When enabled, use point ordering to generate a triangulation. Otherwise, the resulting mesh is only filled with vertices.
Default: Enabled
Definition at line 62 of file OrderedPointSetMesher.hpp.
|
inline |
Set the input OrderedPointSet.
Definition at line 52 of file OrderedPointSetMesher.hpp.
|
private |
Definition at line 79 of file OrderedPointSetMesher.hpp.
|
private |
Definition at line 76 of file OrderedPointSetMesher.hpp.
|
private |
Definition at line 77 of file OrderedPointSetMesher.hpp.