occ
Loading...
Searching...
No Matches
occ::geometry::HalfEdgeMesh Class Reference

#include <half_edge.h>

Public Member Functions

 HalfEdgeMesh (int nverts, const std::vector< uint32_t > &faces)
int n_halfedges () const
int n_faces () const
int n_vertices () const
int to (int h) const
int twin (int h) const
int next (int h) const
int prev (int h) const
int from (int h) const
int face (int h) const
int face_halfedge (int f) const
bool is_boundary (int h) const
bool edge_exists (int u, int v) const
int vertex_halfedge (int v) const
bool vertex_one_ring (int v, std::vector< int > &nbrs) const
bool flip (int e)
void export_faces (std::vector< uint32_t > &out) const
bool check_valid () const

Static Public Attributes

static constexpr int NONE = -1

Constructor & Destructor Documentation

◆ HalfEdgeMesh()

occ::geometry::HalfEdgeMesh::HalfEdgeMesh ( int nverts,
const std::vector< uint32_t > & faces )
inline

Member Function Documentation

◆ check_valid()

bool occ::geometry::HalfEdgeMesh::check_valid ( ) const
inline

◆ edge_exists()

bool occ::geometry::HalfEdgeMesh::edge_exists ( int u,
int v ) const
inline

◆ export_faces()

void occ::geometry::HalfEdgeMesh::export_faces ( std::vector< uint32_t > & out) const
inline

◆ face()

int occ::geometry::HalfEdgeMesh::face ( int h) const
inline

◆ face_halfedge()

int occ::geometry::HalfEdgeMesh::face_halfedge ( int f) const
inline

◆ flip()

bool occ::geometry::HalfEdgeMesh::flip ( int e)
inline

◆ from()

int occ::geometry::HalfEdgeMesh::from ( int h) const
inline

◆ is_boundary()

bool occ::geometry::HalfEdgeMesh::is_boundary ( int h) const
inline

◆ n_faces()

int occ::geometry::HalfEdgeMesh::n_faces ( ) const
inline

◆ n_halfedges()

int occ::geometry::HalfEdgeMesh::n_halfedges ( ) const
inline

◆ n_vertices()

int occ::geometry::HalfEdgeMesh::n_vertices ( ) const
inline

◆ next()

int occ::geometry::HalfEdgeMesh::next ( int h) const
inline

◆ prev()

int occ::geometry::HalfEdgeMesh::prev ( int h) const
inline

◆ to()

int occ::geometry::HalfEdgeMesh::to ( int h) const
inline

◆ twin()

int occ::geometry::HalfEdgeMesh::twin ( int h) const
inline

◆ vertex_halfedge()

int occ::geometry::HalfEdgeMesh::vertex_halfedge ( int v) const
inline

◆ vertex_one_ring()

bool occ::geometry::HalfEdgeMesh::vertex_one_ring ( int v,
std::vector< int > & nbrs ) const
inline

Member Data Documentation

◆ NONE

int occ::geometry::HalfEdgeMesh::NONE = -1
staticconstexpr

The documentation for this class was generated from the following file:
  • /home/runner/work/occ/occ/include/occ/geometry/half_edge.h