2019-04-2402:51 PM - last edited on 2022-10-0501:27 PM by Daniel Kassai
I'm working on a importer plugin for Archicad. The plugin needs to create a mesh based on a provided description. I've managed to create meshes with interior vertices using API_MeshLevelCoord. It would seem that Archicad generates the triangles in the mesh automatically if no triangles are specified. This is convenient. However, in my case it is crucial to be able to specify the exact triangles used in the mesh.
My question is, how can I specify the edges/triangles used in a mesh interior using API_Element + API_ElementMemo?
You cannot specify the triangulation for the mesh, because ARCHICAD will re-triangulate the mesh if the user edits it. BTW, AC uses a slightly modified version of the Delauney triangulation.
However, you can set you own triangulation for morphs; see the morphBody member in the element memo.