30 #include <Eigen/StdVector> 57 TetraMesh(
const std::vector<Eigen::Vector3d> &vertices,
58 const std::vector<Eigen::Vector4i, utility::Vector4i_allocator>
101 const std::vector<double> &values,
double level);
108 static std::tuple<std::shared_ptr<TetraMesh>, std::vector<size_t>>
117 std::vector<Eigen::Vector4i, utility::Vector4i_allocator>
tetras_;
std::shared_ptr< TriangleMesh > ExtractTriangleMesh(const std::vector< double > &values, double level)
Function to extract a triangle mesh of the specified iso-surface at a level This method applies prima...
Definition: TetraMesh.cpp:190
TetraMesh & RemoveDuplicatedVertices()
Function that removes duplicated verties, i.e., vertices that have identical coordinates.
Definition: TetraMesh.cpp:67
TetraMesh operator+(const TetraMesh &mesh) const
Definition: TetraMesh.cpp:63
The base geometry class.
Definition: Geometry.h:37
MeshBash Class.
Definition: MeshBase.h:51
A point cloud consists of point coordinates, and optionally point colors and point normals...
Definition: PointCloud.h:54
TetraMesh & RemoveUnreferencedVertices()
This function removes vertices from the tetra mesh that are not referenced in any tetrahedron of the ...
Definition: TetraMesh.cpp:133
TetraMesh & RemoveDuplicatedTetras()
Function that removes duplicated tetrahedra, i.e., removes tetrahedra that reference the same four ve...
Definition: TetraMesh.cpp:103
TetraMesh()
Default Constructor.
Definition: TetraMesh.h:51
bool HasTetras() const
Returns true if the mesh contains tetras.
Definition: TetraMesh.h:90
TetraMesh & operator+=(const TetraMesh &mesh)
Definition: TetraMesh.cpp:48
~TetraMesh() override
Definition: TetraMesh.h:62
TetraMesh(const std::vector< Eigen::Vector3d > &vertices, const std::vector< Eigen::Vector4i, utility::Vector4i_allocator > &tetras)
Parameterized Constructor.
Definition: TetraMesh.h:57
TetraMesh & RemoveDegenerateTetras()
Function that removes degenerate tetrahedra, i.e., tetrahedra that reference a single vertex multiple...
Definition: TetraMesh.cpp:170
std::vector< Eigen::Vector4i, utility::Vector4i_allocator > tetras_
List of tetras denoted by the index of points forming the tetra.
Definition: TetraMesh.h:117
TetraMesh & Clear() override
Clear all elements in the geometry.
Definition: TetraMesh.cpp:42
Tetra mesh contains vertices and tetrahedra represented by the indices to the vertices.
Definition: TetraMesh.h:48
char type
Definition: FilePCD.cpp:60
static std::tuple< std::shared_ptr< TetraMesh >, std::vector< size_t > > CreateFromPointCloud(const PointCloud &point_cloud)
Function that creates a tetrahedral mesh (TetraMeshFactory.cpp). from a point cloud.
Definition: TetraMeshFactory.cpp:36
Definition: PinholeCameraIntrinsic.cpp:35
GeometryType
Specifies possible geometry types.
Definition: Geometry.h:42
TetraMesh(Geometry::GeometryType type)
Definition: TetraMesh.h:113
std::vector< Eigen::Vector3d > vertices_
Vertex coordinates.
Definition: MeshBase.h:148