PDA

View Full Version : getting all vertices in INode - weld with value "x". SDK


stigatle
01-06-2011, 07:39 AM
Hi,
I'm making a test plugin.

It does the following:
exposes a function to maxscript through SDK.

so I enter :
myFunction $

then in my code I've got the node.
The thing now is that I've got to get all vertices and weld if they are closer then "X".
Like "weld" tool in edit poly mode.

How do I move forward?

My function is now:

void FixMesh(INode* p_node)
{
Mesh mesh(p_node);

if (mesh.numfaces < 0 && mesh.isTriMesh)
{
MessageBox( NULL, "This node will not fix, it has no faces.!\nCritical Error!", "Error!", MB_OK|MB_ICONERROR );
}
else
{
MessageBox( NULL, "This node will be fixed :)", "Error!", MB_OK|MB_ICONERROR );

//What do I do here?
//I want to get all vertices, and weld with value "X".

}
}

CGTalk Moderation
01-06-2011, 07:39 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.