SketchUp C API
|
References a geometry input object. It is used as an input to SUEntitiesFill(). More...
#include <SketchUpAPI/model/geometry_input.h>
Related Functions | |
(Note that these are not member functions.) | |
enum SUResult | SUGeometryInputCreate (SUGeometryInputRef *geom_input) |
Creates a geometry input object. More... | |
enum SUResult | SUGeometryInputRelease (SUGeometryInputRef *geom_input) |
Deallocates a geometry input object. More... | |
enum SUResult | SUGeometryInputAddVertex (SUGeometryInputRef geom_input, const struct SUPoint3D *point) |
Adds a vertex to a geometry input object. More... | |
enum SUResult | SUGeometryInputSetVertices (SUGeometryInputRef geom_input, size_t num_vertices, const struct SUPoint3D points[]) |
Sets all vertices of a geometry input object. Any existing vertices will be overridden. More... | |
enum SUResult | SUGeometryInputAddEdge (SUGeometryInputRef geom_input, size_t vertex0_index, size_t vertex1_index, size_t *added_edge_index) |
Adds an edge to a geometry input object. This method is intended for specifying edges which are not associated with loop inputs. For specifying edge properties on a face use the SULoopInput interface. More... | |
enum SUResult | SUGeometryInputEdgeSetHidden (SUGeometryInputRef geom_input, size_t edge_index, bool hidden) |
Sets the hidden flag of an edge in a geometry input object which is not associated with a loop input. More... | |
enum SUResult | SUGeometryInputEdgeSetSoft (SUGeometryInputRef geom_input, size_t edge_index, bool soft) |
Sets the soft flag of an edge in a geometry input object which is not associated with a loop input. More... | |
enum SUResult | SUGeometryInputEdgeSetSmooth (SUGeometryInputRef geom_input, size_t edge_index, bool smooth) |
Sets the smooth flag of an edge in a geometry input object which is not associated with a loop input. More... | |
enum SUResult | SUGeometryInputEdgeSetMaterial (SUGeometryInputRef geom_input, size_t edge_index, SUMaterialRef material) |
Sets the material of an edge in the geometry input. More... | |
enum SUResult | SUGeometryInputEdgeSetLayer (SUGeometryInputRef geom_input, size_t edge_index, SULayerRef layer) |
Sets the layer of an edge in the geometry input. More... | |
enum SUResult | SUGeometryInputAddCurve (SUGeometryInputRef geom_input, size_t num_edges, const size_t edge_indices[], size_t *added_curve_index) |
Adds a curve to a geometry input object. This method is intended for specifying curves which are not associated with loop inputs. For specifying curves on faces use the SULoopInput interface. More... | |
enum SUResult | SUGeometryInputAddArcCurve (SUGeometryInputRef geom_input, size_t start_point, size_t end_point, const struct SUPoint3D *center, const struct SUVector3D *normal, size_t num_segments, size_t *added_curve_index, size_t *control_edge_index) |
Adds an arccurve to a geometry input object. In addition to adding an arccurve to the geometry input this method will append num_segments edges to the geometry's edge collection where control_edge_index is the index of the first new edge. Also, num_segments-1 vertices along the arc will be appended to the geometry's collection of verttices. In order to include an arccurve in a loop the user only needs add the arccurve's points to a loop using SULoopInputAddVertexIndex(). More... | |
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... | |
enum SUResult | SUGeometryInputAddFace (SUGeometryInputRef geom_input, SULoopInputRef *outer_loop, size_t *added_face_index) |
Adds a face to a geometry input object with a given outer loop for the face. More... | |
enum SUResult | SUGeometryInputFaceSetReverse (SUGeometryInputRef geom_input, size_t face_index, bool reverse) |
Sets a flag in the geometry input that, when true, will create a face by reversing the orientations of all of its loops. More... | |
enum SUResult | SUGeometryInputFaceSetLayer (SUGeometryInputRef geom_input, size_t face_index, SULayerRef layer) |
Sets the layer of a face in the geometry input. More... | |
enum SUResult | SUGeometryInputFaceAddInnerLoop (SUGeometryInputRef geom_input, size_t face_index, SULoopInputRef *loop_input) |
Adds an inner loop to a face in the geometry input. More... | |
enum SUResult | SUGeometryInputFaceSetFrontMaterial (SUGeometryInputRef geom_input, size_t face_index, const struct SUMaterialInput *material_input) |
Sets the front material of a face in the geometry input. More... | |
enum SUResult | SUGeometryInputFaceSetBackMaterial (SUGeometryInputRef geom_input, size_t face_index, const struct SUMaterialInput *material_input) |
Sets the back material of a face in the geometry input. More... | |
enum SUResult | SUGeometryInputFaceSetFrontMaterialByPosition (SUGeometryInputRef geom_input, size_t face_index, const struct SUMaterialPositionInput *material_input) |
Sets the front material of a face in the geometry input. More... | |
enum SUResult | SUGeometryInputFaceSetBackMaterialByPosition (SUGeometryInputRef geom_input, size_t face_index, const struct SUMaterialPositionInput *material_input) |
Sets the back material of a face in the geometry input. More... | |
enum SUResult | SUGeometryInputFaceSetHidden (SUGeometryInputRef geom_input, size_t face_index, bool hidden) |
Sets a flag in the geometry input that, when true, will create a hidden face. More... | |
enum SUResult | SUGeometryInputGetCounts (SUGeometryInputRef geom_input, size_t *vertices_count, size_t *faces_count, size_t *edge_count, size_t *curve_count, size_t *arc_count) |
Returns all the various geometry counts. More... | |
References a geometry input object. It is used as an input to SUEntitiesFill().
|
related |
Adds an arccurve to a geometry input object. In addition to adding an arccurve to the geometry input this method will append num_segments edges to the geometry's edge collection where control_edge_index is the index of the first new edge. Also, num_segments-1 vertices along the arc will be appended to the geometry's collection of verttices. In order to include an arccurve in a loop the user only needs add the arccurve's points to a loop using SULoopInputAddVertexIndex().
[in] | geom_input | The geometry input object. |
[in] | start_point | The index of the vertex at the start of the arc. |
[in] | end_point | The index of the vertex at the end of the arc. |
[in] | center | The center point of the arc's circle. |
[in] | normal | The normal vector of the arc plane. |
[in] | num_segments | The number of edges for the arc. |
[out] | added_curve_index | (optional) If not NULL, returns the index of the added curve. |
[out] | control_edge_index | (optional) If not NULL, returns the index of the the arc's control edge which can be used to set the arc's edge properties. |
|
related |
Adds a curve to a geometry input object. This method is intended for specifying curves which are not associated with loop inputs. For specifying curves on faces use the SULoopInput interface.
[in] | geom_input | The geometry input object. |
[in] | num_edges | The number of edges to be used in the curve. |
[in] | edge_indices | The edge indices to be used in defining the curve. |
[out] | added_curve_index | (optional) If not NULL, returns the index of the added curve. |
|
related |
Adds an edge to a geometry input object. This method is intended for specifying edges which are not associated with loop inputs. For specifying edge properties on a face use the SULoopInput interface.
[in] | geom_input | The geometry input object. |
[in] | vertex0_index | The vertex index of the edge's first vertex. |
[in] | vertex1_index | The vertex index of the edge's last vertex. |
[out] | added_edge_index | (optional) If not NULL, returns the index of the added edge. |
|
related |
Adds a face to a geometry input object with a given outer loop for the face.
[in] | geom_input | The geometry input object. |
[in] | outer_loop | The outer loop to be set for the face. If the function succeeds (i.e. returns SU_ERROR_NONE), this loop will be deallocated. |
[out] | added_face_index | (optional) If not NULL, returns the index of the added face. |
|
related |
Adds a vertex to a geometry input object.
[in] | geom_input | The geometry input object. |
[in] | point | The location of the vertex to be added. |
|
related |
Creates a geometry input object.
[out] | geom_input | The object created. This object can be passed into SUEntitiesFill() to populate an entities object. It should be released subsequently by calling SUGeometryInputRelease(). |
|
related |
Sets the hidden flag of an edge in a geometry input object which is not associated with a loop input.
[in] | geom_input | The geometry input object. |
[in] | edge_index | The zero-based index of the edge which is not associated with a loop input. |
[in] | hidden | The flag to set. |
|
related |
Sets the layer of an edge in the geometry input.
[in] | geom_input | The geometry input object. |
[in] | edge_index | Index of the edge to set the layer. |
[in] | layer | The layer to be set. |
|
related |
Sets the material of an edge in the geometry input.
[in] | geom_input | The geometry input object. |
[in] | edge_index | Index of the edge to set the material. |
[in] | material | The material to be set. |
|
related |
Sets the smooth flag of an edge in a geometry input object which is not associated with a loop input.
[in] | geom_input | The geometry input object. |
[in] | edge_index | The zero-based index of the edge which is not associated with a loop input. |
[in] | smooth | The flag to set. |
|
related |
Sets the soft flag of an edge in a geometry input object which is not associated with a loop input.
[in] | geom_input | The geometry input object. |
[in] | edge_index | The zero-based index of the edge which is not associated with a loop input. |
[in] | soft | The flag to set. |
|
related |
Adds an inner loop to a face in the geometry input.
[in] | geom_input | The geometry input object. |
[in] | face_index | Index of the face to receive the inner loop. |
[in] | loop_input | The inner loop to be added. If the function succeeds (i.e. returns SU_ERROR_NONE), this loop will be deallocated. |
|
related |
Sets the back material of a face in the geometry input.
[in] | geom_input | The geometry input object. |
[in] | face_index | Index of the face to receive the material. |
[in] | material_input | The material input to set. |
|
related |
Sets the back material of a face in the geometry input.
[in] | geom_input | The geometry input object. |
[in] | face_index | Index of the face to receive the material. |
[in] | material_input | The material input to set. |
geom_input
is not validface_index
references a face beyond the total face count of geom_input
material_input
is NULL
|
related |
Sets the front material of a face in the geometry input.
[in] | geom_input | The geometry input object. |
[in] | face_index | Index of the face to receive the material. |
[in] | material_input | The material input to set. |
|
related |
Sets the front material of a face in the geometry input.
[in] | geom_input | The geometry input object. |
[in] | face_index | Index of the face to receive the material. |
[in] | material_input | The material input to set. |
geom_input
is not validface_index
references a face beyond the total face count of geom_input
material_input
is NULL
|
related |
Sets a flag in the geometry input that, when true, will create a hidden face.
[in] | geom_input | The geometry input object. |
[in] | face_index | Index of the face to be hidden. |
[in] | hidden | The given hidden flag. |
|
related |
Sets the layer of a face in the geometry input.
[in] | geom_input | The geometry input object. |
[in] | face_index | Index of the face to be reversed. |
[in] | layer | The layer to be set. |
|
related |
Sets a flag in the geometry input that, when true, will create a face by reversing the orientations of all of its loops.
[in] | geom_input | The geometry input object. |
[in] | face_index | Index of the face to be reversed. |
[in] | reverse | The given reverse flag. |
|
related |
Returns all the various geometry counts.
[in] | geom_input | The geometry input object. |
[out] | vertices_count | The total count of vertices. |
[out] | faces_count | The total count of faces. |
[out] | edge_count | The total count of edges. |
[out] | curve_count | The total count of curves. |
[out] | arc_count | The total count of arcs. |
|
related |
Deallocates a geometry input object.
[in] | geom_input | The object to deallocate. |
|
related |
Sets all vertices of a geometry input object. Any existing vertices will be overridden.
[in] | geom_input | The geometry input object. |
[in] | num_vertices | The number of vertices in the given point array. |
[in] | points | The points array containing the location of vertices. |
|
related |
Adds a simple curve to a loop input object.
[in] | loop_input | The loop input object. |
[in] | first_edge_index | First edge index to be associated with the curve. |
[in] | last_edge_index | Last edge index to be associated with the curve. |
|
related |
Adds a vertex index to a loop input object.
[in] | loop_input | The loop input object. |
[in] | vertex_index | The vertex index to add. This references a vertex within the parent geometry input's vertex collection (as a zero- based index). |
|
related |
Creates a loop input object.
[out] | loop_input | The object created. |
|
related |
Sets the hidden flag of an edge in a loop input object.
[in] | loop_input | The loop input object. |
[in] | edge_index | The zero-based index of the edge within the loop. |
[in] | hidden | The flag to set. |
|
related |
Sets the layer of an edge in the loop input.
[in] | loop_input | The loop input object. |
[in] | edge_index | Index of the edge to set the layer. |
[in] | layer | The layer to be set. |
|
related |
Sets the material of an edge in the loop input.
[in] | loop_input | The loop input object. |
[in] | edge_index | Index of the edge to set the material. |
[in] | material | The material to be set. |
|
related |
Sets the smooth flag of an edge in a loop input object.
[in] | loop_input | The loop input object. |
[in] | edge_index | The zero-based index of the edge within the loop. |
[in] | smooth | The flag to set. |
|
related |
Sets the soft flag of an edge in a loop input object.
[in] | loop_input | The loop input object. |
[in] | edge_index | The zero-based index of the edge within the loop. |
[in] | soft | The flag to set. |
|
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().
[in] | loop_input | The loop input object. |
[out] | is_closed | The flag retrieved (true if the loop is closed). |
|
related |
Deallocates a loop input object.
[in] | loop_input | The object to deallocate. |