SketchUp SDK
|
#include <slapi/geometry.h>
#include <slapi/slapi.h>
#include <slapi/unicodestring.h>
#include <slapi/model/curve.h>
#include <slapi/model/defs.h>
Go to the source code of this file.
Functions | |
SU_RESULT | SUEntitiesFill (SUEntitiesRef entities, SUGeometryInputRef geom_input, bool weld_vertices) |
SUEntitiesFill is the fastest way to populate an entities object. The important precondition is that no duplicate data should be given. More... | |
SU_RESULT | SUEntitiesGetBoundingBox (SUEntitiesRef entities, struct SUBoundingBox3D *bbox) |
Retrieves the bounding box of the entities. More... | |
SU_RESULT | SUEntitiesGetNumFaces (SUEntitiesRef entities, size_t *count) |
Retrieves the number of faces in the entities object. More... | |
SU_RESULT | SUEntitiesGetFaces (SUEntitiesRef entities, size_t len, SUFaceRef faces[], size_t *count) |
Retrieves the faces in the entities object. More... | |
SU_RESULT | SUEntitiesGetNumCurves (SUEntitiesRef entities, size_t *count) |
Retrieves the number of curves in the entities object that are not associated with a face. More... | |
SU_RESULT | SUEntitiesGetCurves (SUEntitiesRef entities, size_t len, SUCurveRef curves[], size_t *count) |
Retrieves the curves in the entities object that are not associated with a face. More... | |
SU_RESULT | SUEntitiesGetNumEdges (SUEntitiesRef entities, bool standalone_only, size_t *count) |
Retrieves the number of edges in the entities object. More... | |
SU_RESULT | SUEntitiesGetEdges (SUEntitiesRef entities, bool standalone_only, size_t len, SUEdgeRef edges[], size_t *count) |
Retrieves the edges in the entities object. More... | |
SU_RESULT | SUEntitiesGetNumPolyline3ds (SUEntitiesRef entities, size_t *count) |
Retrieves the number of polyline3d's in the entities object. More... | |
SU_RESULT | SUEntitiesGetPolyline3ds (SUEntitiesRef entities, size_t len, SUPolyline3dRef lines[], size_t *count) |
Retrieves the polyline3d's in the entities object. More... | |
SU_RESULT | SUEntitiesAddFaces (SUEntitiesRef entities, size_t len, const SUFaceRef faces[]) |
Adds face objects to a entities object. More... | |
SU_RESULT | SUEntitiesAddEdges (SUEntitiesRef entities, size_t len, const SUEdgeRef edges[]) |
Adds edge objects to an entities object. More... | |
SU_RESULT | SUEntitiesAddCurves (SUEntitiesRef entities, size_t len, const SUCurveRef curves[]) |
Adds curve objects to an entities object. More... | |
SU_RESULT | SUEntitiesAddGroup (SUEntitiesRef entities, SUGroupRef group) |
Adds a group object to an entities object. More... | |
SU_RESULT | SUEntitiesAddImage (SUEntitiesRef entities, SUImageRef image) |
Adds an image object to an entities object. More... | |
SU_RESULT | SUEntitiesAddInstance (SUEntitiesRef entities, SUComponentInstanceRef instance, SUStringRef *name) |
Adds a component instance object to the entities. More... | |
SU_RESULT | SUEntitiesGetNumGroups (SUEntitiesRef entities, size_t *count) |
Retrieves the number of groups in the entities. More... | |
SU_RESULT | SUEntitiesGetGroups (SUEntitiesRef entities, size_t len, SUGroupRef groups[], size_t *count) |
Retrieves the groups in the entities. More... | |
SU_RESULT | SUEntitiesGetNumImages (SUEntitiesRef entities, size_t *count) |
Retrieves the number of images in the entities. More... | |
SU_RESULT | SUEntitiesGetImages (SUEntitiesRef entities, size_t len, SUImageRef images[], size_t *count) |
Retrieves the array of image objects of a entities object. More... | |
SU_RESULT | SUEntitiesGetNumInstances (SUEntitiesRef entities, size_t *count) |
Retrieves the number of component instances in the entities. More... | |
SU_RESULT | SUEntitiesGetInstances (SUEntitiesRef entities, size_t len, SUComponentInstanceRef instances[], size_t *count) |
Retrieves the component instances in the entities. More... | |
SU_RESULT SUEntitiesAddCurves | ( | SUEntitiesRef | entities, |
size_t | len, | ||
const SUCurveRef | curves[] | ||
) |
Adds curve objects to an entities object.
[in] | entities | The entities object. |
[in] | len | The length of the array of curve objects. |
[in] | curves | The array of curve objects to add. |
SU_RESULT SUEntitiesAddEdges | ( | SUEntitiesRef | entities, |
size_t | len, | ||
const SUEdgeRef | edges[] | ||
) |
Adds edge objects to an entities object.
[in] | entities | The entities object. |
[in] | len | The length of the array of edge objects. |
[in] | edges | The array of edge objects to add. |
SU_RESULT SUEntitiesAddFaces | ( | SUEntitiesRef | entities, |
size_t | len, | ||
const SUFaceRef | faces[] | ||
) |
Adds face objects to a entities object.
[in] | entities | The entities object. |
[in] | len | The length of the array of face objects. |
[in] | faces | The array of face objects to add. |
SU_RESULT SUEntitiesAddGroup | ( | SUEntitiesRef | entities, |
SUGroupRef | group | ||
) |
Adds a group object to an entities object.
[in] | entities | The entities object. |
[in] | group | The group object to add. |
SU_RESULT SUEntitiesAddImage | ( | SUEntitiesRef | entities, |
SUImageRef | image | ||
) |
Adds an image object to an entities object.
[in] | entities | The entities object. |
[in] | image | The image object to add. |
SU_RESULT SUEntitiesAddInstance | ( | SUEntitiesRef | entities, |
SUComponentInstanceRef | instance, | ||
SUStringRef * | name | ||
) |
Adds a component instance object to the entities.
[in] | entities | The entities object. |
[in] | instance | The component instance object to add. |
[out] | name | The unique name that is assigned to definition of the component instance. This can be NULL in which case the caller does not need to retrieve the assigned name. |
SU_RESULT SUEntitiesFill | ( | SUEntitiesRef | entities, |
SUGeometryInputRef | geom_input, | ||
bool | weld_vertices | ||
) |
SUEntitiesFill is the fastest way to populate an entities object. The important precondition is that no duplicate data should be given.
[in] | entities | The entities to populate. Must be an empty entities object. |
[in] | geom_input | The geometry input that the entities object is to be populated with. |
[in] | weld_vertices | Flag indicating whether to join coincident vertices. |
SU_RESULT SUEntitiesGetBoundingBox | ( | SUEntitiesRef | entities, |
struct SUBoundingBox3D * | bbox | ||
) |
Retrieves the bounding box of the entities.
[in] | entities | The entities object. |
[out] | bbox | The bounding box retrieved. |
SU_RESULT SUEntitiesGetCurves | ( | SUEntitiesRef | entities, |
size_t | len, | ||
SUCurveRef | curves[], | ||
size_t * | count | ||
) |
Retrieves the curves in the entities object that are not associated with a face.
[in] | entities | The entities object. |
[in] | len | The number of curves to retrieve. |
[out] | curves | The curves retrieved. |
[out] | count | The number of curves retrieved. |
SU_RESULT SUEntitiesGetEdges | ( | SUEntitiesRef | entities, |
bool | standalone_only, | ||
size_t | len, | ||
SUEdgeRef | edges[], | ||
size_t * | count | ||
) |
Retrieves the edges in the entities object.
[in] | entities | The entities object. |
[in] | standalone_only | Whether to get all edges (false) or only the edges not attached to curves and faces (true). |
[in] | len | The number of edges to retrieve. |
[out] | edges | The edges retrieved. |
[out] | count | The number of edges retrieved. |
SU_RESULT SUEntitiesGetFaces | ( | SUEntitiesRef | entities, |
size_t | len, | ||
SUFaceRef | faces[], | ||
size_t * | count | ||
) |
Retrieves the faces in the entities object.
[in] | entities | The entities object. |
[in] | len | The number of faces to retrieve. |
[out] | faces | The faces retrieved. |
[out] | count | The number of faces retrieved. |
SU_RESULT SUEntitiesGetGroups | ( | SUEntitiesRef | entities, |
size_t | len, | ||
SUGroupRef | groups[], | ||
size_t * | count | ||
) |
Retrieves the groups in the entities.
[in] | entities | The entities object. |
[in] | len | The number of groups to retrieve. |
[out] | groups | The groups retrieved. |
[out] | count | The number of groups retrieved. |
SU_RESULT SUEntitiesGetImages | ( | SUEntitiesRef | entities, |
size_t | len, | ||
SUImageRef | images[], | ||
size_t * | count | ||
) |
Retrieves the array of image objects of a entities object.
[in] | entities | The entities object. |
[in] | len | The number of image objects to retrieve. |
[out] | images | The image objects retrieved. |
[out] | count | The number of image objects retrieved. |
SU_RESULT SUEntitiesGetInstances | ( | SUEntitiesRef | entities, |
size_t | len, | ||
SUComponentInstanceRef | instances[], | ||
size_t * | count | ||
) |
Retrieves the component instances in the entities.
[in] | entities | The entities object. |
[in] | len | The number of component instances to retrieve. |
[out] | instances | The component instances retrieved. |
[out] | count | The number of component instances retrieved. |
SU_RESULT SUEntitiesGetNumCurves | ( | SUEntitiesRef | entities, |
size_t * | count | ||
) |
Retrieves the number of curves in the entities object that are not associated with a face.
[in] | entities | The entities object. |
[out] | count | The number of curves. |
SU_RESULT SUEntitiesGetNumEdges | ( | SUEntitiesRef | entities, |
bool | standalone_only, | ||
size_t * | count | ||
) |
Retrieves the number of edges in the entities object.
[in] | entities | The entities object. |
[in] | standalone_only | Whether to count all edges (false) or only the edges not attached to curves and faces (true). |
[out] | count | The number of edges. |
SU_RESULT SUEntitiesGetNumFaces | ( | SUEntitiesRef | entities, |
size_t * | count | ||
) |
Retrieves the number of faces in the entities object.
[in] | entities | The entities object. |
[out] | count | The number of faces. |
SU_RESULT SUEntitiesGetNumGroups | ( | SUEntitiesRef | entities, |
size_t * | count | ||
) |
Retrieves the number of groups in the entities.
[in] | entities | The entities object. |
[out] | count | The number of groups. |
SU_RESULT SUEntitiesGetNumImages | ( | SUEntitiesRef | entities, |
size_t * | count | ||
) |
Retrieves the number of images in the entities.
[in] | entities | The entities object. |
[out] | count | The number of image objects. |
SU_RESULT SUEntitiesGetNumInstances | ( | SUEntitiesRef | entities, |
size_t * | count | ||
) |
Retrieves the number of component instances in the entities.
[in] | entities | The entities object. |
[out] | count | The number of component instances. |
SU_RESULT SUEntitiesGetNumPolyline3ds | ( | SUEntitiesRef | entities, |
size_t * | count | ||
) |
Retrieves the number of polyline3d's in the entities object.
[in] | entities | The entities object. |
[out] | count | The the number of polyline3d's. |
SU_RESULT SUEntitiesGetPolyline3ds | ( | SUEntitiesRef | entities, |
size_t | len, | ||
SUPolyline3dRef | lines[], | ||
size_t * | count | ||
) |
Retrieves the polyline3d's in the entities object.
[in] | len | The number of polyline3d's to retrieve. |
[in] | entities | The entities object. |
[out] | lines | The polyline3d's retrieved. |
[out] | count | The number of polyline3d's retrieved. |