|
Archicad 29 C++ API
|
This function family gives support to create or modify the body of a morph element. More...
Functions | |
| GSErrCode | ACAPI_Body_Create (const Modeler::MeshBody *body, const API_OverriddenAttribute *bodyMaterialMapTable, void **bodyData) |
| Initializes a new body data object for editing. | |
| GSErrCode | ACAPI_Body_Finish (void *bodyData, Modeler::MeshBody **body, API_OverriddenAttribute **bodyMaterialMapTable) |
| Converts the body data object to a format, that can be passed to an API_ElementMemo structure. | |
| GSErrCode | ACAPI_Body_Dispose (void **bodyData) |
| Disposes the body data object. | |
| GSErrCode | ACAPI_Body_AddVertex (void *bodyData, const API_Coord3D &coord, UInt32 &index) |
| Adds a vertex to the body data object. | |
| GSErrCode | ACAPI_Body_AddEdge (void *bodyData, const UInt32 vertex1, const UInt32 vertex2, Int32 &index) |
| Adds a vertex to the body data object. | |
| GSErrCode | ACAPI_Body_AddPolyNormal (void *bodyData, const API_Vector3D &normal, Int32 &index) |
| Adds a polygon normal vector to the body data object. | |
| GSErrCode | ACAPI_Body_AddPolygon (void *bodyData, const GS::Array< Int32 > &edges, const Int32 polyNormal, const API_OverriddenAttribute &material, UInt32 &index) |
| Adds a polygon to the body data object. | |
This function family gives support to create or modify the body of a morph element.
| GSErrCode ACAPI_Body_AddEdge | ( | void * | bodyData, |
| const UInt32 | vertex1, | ||
| const UInt32 | vertex2, | ||
| Int32 & | index ) |
Adds a vertex to the body data object.
| bodyData | [in] The body data object to add the edge to. |
| vertex1 | [in] Index of the first vertex of the edge. |
| vertex2 | [in] Index of the second vertex of the edge. |
| index | [out] The index of the created edge, can be used later to create polygons. |
| GSErrCode ACAPI_Body_AddPolygon | ( | void * | bodyData, |
| const GS::Array< Int32 > & | edges, | ||
| const Int32 | polyNormal, | ||
| const API_OverriddenAttribute & | material, | ||
| UInt32 & | index ) |
Adds a polygon to the body data object.
| bodyData | [in] The body data object to add the polygon to. |
| edges | [in] List of the edges of the polygon. |
| polyNormal | [in] Signed index of the normal vector. |
| material | [in] Material override structure of the polygon. |
| index | [out] The index of the created polygon. |
| GSErrCode ACAPI_Body_AddPolyNormal | ( | void * | bodyData, |
| const API_Vector3D & | normal, | ||
| Int32 & | index ) |
Adds a polygon normal vector to the body data object.
| bodyData | [in] The body data object to add the normal vector to. |
| normal | [in] The normal vector to add. |
| index | [out] The index of the created normal vector, can be used later to create polygons. |
| GSErrCode ACAPI_Body_AddVertex | ( | void * | bodyData, |
| const API_Coord3D & | coord, | ||
| UInt32 & | index ) |
Adds a vertex to the body data object.
| bodyData | [in] The body data object to add the vertex to. |
| coord | [in] Position of the vertex to add. |
| index | [out] The index of the created vertex, can be used later to define edges. |
| GSErrCode ACAPI_Body_Create | ( | const Modeler::MeshBody * | body, |
| const API_OverriddenAttribute * | bodyMaterialMapTable, | ||
| void ** | bodyData ) |
Initializes a new body data object for editing.
| body | [in] The body object to start the editing with. nullptr can be passed to create a new body. |
| bodyMaterialMapTable | [in] The initial material override structure list of the polygons of the body. nullptr can be passed in case of a new body. |
| bodyData | [out] The body data object, that shall be passed to further editing functions. |
| GSErrCode ACAPI_Body_Dispose | ( | void ** | bodyData | ) |
Disposes the body data object.
| bodyData | [in] The body data object to dispose. |
| GSErrCode ACAPI_Body_Finish | ( | void * | bodyData, |
| Modeler::MeshBody ** | body, | ||
| API_OverriddenAttribute ** | bodyMaterialMapTable ) |
Converts the body data object to a format, that can be passed to an API_ElementMemo structure.
| bodyData | [in] The body data object to convert. |
| body | [out] The body object to put the resulting body to. |
| bodyMaterialMapTable | [out] The material override structure list of the polygons of the body. |