SketchUp SDK
|
Go to the source code of this file.
Functions | |
SU_EXPORT SUEntityRef | SUEdgeUseToEntity (SUEdgeUseRef edgeuse) |
Converts from an SUEdgeUseRef to an SUEntityRef. This is essentially an upcast operation. More... | |
SU_EXPORT SUEdgeUseRef | SUEdgeUseFromEntity (SUEntityRef entity) |
Converts from an SUEntityRef to an SUEdgeUseRef. This is essentially a downcast operation so the given SUEntityRef must be convertible to an SUEdgeUseRef. More... | |
SU_RESULT | SUEdgeUseGetEdge (SUEdgeUseRef edgeuse, SUEdgeRef *edge) |
Retrieves the edge object the EdgeUse object belongs to. More... | |
SU_RESULT | SUEdgeUseGetLoop (SUEdgeUseRef edgeuse, SULoopRef *loop) |
Retrieves the loop object the EdgeUse object is associated with. More... | |
SU_RESULT | SUEdgeUseGetFace (SUEdgeUseRef edgeuse, SUFaceRef *face) |
Retrieves the face object the EdgeUse object is associated with. More... | |
SU_RESULT | SUEdgeUseGetNumPartners (SUEdgeUseRef edgeuse, size_t *count) |
Retrieves the number of EdgeUse objects that are linked to the EdgeUse object. More... | |
SU_RESULT | SUEdgeUseGetPartners (SUEdgeUseRef edgeuse, size_t len, SUEdgeUseRef partners[], size_t *count) |
Retrieves the EdgeUse objects that are linked to the EdgeUse object. More... | |
SU_RESULT | SUEdgeUseIsReversed (SUEdgeUseRef edgeuse, bool *reversed) |
Retrieves a flag indicating whether this EdgeUse is traversed in the opposite direction as its corresponding edge. More... | |
SU_RESULT | SUEdgeUseGetPrevious (SUEdgeUseRef edgeuse, SUEdgeUseRef *prev_edgeuse) |
Retrieves the EdgeUse object just preceding an EdgeUse object in the collection of linked EdgeUses. More... | |
SU_RESULT | SUEdgeUseGetNext (SUEdgeUseRef edgeuse, SUEdgeUseRef *next_edgeuse) |
Retrieves the EdgeUse object just following an EdgeUse object in the collection of linked EdgeUses. More... | |
SU_RESULT | SUEdgeUseGetStartVertex (SUEdgeUseRef edgeuse, SUVertexRef *vertex) |
Retrieves the start vertex of an EdgeUse object. The start vertex of the EdgeUse object may not be the same as the start vertex of the corresponding edge of the EdgeUse object. An EdgeUse object is part of a face loop whose direction may be the reverse of the direction of the edge. More... | |
SU_RESULT | SUEdgeUseGetEndVertex (SUEdgeUseRef edgeuse, SUVertexRef *vertex) |
Retrieves the end vertex of an EdgeUse object. More... | |
SU_RESULT | SUEdgeUseGetStartVertexNormal (SUEdgeUseRef edgeuse, struct SUVector3D *normal) |
Retrieves the normal vector at the start vertex of an EdgeUse object. More... | |
SU_RESULT | SUEdgeUseGetEndVertexNormal (SUEdgeUseRef edgeuse, struct SUVector3D *normal) |
Retrieves the normal vector at the end vertex of an EdgeUse object. More... | |
SU_EXPORT SUEdgeUseRef SUEdgeUseFromEntity | ( | SUEntityRef | entity | ) |
Converts from an SUEntityRef to an SUEdgeUseRef. This is essentially a downcast operation so the given SUEntityRef must be convertible to an SUEdgeUseRef.
[in] | entity | The given entity reference. |
SU_RESULT SUEdgeUseGetEdge | ( | SUEdgeUseRef | edgeuse, |
SUEdgeRef * | edge | ||
) |
Retrieves the edge object the EdgeUse object belongs to.
[in] | edgeuse | The EdgeUse object. |
[out] | edge | The edge object retrieved. |
SU_RESULT SUEdgeUseGetEndVertex | ( | SUEdgeUseRef | edgeuse, |
SUVertexRef * | vertex | ||
) |
Retrieves the end vertex of an EdgeUse object.
The end vertex of the EdgeUse object may not be the same as the end vertex of the corresponding edge of the EdgeUse object. An EdgeUse object is part of a face loop whose direction may be the reverse of the direction of the edge.
[in] | edgeuse | The EdgeUse object. |
[out] | vertex | The vertex object retrieved. |
SU_RESULT SUEdgeUseGetEndVertexNormal | ( | SUEdgeUseRef | edgeuse, |
struct SUVector3D * | normal | ||
) |
Retrieves the normal vector at the end vertex of an EdgeUse object.
[in] | edgeuse | The EdgeUse object. |
[out] | normal | The normal vector retrieved. |
SU_RESULT SUEdgeUseGetFace | ( | SUEdgeUseRef | edgeuse, |
SUFaceRef * | face | ||
) |
Retrieves the face object the EdgeUse object is associated with.
[in] | edgeuse | The EdgeUse object. |
[out] | face | The face object retrieved. |
SU_RESULT SUEdgeUseGetLoop | ( | SUEdgeUseRef | edgeuse, |
SULoopRef * | loop | ||
) |
Retrieves the loop object the EdgeUse object is associated with.
[in] | edgeuse | The EdgeUse object. |
[out] | loop | The loop object retrieved. |
SU_RESULT SUEdgeUseGetNext | ( | SUEdgeUseRef | edgeuse, |
SUEdgeUseRef * | next_edgeuse | ||
) |
Retrieves the EdgeUse object just following an EdgeUse object in the collection of linked EdgeUses.
[in] | edgeuse | The EdgeUse object. |
[out] | next_edgeuse | The EdgeUse retrieved. |
SU_RESULT SUEdgeUseGetNumPartners | ( | SUEdgeUseRef | edgeuse, |
size_t * | count | ||
) |
Retrieves the number of EdgeUse objects that are linked to the EdgeUse object.
[in] | edgeuse | The EdgeUse object. |
[out] | count | The number of partners. |
SU_RESULT SUEdgeUseGetPartners | ( | SUEdgeUseRef | edgeuse, |
size_t | len, | ||
SUEdgeUseRef | partners[], | ||
size_t * | count | ||
) |
Retrieves the EdgeUse objects that are linked to the EdgeUse object.
[in] | edgeuse | The EdgeUse object. |
[in] | len | The number of partners to retrieve. |
[out] | partners | The partners retrieved. |
[out] | count | The number of partners retrieved. |
SU_RESULT SUEdgeUseGetPrevious | ( | SUEdgeUseRef | edgeuse, |
SUEdgeUseRef * | prev_edgeuse | ||
) |
Retrieves the EdgeUse object just preceding an EdgeUse object in the collection of linked EdgeUses.
[in] | edgeuse | The EdgeUse object. |
[out] | prev_edgeuse | The EdgeUse retrieved. |
SU_RESULT SUEdgeUseGetStartVertex | ( | SUEdgeUseRef | edgeuse, |
SUVertexRef * | vertex | ||
) |
Retrieves the start vertex of an EdgeUse object. The start vertex of the EdgeUse object may not be the same as the start vertex of the corresponding edge of the EdgeUse object. An EdgeUse object is part of a face loop whose direction may be the reverse of the direction of the edge.
[in] | edgeuse | The EdgeUse object. |
[out] | vertex | The vertex object retrieved. |
SU_RESULT SUEdgeUseGetStartVertexNormal | ( | SUEdgeUseRef | edgeuse, |
struct SUVector3D * | normal | ||
) |
Retrieves the normal vector at the start vertex of an EdgeUse object.
[in] | edgeuse | The EdgeUse object. |
[out] | normal | The normal vector retrieved. |
SU_RESULT SUEdgeUseIsReversed | ( | SUEdgeUseRef | edgeuse, |
bool * | reversed | ||
) |
Retrieves a flag indicating whether this EdgeUse is traversed in the opposite direction as its corresponding edge.
[in] | edgeuse | The EdgeUse object. |
[out] | reversed | The retrieved flag. |
SU_EXPORT SUEntityRef SUEdgeUseToEntity | ( | SUEdgeUseRef | edgeuse | ) |
Converts from an SUEdgeUseRef to an SUEntityRef. This is essentially an upcast operation.
[in] | edgeuse | The given edge use reference. |