Service alert: BIMcloud SaaS disruption in the US Read more

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

Some doubts in Example 3D_Test

sxs
Contributor

Hi,everyone:

  I am trying to export geometry, so I plan to refer to Example 3D_Test(Examples\3D_Test\Src\3D_Test.c)。

  But I have a few doubts after reading the code:

      

sxs_0-1747994068979.png

 

    1. I know you want to transform a vertex to a Local coordinate system, but during the Enumerate, the conts[0][0] will change. Can this code achieve its purpose?

 

     

sxs_1-1747994296681.png

  2, if nConts == 1 (this should mean polygon has no hole?), and how should I handle this situation?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
sxs
Contributor

"if(nConts > 1)" change to "if(nConts >= 1)"

View solution in original post

2 REPLIES 2
sxs
Contributor

this code is in DumpBody.

Solution
sxs
Contributor

"if(nConts > 1)" change to "if(nConts >= 1)"