////////////////////////////////////////////////////////////////// // // Overrides from MPxGeometryData // ////////////////////////////////////////////////////////////////// public override MPxGeometryIterator iterator( MObjectArray componentList, MObject component, bool useComponents) { apiMeshGeomIterator result = null; if ( useComponents ) { result = new apiMeshGeomIterator( fGeometry, componentList ); } else { result = new apiMeshGeomIterator( fGeometry, component ); } return result; }
////////////////////////////////////////////////////////////////// // // Overrides from MPxGeometryData // ////////////////////////////////////////////////////////////////// public override MPxGeometryIterator iterator(MObjectArray componentList, MObject component, bool useComponents) { apiMeshGeomIterator result = null; if (useComponents) { result = new apiMeshGeomIterator(fGeometry, componentList); } else { result = new apiMeshGeomIterator(fGeometry, component); } return(result); }
// // Description // // Creates a geometry iterator compatible with his shape. // // Arguments // // componentList - list of components to be iterated // components - component to be iterator // forReadOnly - // // Returns // // An iterator for the components // // Associates a user defined iterator with the shape (components) // public override MPxGeometryIterator geometryIteratorSetup( MObjectArray componentList, MObject components, bool forReadOnly = false) { apiMeshGeomIterator result = null; if ( components.isNull ) { result = new apiMeshGeomIterator( meshGeom(), componentList ); } else { result = new apiMeshGeomIterator( meshGeom(), components ); } return result; }
// Associates a user defined iterator with the shape (components) // public override MPxGeometryIterator geometryIteratorSetup( MObjectArray componentList, MObject components, bool forReadOnly = false ) // // Description // // Creates a geometry iterator compatible with his shape. // // Arguments // // componentList - list of components to be iterated // components - component to be iterator // forReadOnly - // // Returns // // An iterator for the components // { apiMeshGeomIterator result = null; if ( components.isNull ) { result = new apiMeshGeomIterator( meshGeom(), componentList ); } else { result = new apiMeshGeomIterator( meshGeom(), components ); } return result; }