Exemplo n.º 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;
 }
Exemplo n.º 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);
        }
Exemplo n.º 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;
 }
Exemplo n.º 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;
		}