Rhino C++ API
8.13
|
#include <opennurbs_subd.h>
Public Member Functions | |
ON_SubDComponentParameter ()=default | |
ON_SubDComponentParameter (const class ON_SubDEdge *e, double p, const class ON_SubDFace *active_face) | |
ON_SubDComponentParameter (const class ON_SubDFace *quad_face, double quad_s, double quad_t) | |
ON_SubDComponentParameter (const class ON_SubDFacePtr quad_fptr, double quad_s, double quad_t) | |
ON_SubDComponentParameter (const class ON_SubDVertex *v, const class ON_SubDEdge *active_edge, const class ON_SubDFace *active_face) | |
ON_SubDComponentParameter (const ON_SubDComponentParameter &)=default | |
ON_SubDComponentParameter (const ON_SubDEdgePtr eptr, double p, const class ON_SubDFace *active_face) | |
ON_SubDComponentParameter (const ON_SubDFace *face, ON_SubDFaceParameter fp) | |
ON_SubDComponentParameter (const ON_SubDFacePtr fptr, ON_SubDFaceParameter fp) | |
ON_SubDComponentParameter (const ON_SubDVertexPtr vptr, const class ON_SubDEdge *active_edge, const class ON_SubDFace *active_face) | |
ON_SubDComponentParameter (ON_SubDComponentId cid) | |
ON_SubDComponentParameter (ON_SubDComponentId edge_id, double p, ON_SubDComponentId active_face_id) | |
ON_SubDComponentParameter (ON_SubDComponentId face_id, ON_SubDFaceParameter fp) | |
ON_SubDComponentParameter (ON_SubDComponentId vertex_id, ON_SubDComponentId active_edge_id, ON_SubDComponentId active_face_id) | |
ON_SubDComponentParameter (ON_SubDComponentPtr cptr) | |
~ON_SubDComponentParameter ()=default | |
unsigned | ComponentDirection () const |
unsigned | ComponentId () const |
const ON_SubDComponentId | ComponentIdAndType () const |
const ON_SubDComponentPtr | ComponentPtr (const class ON_SubD &subd) const |
If the subd has a component with the same type and id, then that component is returned. More... | |
const ON_SubDComponentPtr | ComponentPtr (const class ON_SubD *subd) const |
If the subd has a component with the same type and id, then that component is returned. More... | |
ON_SubDComponentPtr::Type | ComponentType () const |
const ON_SubDEdge * | Edge (const ON_SubD *subd) const |
If this parameter references an edge and the subd has an edge with this->ComponentId(), then that edge is returned. More... | |
const ON_SubDComponentId | EdgeFace () const |
In some cases, a face attached to this parameter's edge is required. In that case, this face is used. More... | |
unsigned | EdgeId () const |
double | EdgeParameter () const |
Returns a parameter between 0 and 1 that identifies a point on the edge. This is always an intrisic parameter; ComponentDirection() is not taken into account. If the reference component is not an edge, then ON_DBL_QNAN is returned. More... | |
const ON_SubDEdgePtr | EdgePtr (const ON_SubD *subd) const |
If this parameter references an edge and the subd has an edge with this->ComponentId(), then that edge is returned. More... | |
const ON_SubDFace * | Face (const ON_SubD *subd) const |
If this parameter references a face and the subd has a face with this->ComponentId(), then that face is returned. More... | |
unsigned | FaceId () const |
const ON_SubDFaceParameter | FaceParameter () const |
const ON_SubDFacePtr | FacePtr (const ON_SubD *subd) const |
If this parameter references a face and the subd has a face with this->ComponentId(), then that face is returned. More... | |
bool | IsEdgeParameter () const |
bool | IsFaceParameter () const |
bool | IsSet () const |
bool | IsVertexParameter () const |
ON_SubDComponentParameter & | operator= (const ON_SubDComponentParameter &)=default |
const ON_wString | ToString (bool bUnsetIsEmptyString) const |
const ON_SubDVertex * | Vertex (const ON_SubD *subd) const |
If this parameter references a vertex and the subd has a vertex with this->ComponentId(), then that vertex is returned. More... | |
const ON_SubDComponentId | VertexEdge () const |
In some cases, an edge attached to this parameter's vertex is required. In that case, this edge is used. More... | |
const ON_SubDComponentId | VertexFace () const |
In some cases, a face attached to this parameter's vertex is required. In these cases this face is used. More... | |
unsigned | VertexId () const |
const ON_SubDVertexPtr | VertexPtr (const ON_SubD *subd) const |
If this parameter references a vertex and the subd has a vertex with this->ComponentId(), then that vertex is returned. More... | |
Static Public Member Functions | |
static int | Compare (const ON_SubDComponentParameter *lhs, const ON_SubDComponentParameter *rhs) |
Dictionary compares component type, component id, component direction, first parameter, second parameter and safely sorts nullptr to end. More... | |
static int | CompareAll (const ON_SubDComponentParameter &lhs, const ON_SubDComponentParameter &rhs) |
Dictionary compares component type, component id, component direction, first parameter, second parameter. More... | |
static int | CompareComponentTypeAndId (const ON_SubDComponentParameter &lhs, const ON_SubDComponentParameter &rhs) |
Dictionary compares component type and component id. More... | |
static int | CompareComponentTypeAndIdAndDirection (const ON_SubDComponentParameter &lhs, const ON_SubDComponentParameter &rhs) |
Dictionary compares component type, component id, and component dir. More... | |
Static Public Attributes | |
static const ON_SubDComponentParameter | Unset |
|
default |
|
default |
|
default |
ON_SubDComponentParameter::ON_SubDComponentParameter | ( | ON_SubDComponentId | cid | ) |
ON_SubDComponentParameter::ON_SubDComponentParameter | ( | ON_SubDComponentPtr | cptr | ) |
ON_SubDComponentParameter::ON_SubDComponentParameter | ( | ON_SubDComponentId | vertex_id, |
ON_SubDComponentId | active_edge_id, | ||
ON_SubDComponentId | active_face_id | ||
) |
ON_SubDComponentParameter::ON_SubDComponentParameter | ( | const class ON_SubDVertex * | v, |
const class ON_SubDEdge * | active_edge, | ||
const class ON_SubDFace * | active_face | ||
) |
ON_SubDComponentParameter::ON_SubDComponentParameter | ( | const ON_SubDVertexPtr | vptr, |
const class ON_SubDEdge * | active_edge, | ||
const class ON_SubDFace * | active_face | ||
) |
ON_SubDComponentParameter::ON_SubDComponentParameter | ( | ON_SubDComponentId | edge_id, |
double | p, | ||
ON_SubDComponentId | active_face_id | ||
) |
ON_SubDComponentParameter::ON_SubDComponentParameter | ( | const class ON_SubDEdge * | e, |
double | p, | ||
const class ON_SubDFace * | active_face | ||
) |
e | |
p | 0 <= p <= 1. |
active_face | nullptr or a face attached to the edge. |
ON_SubDComponentParameter::ON_SubDComponentParameter | ( | const ON_SubDEdgePtr | eptr, |
double | p, | ||
const class ON_SubDFace * | active_face | ||
) |
eptr | |
p | 0 <= p <= 1. NOTE WELL: p is relative to the direction of eptr. |
active_face | nullptr or a face attached to the edge. |
ON_SubDComponentParameter::ON_SubDComponentParameter | ( | ON_SubDComponentId | face_id, |
ON_SubDFaceParameter | fp | ||
) |
ON_SubDComponentParameter::ON_SubDComponentParameter | ( | const ON_SubDFace * | face, |
ON_SubDFaceParameter | fp | ||
) |
ON_SubDComponentParameter::ON_SubDComponentParameter | ( | const ON_SubDFacePtr | fptr, |
ON_SubDFaceParameter | fp | ||
) |
ON_SubDComponentParameter::ON_SubDComponentParameter | ( | const class ON_SubDFace * | quad_face, |
double | quad_s, | ||
double | quad_t | ||
) |
ON_SubDComponentParameter::ON_SubDComponentParameter | ( | const class ON_SubDFacePtr | quad_fptr, |
double | quad_s, | ||
double | quad_t | ||
) |
|
static |
Dictionary compares component type, component id, component direction, first parameter, second parameter and safely sorts nullptr to end.
lhs | |
rhs |
|
static |
Dictionary compares component type, component id, component direction, first parameter, second parameter.
lhs | |
rhs |
|
static |
Dictionary compares component type and component id.
lhs | |
rhs |
|
static |
Dictionary compares component type, component id, and component dir.
lhs | |
rhs |
unsigned ON_SubDComponentParameter::ComponentDirection | ( | ) | const |
unsigned ON_SubDComponentParameter::ComponentId | ( | ) | const |
const ON_SubDComponentId ON_SubDComponentParameter::ComponentIdAndType | ( | ) | const |
const ON_SubDComponentPtr ON_SubDComponentParameter::ComponentPtr | ( | const class ON_SubD & | subd | ) | const |
If the subd has a component with the same type and id, then that component is returned.
subd |
const ON_SubDComponentPtr ON_SubDComponentParameter::ComponentPtr | ( | const class ON_SubD * | subd | ) | const |
If the subd has a component with the same type and id, then that component is returned.
subd |
ON_SubDComponentPtr::Type ON_SubDComponentParameter::ComponentType | ( | ) | const |
const ON_SubDEdge* ON_SubDComponentParameter::Edge | ( | const ON_SubD * | subd | ) | const |
If this parameter references an edge and the subd has an edge with this->ComponentId(), then that edge is returned.
subd |
const ON_SubDComponentId ON_SubDComponentParameter::EdgeFace | ( | ) | const |
In some cases, a face attached to this parameter's edge is required. In that case, this face is used.
unsigned ON_SubDComponentParameter::EdgeId | ( | ) | const |
double ON_SubDComponentParameter::EdgeParameter | ( | ) | const |
Returns a parameter between 0 and 1 that identifies a point on the edge. This is always an intrisic parameter; ComponentDirection() is not taken into account. If the reference component is not an edge, then ON_DBL_QNAN is returned.
const ON_SubDEdgePtr ON_SubDComponentParameter::EdgePtr | ( | const ON_SubD * | subd | ) | const |
If this parameter references an edge and the subd has an edge with this->ComponentId(), then that edge is returned.
subd |
const ON_SubDFace* ON_SubDComponentParameter::Face | ( | const ON_SubD * | subd | ) | const |
If this parameter references a face and the subd has a face with this->ComponentId(), then that face is returned.
subd |
unsigned ON_SubDComponentParameter::FaceId | ( | ) | const |
const ON_SubDFaceParameter ON_SubDComponentParameter::FaceParameter | ( | ) | const |
const ON_SubDFacePtr ON_SubDComponentParameter::FacePtr | ( | const ON_SubD * | subd | ) | const |
If this parameter references a face and the subd has a face with this->ComponentId(), then that face is returned.
subd |
bool ON_SubDComponentParameter::IsEdgeParameter | ( | ) | const |
bool ON_SubDComponentParameter::IsFaceParameter | ( | ) | const |
bool ON_SubDComponentParameter::IsSet | ( | ) | const |
bool ON_SubDComponentParameter::IsVertexParameter | ( | ) | const |
|
default |
const ON_wString ON_SubDComponentParameter::ToString | ( | bool | bUnsetIsEmptyString | ) | const |
const ON_SubDVertex* ON_SubDComponentParameter::Vertex | ( | const ON_SubD * | subd | ) | const |
If this parameter references a vertex and the subd has a vertex with this->ComponentId(), then that vertex is returned.
subd |
const ON_SubDComponentId ON_SubDComponentParameter::VertexEdge | ( | ) | const |
In some cases, an edge attached to this parameter's vertex is required. In that case, this edge is used.
const ON_SubDComponentId ON_SubDComponentParameter::VertexFace | ( | ) | const |
In some cases, a face attached to this parameter's vertex is required. In these cases this face is used.
unsigned ON_SubDComponentParameter::VertexId | ( | ) | const |
const ON_SubDVertexPtr ON_SubDComponentParameter::VertexPtr | ( | const ON_SubD * | subd | ) | const |
If this parameter references a vertex and the subd has a vertex with this->ComponentId(), then that vertex is returned.
subd |
ON_SubDComponentId ON_SubDComponentParameter::e_active_f |
edge's active face
double ON_SubDComponentParameter::eptr_s |
Relative with respect to m_cid.Direction().
double ON_SubDComponentParameter::f_corner_s |
0 <= f_corner_s <= 1/2
double ON_SubDComponentParameter::f_corner_t |
0 <= f_corner_t <= 1/2
|
static |
ON_SubDComponentId ON_SubDComponentParameter::v_active_e |
vertex's active edge
ON_SubDComponentId ON_SubDComponentParameter::v_active_f |
vertex's active face