#include <opennurbs_subd.h>
|
static int | Compare (ON_SubDSectorId lhs, ON_SubDSectorId rhs) |
|
static int | CompareFromPointers (const ON_SubDSectorId *lhs, const ON_SubDSectorId *rhs) |
|
static int | CompareMinimumFaceId (ON_SubDSectorId lhs, ON_SubDSectorId rhs) |
|
static int | CompareMinimumFaceIdFromPointers (const ON_SubDSectorId *lhs, const ON_SubDSectorId *rhs) |
|
static int | CompareVertexId (ON_SubDSectorId lhs, ON_SubDSectorId rhs) |
|
static int | CompareVertexIdAndMinimumFaceId (ON_SubDSectorId lhs, ON_SubDSectorId rhs) |
|
static int | CompareVertexIdAndMinimumFaceIdFromPointers (const ON_SubDSectorId *lhs, const ON_SubDSectorId *rhs) |
|
static int | CompareVertexIdFromPointers (const ON_SubDSectorId *lhs, const ON_SubDSectorId *rhs) |
|
static const ON_SubDSectorId | Create (const class ON_SubDVertex *vertex, const class ON_SubDFace *face) |
|
static const ON_SubDSectorId | CreateFromIds (unsigned int vertex_id, unsigned int minimum_face_id) |
|
◆ ON_SubDSectorId() [1/2]
ON_SubDSectorId::ON_SubDSectorId |
( |
| ) |
|
|
default |
◆ ~ON_SubDSectorId()
ON_SubDSectorId::~ON_SubDSectorId |
( |
| ) |
|
|
default |
◆ ON_SubDSectorId() [2/2]
◆ Compare()
◆ CompareFromPointers()
◆ CompareMinimumFaceId()
◆ CompareMinimumFaceIdFromPointers()
◆ CompareVertexId()
◆ CompareVertexIdAndMinimumFaceId()
◆ CompareVertexIdAndMinimumFaceIdFromPointers()
◆ CompareVertexIdFromPointers()
◆ Create()
No initialized construction for performance reasons. If initialization is required, then use sector_id = ON_SubDSectorId::Zero or sector_id = ON_SubDSectorId::Create(...). Description: Create a sector id from a vertex and face in the sector. A sector id uniquely identifies a sector in the context of a single ON_SubD. Parameters: vertex - [in] face - [in] A face in the sector. If vertex->IsSingleSectorVertex() is true, then face can be nullptr. Returns: If the vertex and face are not nullptr and the face is in a sector of the vertex, a nonzero zector id is returned. Otherwise ON_SubDSectorId::Invalid is returned.
◆ CreateFromIds()
static const ON_SubDSectorId ON_SubDSectorId::CreateFromIds |
( |
unsigned int |
vertex_id, |
|
|
unsigned int |
minimum_face_id |
|
) |
| |
|
static |
◆ IsSet()
bool ON_SubDSectorId::IsSet |
( |
| ) |
const |
◆ IsZero()
bool ON_SubDSectorId::IsZero |
( |
| ) |
const |
Returns: True if this sector id is zero.
◆ MinimumFaceId()
const unsigned int ON_SubDSectorId::MinimumFaceId |
( |
| ) |
const |
Returns: The sector's minimum face id.
◆ operator=()
◆ SectorFaceCount()
const unsigned int ON_SubDSectorId::SectorFaceCount |
( |
| ) |
const |
Returns: Number of faces in the sector.
◆ ToString() [1/2]
const ON_wString ON_SubDSectorId::ToString |
( |
bool |
bVerbose | ) |
const |
◆ ToString() [2/2]
wchar_t* ON_SubDSectorId::ToString |
( |
wchar_t * |
s, |
|
|
size_t |
s_capacity |
|
) |
| const |
Parameters: s - [in] beginning of string buffer s_capacity wchar_t element capacity of the string buffer Returns: nullptr if ther is not enough room in the buffer. Otherwise a pointer to the null terminator of the returned string. Remarks The returned string will be "0" for a zero sector id, "X" for an invalid sector id, or "vX.fYxN" where X is VertexId(), Y is MinimumFaceId(), and N is the SectorFaceCount().
◆ VertexId()
const unsigned int ON_SubDSectorId::VertexId |
( |
| ) |
const |
Returns: The sector's center vertex id. Remarks: Either SectorId(), VertexId(), and MinimumFaceId() are all zero or are all nonzero.
◆ Invalid
◆ Zero