We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Archicad C++ API
About Archicad add-on development using the C++ API.

Problem with ACAPI_Goodies(APIAny_TriangulatePolyId)function

Anonymous
Not applicable
Hi,

One of my zone is ended up with hole but I am getting element.zone.poly.nSubPolys = 1. And I am using Archicad 9.0.

I am trying to use ACAPI_Goodies(APIAny_TriangulatePolyId, &memo, &coords); I am getting APIERR_REFUSEDPAR error. I checked for zone.poly structure nCoords = 22, nSubPolys =1 and nArcs = 0, poly_id = 1298. So, there are no arcs in the poly.

I am giving example zone polygon with coordinate values and can you please tell me why this command is failing?

temp.JPG
1 REPLY 1
Ralph Wessel
Mentor
Ranga wrote:
I am trying to use ACAPI_Goodies(APIAny_TriangulatePolyId, &memo, &coords); I am getting APIERR_REFUSEDPAR error.
I'm guessing your polygon has coincident edges (2->3 and 6->7) and APIAny_TriangulatePolyId won't accept that.
Ralph Wessel BArch
Software Engineer Speckle Systems