Community
3ds Max Programming
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max SDK, Maxscript and Python topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get mesh of instanced GeomObject

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
269 Views, 0 Replies

Get mesh of instanced GeomObject

How can I get the mesh from an instanced GeomObject?

 

In maxscript I do:

gsphere = createInstance geosphere radius:1 segs:4
gsphere_mesh = gsphere.mesh

Here is the first line of the maxscript translated into C++:

GeomObject *GSphere = (GeomObject*)ip->CreateInstance(GEOMOBJECT_CLASS_ID, GSPHERE_CLASS_ID);
GSphere->GetParamBlockByID(2)->SetValue(0, 0, 1);
GSphere->GetParamBlockByID(2)->SetValue(1, 0, 4);

Now, I need to get the mesh, but I cannot figure out how.  There is no "GetMesh()" or "GetTriMesh()" functions.

 

Thanks for any help.

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report