Developer forum
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!