SketchUp C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Related Functions
SULoopInputRef Struct Reference

Related Functions

(Note that these are not member functions.)

enum SUResult SULoopInputCreate (SULoopInputRef *loop_input)
 Creates a loop input object. More...
 
enum SUResult SULoopInputRelease (SULoopInputRef *loop_input)
 Deallocates a loop input object. More...
 
enum SUResult SULoopInputAddVertexIndex (SULoopInputRef loop_input, size_t vertex_index)
 Adds a vertex index to a loop input object. More...
 
enum SUResult SULoopInputEdgeSetHidden (SULoopInputRef loop_input, size_t edge_index, bool hidden)
 Sets the hidden flag of an edge in a loop input object. More...
 
enum SUResult SULoopInputEdgeSetSoft (SULoopInputRef loop_input, size_t edge_index, bool soft)
 Sets the soft flag of an edge in a loop input object. More...
 
enum SUResult SULoopInputEdgeSetSmooth (SULoopInputRef loop_input, size_t edge_index, bool smooth)
 Sets the smooth flag of an edge in a loop input object. More...
 
enum SUResult SULoopInputEdgeSetMaterial (SULoopInputRef loop_input, size_t edge_index, SUMaterialRef material)
 Sets the material of an edge in the loop input. More...
 
enum SUResult SULoopInputEdgeSetLayer (SULoopInputRef loop_input, size_t edge_index, SULayerRef layer)
 Sets the layer of an edge in the loop input. More...
 
enum SUResult SULoopInputAddCurve (SULoopInputRef loop_input, size_t first_edge_index, size_t last_edge_index)
 Adds a simple curve to a loop input object. More...
 
enum SUResult SULoopInputIsClosed (SULoopInputRef loop_input, bool *is_closed)
 Retrieves whether the loop input is closed. A loop input can be closed either by re-adding the start vertex to the end of the loop using SULoopInputAddVertexIndex() or by adding a curve to the loop input which connects the loop's start and end points using SULoopInputAddCurve(). More...
 

Friends And Related Function Documentation

enum SUResult SULoopInputAddCurve ( SULoopInputRef  loop_input,
size_t  first_edge_index,
size_t  last_edge_index 
)
related

Adds a simple curve to a loop input object.

Parameters
[in]loop_inputThe loop input object.
[in]first_edge_indexFirst edge index to be associated with the curve.
[in]last_edge_indexLast edge index to be associated with the curve.
See Also
SUGeometryInputRef
Returns
enum SUResult SULoopInputAddVertexIndex ( SULoopInputRef  loop_input,
size_t  vertex_index 
)
related

Adds a vertex index to a loop input object.

Warning
Breaking Change: The behavior of this method was changed in SketchUp 2017 M2, API 5.2. In previous releases this method returned SU_ERROR_INVALID_INPUT if the specified index was already anywhere in the loop. In SketchUp 2017 M1 the concept of an explicitly closed loop was introduced. A loop can be explicitly closed by either using this method to insert an index which is already at the beginning of the loop, or by adding a curve to the loop which connects the loop's start and end points using SULoopInputAddCurve(). If a loop was not previously closed and SULoopInputAddVertexIndex() is used to add the loop's start vertex, the loop will be closed and SU_ERROR_NONE will be returned. If attempts are made to add vertices after a loop has been explicitly closed SU_ERROR_UNSUPPORTED will be returned. If an attempt is made to add a vertex that already existed in an open loop not at the front SU_ERROR_INVALID_ARGUMENT will be returned.
Parameters
[in]loop_inputThe loop input object.
[in]vertex_indexThe vertex index to add. This references a vertex within the parent geometry input's vertex collection (as a zero- based index).
See Also
SUGeometryInputRef
Returns
enum SUResult SULoopInputCreate ( SULoopInputRef loop_input)
related

Creates a loop input object.

Parameters
[out]loop_inputThe object created.
See Also
SUGeometryInputRef
Returns
enum SUResult SULoopInputEdgeSetHidden ( SULoopInputRef  loop_input,
size_t  edge_index,
bool  hidden 
)
related

Sets the hidden flag of an edge in a loop input object.

Parameters
[in]loop_inputThe loop input object.
[in]edge_indexThe zero-based index of the edge within the loop.
[in]hiddenThe flag to set.
See Also
SUGeometryInputRef
Returns
enum SUResult SULoopInputEdgeSetLayer ( SULoopInputRef  loop_input,
size_t  edge_index,
SULayerRef  layer 
)
related

Sets the layer of an edge in the loop input.

Since
SketchUp 2017, API 5.0
Parameters
[in]loop_inputThe loop input object.
[in]edge_indexIndex of the edge to set the layer.
[in]layerThe layer to be set.
See Also
SUGeometryInputRef
Returns
enum SUResult SULoopInputEdgeSetMaterial ( SULoopInputRef  loop_input,
size_t  edge_index,
SUMaterialRef  material 
)
related

Sets the material of an edge in the loop input.

Since
SketchUp 2017, API 5.0
Parameters
[in]loop_inputThe loop input object.
[in]edge_indexIndex of the edge to set the material.
[in]materialThe material to be set.
See Also
SUGeometryInputRef
Returns
enum SUResult SULoopInputEdgeSetSmooth ( SULoopInputRef  loop_input,
size_t  edge_index,
bool  smooth 
)
related

Sets the smooth flag of an edge in a loop input object.

Parameters
[in]loop_inputThe loop input object.
[in]edge_indexThe zero-based index of the edge within the loop.
[in]smoothThe flag to set.
See Also
SUGeometryInputRef
Returns
enum SUResult SULoopInputEdgeSetSoft ( SULoopInputRef  loop_input,
size_t  edge_index,
bool  soft 
)
related

Sets the soft flag of an edge in a loop input object.

Parameters
[in]loop_inputThe loop input object.
[in]edge_indexThe zero-based index of the edge within the loop.
[in]softThe flag to set.
See Also
SUGeometryInputRef
Returns
enum SUResult SULoopInputIsClosed ( SULoopInputRef  loop_input,
bool *  is_closed 
)
related

Retrieves whether the loop input is closed. A loop input can be closed either by re-adding the start vertex to the end of the loop using SULoopInputAddVertexIndex() or by adding a curve to the loop input which connects the loop's start and end points using SULoopInputAddCurve().

Since
SketchUp 2017 M2, API 5.2
Parameters
[in]loop_inputThe loop input object.
[out]is_closedThe flag retrieved (true if the loop is closed).
See Also
SUGeometryInputRef
Returns
enum SUResult SULoopInputRelease ( SULoopInputRef loop_input)
related

Deallocates a loop input object.

Parameters
[in,out]loop_inputThe object to deallocate.
See Also
SUGeometryInputRef
Returns

The documentation for this struct was generated from the following files: