OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::Halfedge_index Class Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/SurfaceMesh.hpp>

Public Member Functions

 Halfedge_index ()
Face_index face () const
unsigned char side () const
bool is_invalid () const
bool operator!= (const Halfedge_index &rhs) const
bool operator== (const Halfedge_index &rhs) const

Private Member Functions

 Halfedge_index (int face_idx, unsigned char side_idx)

Private Attributes

Face_index m_face
unsigned char m_side

Friends

class SurfaceMesh

Detailed Description

Constructor & Destructor Documentation

◆ Halfedge_index() [1/2]

Slic3r::Halfedge_index::Halfedge_index ( )
inline
26: m_face(Face_index(-1)), m_side(0) {}
unsigned char m_side
Definition SurfaceMesh.hpp:37
Face_index m_face
Definition SurfaceMesh.hpp:36

References m_face, and m_side.

Referenced by operator!=(), and operator==().

Here is the caller graph for this function:

◆ Halfedge_index() [2/2]

Slic3r::Halfedge_index::Halfedge_index ( int face_idx,
unsigned char side_idx )
inlineprivate
34: m_face(Face_index(face_idx)), m_side(side_idx) {}

References m_face, and m_side.

Member Function Documentation

◆ face()

Face_index Slic3r::Halfedge_index::face ( ) const
inline
27{ return m_face; }

References m_face.

◆ is_invalid()

bool Slic3r::Halfedge_index::is_invalid ( ) const
inline
29{ return int(m_face) < 0; }

References m_face.

Referenced by Slic3r::SurfaceMesh::degree(), Slic3r::SurfaceMesh::face(), Slic3r::SurfaceMesh::halfedge(), Slic3r::SurfaceMesh::next(), Slic3r::SurfaceMesh::next_around_source(), Slic3r::SurfaceMesh::opposite(), Slic3r::SurfaceMesh::prev(), Slic3r::SurfaceMesh::prev_around_target(), Slic3r::SurfaceMesh::source(), and Slic3r::SurfaceMesh::target().

Here is the caller graph for this function:

◆ operator!=()

bool Slic3r::Halfedge_index::operator!= ( const Halfedge_index & rhs) const
inline
30{ return ! ((*this) == rhs); }

References Halfedge_index().

Here is the call graph for this function:

◆ operator==()

bool Slic3r::Halfedge_index::operator== ( const Halfedge_index & rhs) const
inline
31{ return m_face == rhs.m_face && m_side == rhs.m_side; }

References Halfedge_index(), m_face, and m_side.

Here is the call graph for this function:

◆ side()

unsigned char Slic3r::Halfedge_index::side ( ) const
inline
28{ return m_side; }

References m_side.

◆ SurfaceMesh

friend class SurfaceMesh
friend

References SurfaceMesh.

Referenced by SurfaceMesh.

Member Data Documentation

◆ m_face

◆ m_side


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