Rhino C++ API
8.14
|
A ON_SubDFaceCornerDex is a value that identifies a subd face corner. More...
#include <opennurbs_subd.h>
Public Member Functions | |
ON_SubDFaceCornerDex ()=default | |
ON_SubDFaceCornerDex (const ON_SubDFaceCornerDex &)=default | |
ON_SubDFaceCornerDex (unsigned face_corner_index, unsigned face_edge_count) | |
~ON_SubDFaceCornerDex ()=default | |
unsigned | CornerIndex () const |
const ON_SubDVertex * | CornerVertex (const class ON_SubDFace *face) const |
Get the vertex at the corner of the face identified by this. If this is not set, face is nullptr, or face->EdgeCount() != this->EdgeCount(), then nullptr is returned. More... | |
unsigned | EdgeCount () const |
const ON_SubDEdgePtr | EdgePtr (const class ON_SubDFace *face, unsigned corner_edge_dex) const |
Get the edge face->EdgePtr(this->CornerIndex()). If this is not set, face is nullptr, or face->EdgeCount() != this->EdgeCount(), then ON_SubDEdgePtr::Null is returned. More... | |
bool | IsNotSet () const |
bool | IsQuadFace () const |
| |
bool | IsSet () const |
bool | IsValid (const class ON_SubDFace *face) const |
const ON_SubDEdgePtr | LeftEdgePtr (const class ON_SubDFace *face) const |
Get the edge of face that goes from the the previous face corner to this face corner. The edge pointer is oriented from PreviousCornerVertex() to CornerVertex(). If this is not set, face is nullptr, or face->EdgeCount() != this->EdgeCount(), then ON_SubDEdgePtr::Null is returned. More... | |
const ON_SubDFaceCornerDex | NextCornerDex () const |
NextCornerDex() = (this->CornerDex() + 1) % this->EdgeCount(). If this is not set, then ON_SubDFaceCornerDex::Unset is returned. More... | |
const ON_SubDVertex * | NextCornerVertex (const class ON_SubDFace *face) const |
Get the vertex at the corner of the face identified by this->NextCornerDex(). If this is not set, face is nullptr, or face->EdgeCount() != this->EdgeCount(), then nullptr is returned. More... | |
ON_SubDFaceCornerDex & | operator= (const ON_SubDFaceCornerDex &)=default |
const ON_SubDFaceCornerDex | PreviousCornerDex () const |
NextCornerDex() = (this->CornerDex() + this->EdgeCount() - 1) % this->EdgeCount(). If this is not set, then ON_SubDFaceCornerDex::Unset is returned. More... | |
const ON_SubDVertex * | PreviousCornerVertex (const class ON_SubDFace *face) const |
Get the vertex at the corner of the face identified by this->PreviousCornerDex(). If this is not set, face is nullptr, or face->EdgeCount() != this->EdgeCount(), then nullptr is returned. More... | |
const ON_SubDEdgePtr | RightEdgePtr (const class ON_SubDFace *face) const |
Get the edge of face that goes from the this face corner to the next face corner. The edge pointer is oriented from CornerVertex() to NextCornerVertex(). If this is not set, face is nullptr, or face->EdgeCount() != this->EdgeCount(), then ON_SubDEdgePtr::Null is returned. More... | |
Static Public Member Functions | |
static int | Compare (const ON_SubDFaceCornerDex *lhs, const ON_SubDFaceCornerDex *rhs) |
Uses ON_SubDFaceCornerDex::CompareAll to dictionary sort nonnull inputs and safely sorts nullptr to the end. More... | |
static int | CompareAll (const ON_SubDFaceCornerDex &lhs, const ON_SubDFaceCornerDex &rhs) |
Dictionary compares EdgeCount() then CornerIndex(). Any set value < any unset value. More... | |
Static Public Attributes | |
static const ON_SubDFaceCornerDex | Unset |
ON_SubDFaceCorner::Unset has CornerIndex()=0 and EdgeCount()=0. More... | |
A ON_SubDFaceCornerDex is a value that identifies a subd face corner.
|
default |
|
default |
|
default |
ON_SubDFaceCornerDex::ON_SubDFaceCornerDex | ( | unsigned | face_corner_index, |
unsigned | face_edge_count | ||
) |
|
static |
Uses ON_SubDFaceCornerDex::CompareAll to dictionary sort nonnull inputs and safely sorts nullptr to the end.
lhs | |
rhs |
|
static |
Dictionary compares EdgeCount() then CornerIndex(). Any set value < any unset value.
lhs | |
rhs |
unsigned ON_SubDFaceCornerDex::CornerIndex | ( | ) | const |
const ON_SubDVertex* ON_SubDFaceCornerDex::CornerVertex | ( | const class ON_SubDFace * | face | ) | const |
Get the vertex at the corner of the face identified by this. If this is not set, face is nullptr, or face->EdgeCount() != this->EdgeCount(), then nullptr is returned.
face |
unsigned ON_SubDFaceCornerDex::EdgeCount | ( | ) | const |
const ON_SubDEdgePtr ON_SubDFaceCornerDex::EdgePtr | ( | const class ON_SubDFace * | face, |
unsigned | corner_edge_dex | ||
) | const |
Get the edge face->EdgePtr(this->CornerIndex()). If this is not set, face is nullptr, or face->EdgeCount() != this->EdgeCount(), then ON_SubDEdgePtr::Null is returned.
face | |
corner_edge_dex | 0=edge entering the corner = this->LeftEdgePtr(face); 1=edge leaving the corner |
bool ON_SubDFaceCornerDex::IsNotSet | ( | ) | const |
bool ON_SubDFaceCornerDex::IsQuadFace | ( | ) | const |
bool ON_SubDFaceCornerDex::IsSet | ( | ) | const |
bool ON_SubDFaceCornerDex::IsValid | ( | const class ON_SubDFace * | face | ) | const |
face |
const ON_SubDEdgePtr ON_SubDFaceCornerDex::LeftEdgePtr | ( | const class ON_SubDFace * | face | ) | const |
Get the edge of face that goes from the the previous face corner to this face corner. The edge pointer is oriented from PreviousCornerVertex() to CornerVertex(). If this is not set, face is nullptr, or face->EdgeCount() != this->EdgeCount(), then ON_SubDEdgePtr::Null is returned.
face |
const ON_SubDFaceCornerDex ON_SubDFaceCornerDex::NextCornerDex | ( | ) | const |
NextCornerDex() = (this->CornerDex() + 1) % this->EdgeCount(). If this is not set, then ON_SubDFaceCornerDex::Unset is returned.
const ON_SubDVertex* ON_SubDFaceCornerDex::NextCornerVertex | ( | const class ON_SubDFace * | face | ) | const |
Get the vertex at the corner of the face identified by this->NextCornerDex(). If this is not set, face is nullptr, or face->EdgeCount() != this->EdgeCount(), then nullptr is returned.
face |
|
default |
const ON_SubDFaceCornerDex ON_SubDFaceCornerDex::PreviousCornerDex | ( | ) | const |
NextCornerDex() = (this->CornerDex() + this->EdgeCount() - 1) % this->EdgeCount(). If this is not set, then ON_SubDFaceCornerDex::Unset is returned.
const ON_SubDVertex* ON_SubDFaceCornerDex::PreviousCornerVertex | ( | const class ON_SubDFace * | face | ) | const |
Get the vertex at the corner of the face identified by this->PreviousCornerDex(). If this is not set, face is nullptr, or face->EdgeCount() != this->EdgeCount(), then nullptr is returned.
face |
const ON_SubDEdgePtr ON_SubDFaceCornerDex::RightEdgePtr | ( | const class ON_SubDFace * | face | ) | const |
Get the edge of face that goes from the this face corner to the next face corner. The edge pointer is oriented from CornerVertex() to NextCornerVertex(). If this is not set, face is nullptr, or face->EdgeCount() != this->EdgeCount(), then ON_SubDEdgePtr::Null is returned.
face |
|
static |
ON_SubDFaceCorner::Unset has CornerIndex()=0 and EdgeCount()=0.