Open3D (C++ API)  0.19.0
Loading...
Searching...
No Matches
open3d::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.
 HalfEdge (const Eigen::Vector2i &vertex_indices, int triangle_index, int next, int twin)
bool IsBoundary () const

Data Fields

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

Detailed Description

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

Constructor & Destructor Documentation

◆ HalfEdge() [1/2]

open3d::geometry::HalfEdgeTriangleMesh::HalfEdge::HalfEdge ( )
inline

Default Constructor.

Initializes all members of the instance with invalid values.

◆ HalfEdge() [2/2]

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

Member Function Documentation

◆ IsBoundary()

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

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

Field Documentation

◆ next_

int open3d::geometry::HalfEdgeTriangleMesh::HalfEdge::next_

Index of the next HalfEdge in the same triangle.

◆ triangle_index_

int open3d::geometry::HalfEdgeTriangleMesh::HalfEdge::triangle_index_

Index of the triangle containing this half edge.

◆ twin_

int open3d::geometry::HalfEdgeTriangleMesh::HalfEdge::twin_

Index of the twin HalfEdge.

◆ vertex_indices_

Eigen::Vector2i open3d::geometry::HalfEdgeTriangleMesh::HalfEdge::vertex_indices_

Index of the ordered vertices forming this half edge.


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