cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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

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.

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!