Archicad 28 C++ API
|
Functions to change the shape of a polygon. These polygons are always provided through API_ElementMemo. More...
Classes | |
struct | API_RegularizedPoly |
Structure for regularizing polygon or polyline. More... | |
Enumerations | |
enum | API_SurfaceTypeID { APISurfaceType_NotSpecified = 0 , APISurfaceType_BeamFirst = 0x1000 , APISurfaceType_BeamRight = 0x1000 , APISurfaceType_BeamLeft , APISurfaceType_BeamSide , APISurfaceType_BeamTop , APISurfaceType_BeamBottom , APISurfaceType_BeamCut , APISurfaceType_BeamLast = APISurfaceType_BeamCut , APISurfaceType_ColumnFisrt = 0x2000 , APISurfaceType_ColumnTop = 0x2000 , APISurfaceType_ColumnBottom , APISurfaceType_ColumnCoreSide , APISurfaceType_ColumnVeneerSide , APISurfaceType_ColumnCut , APISurfaceType_ColumnLast = APISurfaceType_ColumnCut , APISurfaceType_SlabFirst = 0x3000 , APISurfaceType_SlabTop = 0x3000 , APISurfaceType_SlabBottom , APISurfaceType_SlabSide , APISurfaceType_SlabCut , APISurfaceType_SlabLast = APISurfaceType_SlabCut , APISurfaceType_WallFirst = 0x4000 , APISurfaceType_WallRefSide = 0x4000 , APISurfaceType_WallOppSide , APISurfaceType_WallSide , APISurfaceType_WallCut , APISurfaceType_WallLast = APISurfaceType_WallCut , APISurfaceType_ShellReferenceFirst = 0x5000 , APISurfaceType_ShellReferenceSide = 0x5000 , APISurfaceType_ShellOppositeSide , APISurfaceType_ShellRidge , APISurfaceType_ShellValley , APISurfaceType_ShellGable , APISurfaceType_ShellHip , APISurfaceType_ShellEaves , APISurfaceType_ShellPeak , APISurfaceType_ShellSideWall , APISurfaceType_ShellEndWall , APISurfaceType_ShellRTDome , APISurfaceType_ShellRTHollow , APISurfaceType_ShellSide , APISurfaceType_ShellCut , APISurfaceType_ShellInnerReferenceSide , APISurfaceType_ShellInnerOppositeSide , APISurfaceType_ShellLast = APISurfaceType_ShellInnerOppositeSide , APISurfaceType_PlaneRoofFirst = 0x6000 , APISurfaceType_PlaneRoofTop = 0x6000 , APISurfaceType_PlaneRoofBottom , APISurfaceType_PlaneRoofRidge , APISurfaceType_PlaneRoofValley , APISurfaceType_PlaneRoofGable , APISurfaceType_PlaneRoofHip , APISurfaceType_PlaneRoofEaves , APISurfaceType_PlaneRoofPeak , APISurfaceType_PlaneRoofSideWall , APISurfaceType_PlaneRoofEndWall , APISurfaceType_PlaneRoofRTDome , APISurfaceType_PlaneRoofRTHollow , APISurfaceType_PlaneRoofSide , APISurfaceType_PlaneRoofCut , APISurfaceType_PlaneRoofLast = APISurfaceType_PlaneRoofCut , APISurfaceType_PolyRoofFirst = 0x7000 , APISurfaceType_PolyRoofTop = 0x7000 , APISurfaceType_PolyRoofBottom , APISurfaceType_PolyRoofRidge , APISurfaceType_PolyRoofValley , APISurfaceType_PolyRoofGable , APISurfaceType_PolyRoofHip , APISurfaceType_PolyRoofEaves , APISurfaceType_PolyRoofPeak , APISurfaceType_PolyRoofSideWall , APISurfaceType_PolyRoofEndWall , APISurfaceType_PolyRoofRTDome , APISurfaceType_PolyRoofRTHollow , APISurfaceType_PolyRoofUndefined , APISurfaceType_PolyRoofInner , APISurfaceType_PolyRoofCut , APISurfaceType_PolyRoofLast = APISurfaceType_PolyRoofCut } |
Possible types of a surface. | |
Functions | |
GSErrCode | ACAPI_Polygon_InsertPolyNode (API_ElementMemo *elementMemo, Int32 *nodeIndex, API_Coord *coord) |
Inserts a node into a polygon. | |
GSErrCode | ACAPI_Polygon_DeletePolyNode (API_ElementMemo *memo, Int32 *inIndex) |
Deletes a node from a polygon. | |
GSErrCode | ACAPI_Polygon_InsertSubPoly (API_ElementMemo *memo, API_ElementMemo *insMemo) |
Inserts a whole subpolygon (hole) into a polygon. | |
GSErrCode | ACAPI_Polygon_DeleteSubPoly (API_ElementMemo *elementMemo, Int32 *subPolyIndex) |
Deletes a whole subpolygon (hole) from a polygon. | |
GSErrCode | ACAPI_Polygon_RegularizePolygon (const API_RegularizedPoly *polygon, Int32 *nResult, API_RegularizedPoly ***regularizedPolygons) |
Regularizes a polygon and returns the regularized polygons. | |
GSErrCode | ACAPI_Polygon_RegularizePolyline (const API_RegularizedPoly *polyline, API_RegularizedPoly *regularizedPolyline) |
Regularizes a polyline and returns the regularized polyline. | |
GSErrCode | ACAPI_Polygon_DisposeRegularizedPoly (API_RegularizedPoly *regularizedPoly) |
Deallocates handles in an API_RegularizedPoly struct. | |
GSErrCode | ACAPI_Polygon_TriangulatePoly (API_ElementMemo *memo, API_Coord ***coords) |
Decomposes a polygon into triangles. | |
GSErrCode | ACAPI_Polygon_PolygonId2SurfaceType (const API_Element *elem=nullptr, const Int32 *polygonId=nullptr, API_SurfaceTypeID *surfaceType=nullptr) |
Converts a picture into another image format. | |
Functions to change the shape of a polygon. These polygons are always provided through API_ElementMemo.
GSErrCode ACAPI_Polygon_DeletePolyNode | ( | API_ElementMemo * | memo, |
Int32 * | inIndex | ||
) |
Deletes a node from a polygon.
memo | [in/out] The polygon data. |
inIndex | [in] node index (subindex of the element) to delete |
GSErrCode ACAPI_Polygon_DeleteSubPoly | ( | API_ElementMemo * | elementMemo, |
Int32 * | subPolyIndex | ||
) |
Deletes a whole subpolygon (hole) from a polygon.
elementMemo | [in/out] The polygon data. |
subPolyIndex | [in] subpolygon index to delete |
GSErrCode ACAPI_Polygon_DisposeRegularizedPoly | ( | API_RegularizedPoly * | regularizedPoly | ) |
Deallocates handles in an API_RegularizedPoly struct.
regularizedPoly | [in] The polygon or polyline data to dipose. |
GSErrCode ACAPI_Polygon_InsertPolyNode | ( | API_ElementMemo * | elementMemo, |
Int32 * | nodeIndex, | ||
API_Coord * | coord | ||
) |
Inserts a node into a polygon.
elementMemo | [in/out] The polygon data. |
nodeIndex | [in] node index (subindex of the element) to insert a new node after |
coord | [in] The coordinate of the new node. |
GSErrCode ACAPI_Polygon_InsertSubPoly | ( | API_ElementMemo * | memo, |
API_ElementMemo * | insMemo | ||
) |
Inserts a whole subpolygon (hole) into a polygon.
memo | [in/out] The polygon data. |
insMemo | [in] Data of the new subpolygon. |
GSErrCode ACAPI_Polygon_PolygonId2SurfaceType | ( | const API_Element * | elem = nullptr , |
const Int32 * | polygonId = nullptr , |
||
API_SurfaceTypeID * | surfaceType = nullptr |
||
) |
Converts a picture into another image format.
elem | [in] Parameter elem for element type identification. Give elem.header.guid or elem.header.typeId. For roofs specify elem.roof.roofClass also. |
polygonId | [in] Parameter polygonId. |
surfaceType | [out] Parameter surfaceType. |
GSErrCode ACAPI_Polygon_RegularizePolygon | ( | const API_RegularizedPoly * | polygon, |
Int32 * | nResult, | ||
API_RegularizedPoly *** | regularizedPolygons | ||
) |
Regularizes a polygon and returns the regularized polygons.
polygon | [in] The polygon to regularize. |
nResult | [out] The number of resulting regularized polygons. |
regularizedPolygons | [out] The result of regularization. |
GSErrCode ACAPI_Polygon_RegularizePolyline | ( | const API_RegularizedPoly * | polyline, |
API_RegularizedPoly * | regularizedPolyline | ||
) |
Regularizes a polyline and returns the regularized polyline.
polyline | [in] The polyline to regularize. |
regularizedPolyline | [out] The result of regularization. |
GSErrCode ACAPI_Polygon_TriangulatePoly | ( | API_ElementMemo * | memo, |
API_Coord *** | coords | ||
) |
Decomposes a polygon into triangles.
memo | [in] Parameters of an polygon. The coordinates of the polygon and the subpolygon endpoints must be coords handle and pends handle in the memo. |
coords | [out] Coordinates of the triangles |