ADNExplodeGeometry.ADN_Utility.AddOsmEditMesh C# (CSharp) Method

AddOsmEditMesh() public static method

Adds the Edit Mesh modifier to the provided node (by handle).
public static AddOsmEditMesh ( uint nodeHandle ) : int
nodeHandle uint Input the node handle to add the modifier to.
return int
        public static int AddOsmEditMesh(uint nodeHandle)
        {
            try
            {

                IGlobal global = Autodesk.Max.GlobalInterface.Instance;
                IInterface14 ip = global.COREInterface14;

                IClass_ID cidOsmEditMesh = global.Class_ID.Create(0x00050, 0);
                AddOsmModifier(nodeHandle, cidOsmEditMesh);
            }
            catch (Exception ex)
            {
                Debug.Print(ex.Message);
                return -1;
            }

            return 1;
        }