30 #include <unordered_map> 43 HalfEdge(
const Eigen::Vector2i &vertex_indices,
83 void Clear()
override;
std::vector< int > BoundaryHalfEdgesFromVertex(int vertex_index) const
Definition: HalfEdgeTriangleMesh.cpp:176
HalfEdgeTriangleMesh operator+(const HalfEdgeTriangleMesh &mesh) const
Definition: HalfEdgeTriangleMesh.cpp:330
Definition: Geometry.h:32
void RemoveDuplicatedTriangles() override
Definition: HalfEdgeTriangleMesh.cpp:297
std::vector< HalfEdge > half_edges_
Definition: HalfEdgeTriangleMesh.h:97
int NextHalfEdgeOnBoundary(int curr_half_edge_index) const
Definition: HalfEdgeTriangleMesh.cpp:234
std::vector< std::vector< int > > GetBoundaries() const
Returns a vector of boundaries. A boundary is a vector of vertices.
Definition: HalfEdgeTriangleMesh.cpp:210
HalfEdge()
Definition: HalfEdgeTriangleMesh.h:42
std::vector< std::vector< int > > ordered_half_edge_from_vertex_
Definition: HalfEdgeTriangleMesh.h:101
Definition: HalfEdgeTriangleMesh.h:38
long triangle_index
Definition: FilePLY.cpp:117
Eigen::Vector2i vertex_indices_
Definition: HalfEdgeTriangleMesh.h:55
std::shared_ptr< HalfEdgeTriangleMesh > CreateHalfEdgeMeshFromMesh(const TriangleMesh &mesh)
Definition: HalfEdgeTriangleMesh.cpp:264
void RemoveDuplicatedVertices() override
Definition: HalfEdgeTriangleMesh.cpp:289
void Clear() override
Clear all data in HalfEdgeTriangleMesh.
Definition: HalfEdgeTriangleMesh.cpp:43
char type
Definition: FilePCD.cpp:56
long vertex_index
Definition: FilePLY.cpp:44
void RemoveNonManifoldVertices() override
Definition: HalfEdgeTriangleMesh.cpp:305
int NextHalfEdgeFromVertex(int init_half_edge_index) const
Definition: HalfEdgeTriangleMesh.cpp:166
int triangle_index_
Definition: HalfEdgeTriangleMesh.h:57
Definition: PinholeCameraIntrinsic.cpp:33
void RemoveNonManifoldTriangles() override
Definition: HalfEdgeTriangleMesh.cpp:313
GeometryType
Definition: Geometry.h:34
HalfEdgeTriangleMesh & operator+=(const HalfEdgeTriangleMesh &mesh)
Definition: HalfEdgeTriangleMesh.cpp:321
int next_
Definition: HalfEdgeTriangleMesh.h:51
HalfEdgeTriangleMesh(Geometry::GeometryType type)
Definition: HalfEdgeTriangleMesh.h:90
int twin_
Definition: HalfEdgeTriangleMesh.h:53
Definition: HalfEdgeTriangleMesh.h:40
bool ComputeHalfEdges()
Definition: HalfEdgeTriangleMesh.cpp:49
bool IsBoundary() const
Definition: HalfEdgeTriangleMesh.h:47
Definition: TriangleMesh.h:39
std::vector< int > BoundaryVerticesFromVertex(int vertex_index) const
Definition: HalfEdgeTriangleMesh.cpp:198
HalfEdgeTriangleMesh()
Definition: HalfEdgeTriangleMesh.h:61
bool HasHalfEdges() const
True if half-edges have already been computed.
Definition: HalfEdgeTriangleMesh.cpp:161