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:177
HalfEdgeTriangleMesh operator+(const HalfEdgeTriangleMesh &mesh) const
Definition: HalfEdgeTriangleMesh.cpp:334
Definition: Geometry.h:32
void RemoveDuplicatedTriangles() override
Definition: HalfEdgeTriangleMesh.cpp:301
std::vector< HalfEdge > half_edges_
Definition: HalfEdgeTriangleMesh.h:98
int NextHalfEdgeOnBoundary(int curr_half_edge_index) const
Definition: HalfEdgeTriangleMesh.cpp:235
std::vector< std::vector< int > > GetBoundaries() const
Returns a vector of boundaries. A boundary is a vector of vertices.
Definition: HalfEdgeTriangleMesh.cpp:211
HalfEdge()
Definition: HalfEdgeTriangleMesh.h:42
std::vector< std::vector< int > > ordered_half_edge_from_vertex_
Definition: HalfEdgeTriangleMesh.h:102
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:265
void RemoveDuplicatedVertices() override
Definition: HalfEdgeTriangleMesh.cpp:293
void Clear() override
Clear all data in HalfEdgeTriangleMesh.
Definition: HalfEdgeTriangleMesh.cpp:44
char type
Definition: FilePCD.cpp:56
long vertex_index
Definition: FilePLY.cpp:44
int NextHalfEdgeFromVertex(int init_half_edge_index) const
Definition: HalfEdgeTriangleMesh.cpp:167
int triangle_index_
Definition: HalfEdgeTriangleMesh.h:57
Definition: PinholeCameraIntrinsic.cpp:34
GeometryType
Definition: Geometry.h:34
HalfEdgeTriangleMesh & operator+=(const HalfEdgeTriangleMesh &mesh)
Definition: HalfEdgeTriangleMesh.cpp:325
int next_
Definition: HalfEdgeTriangleMesh.h:51
HalfEdgeTriangleMesh(Geometry::GeometryType type)
Definition: HalfEdgeTriangleMesh.h:95
int twin_
Definition: HalfEdgeTriangleMesh.h:53
Definition: HalfEdgeTriangleMesh.h:40
bool ComputeHalfEdges()
Definition: HalfEdgeTriangleMesh.cpp:50
bool IsBoundary() const
Definition: HalfEdgeTriangleMesh.h:47
Definition: TriangleMesh.h:43
std::vector< int > BoundaryVerticesFromVertex(int vertex_index) const
Definition: HalfEdgeTriangleMesh.cpp:199
HalfEdgeTriangleMesh()
Definition: HalfEdgeTriangleMesh.h:61
void RemoveDegenerateTriangles() override
Definition: HalfEdgeTriangleMesh.cpp:317
void RemoveUnreferencedVertices() override
Definition: HalfEdgeTriangleMesh.cpp:309
bool HasHalfEdges() const
True if half-edges have already been computed.
Definition: HalfEdgeTriangleMesh.cpp:162