SketchUp SDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
edge_use.h
Go to the documentation of this file.
1 // Copyright 2013 Trimble Navigation Ltd. All Rights Reserved.
2 #ifndef SLAPI_MODEL_EDGEUSE_H_
3 #define SLAPI_MODEL_EDGEUSE_H_
4 
5 #include <slapi/slapi.h>
6 #include <slapi/geometry.h>
7 #include <slapi/model/defs.h>
8 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
30 SU_EXPORT SUEntityRef SUEdgeUseToEntity(SUEdgeUseRef edgeuse);
31 
42 
52 SU_RESULT SUEdgeUseGetEdge(SUEdgeUseRef edgeuse, SUEdgeRef* edge);
53 
63 SU_RESULT SUEdgeUseGetLoop(SUEdgeUseRef edgeuse, SULoopRef* loop);
64 
74 SU_RESULT SUEdgeUseGetFace(SUEdgeUseRef edgeuse, SUFaceRef* face);
75 
86 SU_RESULT SUEdgeUseGetNumPartners(SUEdgeUseRef edgeuse, size_t* count);
87 
99 SU_RESULT SUEdgeUseGetPartners(SUEdgeUseRef edgeuse, size_t len,
100  SUEdgeUseRef partners[], size_t* count);
101 
112 SU_RESULT SUEdgeUseIsReversed(SUEdgeUseRef edgeuse, bool* reversed);
113 
124 SU_RESULT SUEdgeUseGetPrevious(SUEdgeUseRef edgeuse,
125  SUEdgeUseRef* prev_edgeuse);
126 
137 SU_RESULT SUEdgeUseGetNext(SUEdgeUseRef edgeuse,
138  SUEdgeUseRef* next_edgeuse);
139 
153 SU_RESULT SUEdgeUseGetStartVertex(SUEdgeUseRef edgeuse,
154  SUVertexRef* vertex);
155 
169 SU_RESULT SUEdgeUseGetEndVertex(SUEdgeUseRef edgeuse,
170  SUVertexRef* vertex);
171 
182  struct SUVector3D* normal);
183 
193 SU_RESULT SUEdgeUseGetEndVertexNormal(SUEdgeUseRef edgeuse,
194  struct SUVector3D* normal);
195 
196 #ifdef __cplusplus
197 } // extern "C" {
198 #endif
199 
200 #endif // SLAPI_MODEL_EDGEUSE_H_