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

01 January 2011, 08:39 AM
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 );
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 January 2011, 08: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.