SketchUp SDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
edge.h
Go to the documentation of this file.
1 // Copyright 2013 Trimble Navigation Ltd. All Rights Reserved.
2 #ifndef SLAPI_MODEL_EDGE_H_
3 #define SLAPI_MODEL_EDGE_H_
4 
5 #include <slapi/color.h>
6 #include <slapi/slapi.h>
7 #include <slapi/geometry.h>
8 #include <slapi/unicodestring.h>
9 #include <slapi/model/defs.h>
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
28 SU_EXPORT SUEntityRef SUEdgeToEntity(SUEdgeRef edge);
29 
39 SU_EXPORT SUEdgeRef SUEdgeFromEntity(SUEntityRef entity);
40 
50 
61  drawing_elem);
62 
77 SU_RESULT SUEdgeCreate(SUEdgeRef* edge,
78  const struct SUPoint3D* start,
79  const struct SUPoint3D* end);
80 
92 SU_RESULT SUEdgeRelease(SUEdgeRef* edge);
93 
104 SU_RESULT SUEdgeGetCurve(SUEdgeRef edge, SUCurveRef* curve);
105 
115 SU_RESULT SUEdgeGetStartVertex(SUEdgeRef edge, SUVertexRef* vertex);
116 
126 SU_RESULT SUEdgeGetEndVertex(SUEdgeRef edge, SUVertexRef* vertex);
127 
136 SU_RESULT SUEdgeSetSoft(SUEdgeRef edge, bool soft_flag);
137 
147 SU_RESULT SUEdgeGetSoft(SUEdgeRef edge, bool* soft_flag);
148 
157 SU_RESULT SUEdgeSetSmooth(SUEdgeRef edge, bool smooth_flag);
158 
168 SU_RESULT SUEdgeGetSmooth(SUEdgeRef edge, bool* smooth_flag);
169 
179 SU_RESULT SUEdgeGetNumFaces(SUEdgeRef edge, size_t* count);
180 
192 SU_RESULT SUEdgeGetFaces(SUEdgeRef edge, size_t len, SUFaceRef faces[],
193  size_t* count);
194 
204 SU_RESULT SUEdgeGetColor(SUEdgeRef edge, SUColor* color);
205 
215 SU_RESULT SUEdgeSetColor(SUEdgeRef edge, const SUColor* color);
216 
217 #ifdef __cplusplus
218 } // extern "C"
219 #endif
220 
221 #endif // SLAPI_MODEL_EDGE_H_