ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::geometry::HalfEdgeTriangleMesh::HalfEdge Class Reference

HalfEdge class contains vertex, triangle info about a half edge, as well as relations of next and twin half edge. More...

#include <HalfEdgeTriangleMesh.h>

Public Member Functions

 HalfEdge ()
 Default Constructor. More...
 
 HalfEdge (const Eigen::Vector2i &vertex_indices, int triangle_index, int next, int twin)
 
bool IsBoundary () const
 

Public Attributes

int next_
 Index of the next HalfEdge in the same triangle. More...
 
int twin_
 Index of the twin HalfEdge. More...
 
Eigen::Vector2i vertex_indices_
 Index of the ordered vertices forming this half edge. More...
 
int triangle_index_
 Index of the triangle containing this half edge. More...
 

Detailed Description

HalfEdge class contains vertex, triangle info about a half edge, as well as relations of next and twin half edge.

Definition at line 30 of file HalfEdgeTriangleMesh.h.

Constructor & Destructor Documentation

◆ HalfEdge() [1/2]

cloudViewer::geometry::HalfEdgeTriangleMesh::HalfEdge::HalfEdge ( )
inline

Default Constructor.

Initializes all members of the instance with invalid values.

Definition at line 35 of file HalfEdgeTriangleMesh.h.

◆ HalfEdge() [2/2]

cloudViewer::geometry::HalfEdgeTriangleMesh::HalfEdge::HalfEdge ( const Eigen::Vector2i &  vertex_indices,
int  triangle_index,
int  next,
int  twin 
)

Member Function Documentation

◆ IsBoundary()

bool cloudViewer::geometry::HalfEdgeTriangleMesh::HalfEdge::IsBoundary ( ) const
inline

Returns true iff the half edge is the boundary (has not twin, i.e. twin index == -1).

Definition at line 46 of file HalfEdgeTriangleMesh.h.

Referenced by cloudViewer::geometry::pybind_half_edge().

Member Data Documentation

◆ next_

int cloudViewer::geometry::HalfEdgeTriangleMesh::HalfEdge::next_

Index of the next HalfEdge in the same triangle.

Definition at line 50 of file HalfEdgeTriangleMesh.h.

Referenced by cloudViewer::geometry::pybind_half_edge().

◆ triangle_index_

int cloudViewer::geometry::HalfEdgeTriangleMesh::HalfEdge::triangle_index_

Index of the triangle containing this half edge.

Definition at line 56 of file HalfEdgeTriangleMesh.h.

Referenced by cloudViewer::geometry::pybind_half_edge().

◆ twin_

int cloudViewer::geometry::HalfEdgeTriangleMesh::HalfEdge::twin_

Index of the twin HalfEdge.

Definition at line 52 of file HalfEdgeTriangleMesh.h.

Referenced by cloudViewer::geometry::pybind_half_edge().

◆ vertex_indices_

Eigen::Vector2i cloudViewer::geometry::HalfEdgeTriangleMesh::HalfEdge::vertex_indices_

Index of the ordered vertices forming this half edge.

Definition at line 54 of file HalfEdgeTriangleMesh.h.

Referenced by cloudViewer::geometry::pybind_half_edge().


The documentation for this class was generated from the following file: