예제 #1
0
 //////////////////////////////////////////////////////////////////
 //
 // 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;
 }
예제 #2
0
        //////////////////////////////////////////////////////////////////
        //
        // 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);
        }
예제 #3
0
 //
 // 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;
 }
예제 #4
0
		// 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;
		}