SketchUp SDK
|
Go to the source code of this file.
Enumerations | |
enum | SULoopWinding { SULoopWinding_CCW, SULoopWinding_CW } |
Indicates loop orientation. More... | |
Functions | |
SU_EXPORT SUEntityRef | SULoopToEntity (SULoopRef loop) |
Converts from an SULoopRef to an SUEntityRef. This is essentially an upcast operation. More... | |
SU_EXPORT SULoopRef | SULoopFromEntity (SUEntityRef entity) |
Converts from an SUEntityRef to an SULoopRef. This is essentially a downcast operation so the given SUEntityRef must be convertible to an SULoopRef. More... | |
SU_RESULT | SULoopGetNumVertices (SULoopRef loop, size_t *count) |
Retrieves the number of vertices of a face loop. More... | |
SU_RESULT | SULoopGetVertices (SULoopRef loop, size_t len, SUVertexRef vertices[], size_t *count) |
Retrieves the vertices of a face loop object. More... | |
SU_RESULT | SULoopGetEdges (SULoopRef loop, size_t len, SUEdgeRef edges[], size_t *count) |
Retrieves the edges of a loop object. More... | |
SU_RESULT | SULoopGetWinding (SULoopRef loop, const struct SUVector3D *vector3d, enum SULoopWinding *orientation) |
Retrieves the winding of a loop object with respect to a vector. More... | |
SU_RESULT | SULoopIsEdgeReversed (SULoopRef loop, SUEdgeRef edge, bool *reversed) |
Retrieves a flag indicating the orientation of the given edge relative to a loop object. More... | |
SU_RESULT | SULoopGetFace (SULoopRef loop, SUFaceRef *face) |
Retrieves the parent face of a loop object. More... | |
SU_RESULT | SULoopIsConvex (SULoopRef loop, bool *convex) |
Retrieves a flag indicating the whether the loop is convex. More... | |
SU_RESULT | SULoopIsOuterLoop (SULoopRef loop, bool *outer_loop) |
Retrieves a flag indicating the whether the loop is the outer loop on its associated face. More... | |
SU_RESULT | SULoopGetEdgeUses (SULoopRef loop, size_t len, SUEdgeUseRef edge_uses[], size_t *count) |
Retrieves the edge use objects of a loop. More... | |
enum SULoopWinding |
SU_EXPORT SULoopRef SULoopFromEntity | ( | SUEntityRef | entity | ) |
Converts from an SUEntityRef to an SULoopRef. This is essentially a downcast operation so the given SUEntityRef must be convertible to an SULoopRef.
[in] | entity | The given entity reference. |
Retrieves the edges of a loop object.
[in] | loop | The loop object. |
[in] | len | The number of edges to retrieve. |
[out] | edges | The edges retrieved. |
[out] | count | The number of edges retrieved. |
SU_RESULT SULoopGetEdgeUses | ( | SULoopRef | loop, |
size_t | len, | ||
SUEdgeUseRef | edge_uses[], | ||
size_t * | count | ||
) |
Retrieves the edge use objects of a loop.
[in] | loop | The loop object. |
[in] | len | The number of edge uses to retrieve. |
[out] | edge_uses | The edge uses retrieved. |
[out] | count | The number of edge uses retrieved. |
Retrieves the parent face of a loop object.
[in] | loop | The loop object. |
[out] | face | The face retrieved. |
SU_RESULT SULoopGetNumVertices | ( | SULoopRef | loop, |
size_t * | count | ||
) |
Retrieves the number of vertices of a face loop.
[in] | loop | The loop object. |
[out] | count | The number of vertices. |
SU_RESULT SULoopGetVertices | ( | SULoopRef | loop, |
size_t | len, | ||
SUVertexRef | vertices[], | ||
size_t * | count | ||
) |
Retrieves the vertices of a face loop object.
[in] | loop | The loop object. |
[in] | len | The number of vertices to retrieve. |
[out] | vertices | The vertices retrieved. |
[out] | count | The number of vertices retrieved. |
SU_RESULT SULoopGetWinding | ( | SULoopRef | loop, |
const struct SUVector3D * | vector3d, | ||
enum SULoopWinding * | orientation | ||
) |
Retrieves the winding of a loop object with respect to a vector.
[in] | loop | The loop object. |
[in] | vector3d | The 3D vector. |
[out] | orientation | The orientation retrieved. |
SU_RESULT SULoopIsConvex | ( | SULoopRef | loop, |
bool * | convex | ||
) |
Retrieves a flag indicating the whether the loop is convex.
[in] | loop | The loop object. |
[out] | convex | The flag retrieved. A return value of true indicates the loop is convex. |
Retrieves a flag indicating the orientation of the given edge relative to a loop object.
[in] | loop | The loop object. |
[in] | edge | The edge object. |
[out] | reversed | The flag retrieved. A return value of true indicates that the given edge is oriented opposite of the loop object. |
SU_RESULT SULoopIsOuterLoop | ( | SULoopRef | loop, |
bool * | outer_loop | ||
) |
Retrieves a flag indicating the whether the loop is the outer loop on its associated face.
[in] | loop | The loop object. |
[out] | outer_loop | The flag retrieved. A return value of true indicates the loop is the outer loop. |
SU_EXPORT SUEntityRef SULoopToEntity | ( | SULoopRef | loop | ) |
Converts from an SULoopRef to an SUEntityRef. This is essentially an upcast operation.
[in] | loop | The given loop reference. |