ON_MeshTopologyFace Struct Reference

#include <opennurbs_mesh.h>

Public Member Functions

bool IsQuad () const
 A topological mesh face is a valid quad if m_topei[0], m_topei[1], m_topei[2], and m_topei[3] are distinct edges. More...
 
bool IsTriangle () const
 A topological mesh face is a valid triangle if m_topei[0], m_topei[1], m_topei[2] are distinct edges and m_topei[3]=m_topei[2]. More...
 
bool IsValid () const
 A topological mesh face is valid if m_topei[0], m_topei[1], and m_topei[2] are mutually distinct, and m_topei[3] is either equal to m_topei[2] or mutually distinct from the first three indices. More...
 

Public Attributes

char m_reve [4]
 
int m_topei [4]
 

Member Function Documentation

◆ IsQuad()

bool ON_MeshTopologyFace::IsQuad ( ) const

A topological mesh face is a valid quad if m_topei[0], m_topei[1], m_topei[2], and m_topei[3] are distinct edges.

Returns
True if face is a quad.

◆ IsTriangle()

bool ON_MeshTopologyFace::IsTriangle ( ) const

A topological mesh face is a valid triangle if m_topei[0], m_topei[1], m_topei[2] are distinct edges and m_topei[3]=m_topei[2].

Returns
True if face is a triangle.

◆ IsValid()

bool ON_MeshTopologyFace::IsValid ( ) const

A topological mesh face is valid if m_topei[0], m_topei[1], and m_topei[2] are mutually distinct, and m_topei[3] is either equal to m_topei[2] or mutually distinct from the first three indices.

Returns
True if face is valid.

Member Data Documentation

◆ m_reve

char ON_MeshTopologyFace::m_reve[4]

◆ m_topei

int ON_MeshTopologyFace::m_topei[4]