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.

How I can change one vertex point of the Modeler::Body* in API_MorphType element ?

Anonymous
Not applicable
I have one line morph element.
I need to change z coords of the vertexes as I want.
How I Can modify it?
1 REPLY 1
Anonymous
Not applicable
I find it!))
May be usefull to anybody.
It's work:
--------------
Modeler::MeshBody* mb;
VERT *vrt;
int ivcount;
mb = element_memo.morphBody;
if (mb->IsWireBody())
{
ivcount = mb->GetVertexCount();
for (int i = 0; i < ivcount; i++)
{
vrt = (VERT*)&mb->GetConstVertex(i);
vrt->x = 1;
}
}

// And then do change memo to apply changes on Morph element.