Go to the source code of this file.
Defines curve types that can be represented by SUCurveRef.
Enumerator |
---|
SUCurveType_Simple |
|
SUCurveType_Arc |
|
Creates a curve object with the given array of edges that is not connected to any face object. The array of N edges is sorted such that for each edge in the range [0, N] the start position of each edge is the same as the end position of the previous edge in the array. Each element of the array of edges is subsequently associated with the created curve object and must not be deallocated via SUEdgeRelease.
- Parameters
-
curve | The curve object created. |
edges | The array of edge objects. |
len | The number of edge objects in the array. |
- Returns
-
Converts from an SUEntityRef to an SUCurveRef. This is essentially a downcast operation so the given SUEntityRef must be convertible to an SUCurveRef.
- Parameters
-
[in] | entity | The given entity reference. |
- Returns
- The converted SUCurveRef if the downcast operation succeeds
- If not, the returned reference will be invalid
Retrieves the edges of a curve object.
- Parameters
-
[in] | curve | The curve object. |
[in] | len | The number of edges to retrieve. |
[out] | edges | The edges retrieved. |
[out] | count | The number of edges retrieved. |
- Returns
-
SU_RESULT SUCurveGetNumEdges |
( |
SUCurveRef |
curve, |
|
|
size_t * |
count |
|
) |
| |
Retrieves the number of edges that belong to a curve object.
- Parameters
-
[in] | curve | The curve object. |
[out] | count | The number of edges. |
- Returns
-
Retrieves the curve type of a curve object.
- Parameters
-
[in] | curve | The curve object. |
[out] | type | The curve type retrieved. |
- Returns
-
Releases a curve object and its associated edge objects.
- Parameters
-
- Returns
-
Converts from an SUCurveRef to an SUEntityRef. This is essentially an upcast operation.
- Parameters
-
[in] | curve | The given curve reference. |
- Returns
- The converted SUEntityRef if curve is a valid object
- If not, the returned reference will be invalid