home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / grafik / 3d & render tools / irit / man / man6 / mergepoly.6 < prev    next >
Encoding:
Text File  |  1996-07-16  |  1.0 KB  |  36 lines

  1. .TH MERGEPOLY
  2.  6 "IRIT Version 6.0" 
  3. .SH NAME
  4. MERGEPOLY
  5.  
  6.  
  7.  
  8.  PolygonType MERGEPOLY( ListType PolyList )
  9.  
  10. Merges a set of polygonal objects in PolyList list to a single polygonal
  11. object. All elements in ObjectList must be of PolygonType type. This
  12. function performs the same operation as the overloaded ^ operator
  13. would, but might be more convenient to use under some circumstances.
  14.  
  15. Example:
  16.  
  17.     Vrtx1 = vector( -3, -2, -1 );
  18.     Vrtx2 = vector( 3, -2, -1 );
  19.     Vrtx3 = vector( 3, 2, -1 );
  20.     Vrtx4 = vector( -3, 2, -1 );
  21.     Poly1 = poly( list( Vrtx1, Vrtx2, Vrtx3, Vrtx4 ), false ); 
  22.     
  23.     Vrtx1 = vector( -3, 2, 1 );
  24.     Vrtx2 = vector( 3, 2, 1 );
  25.     Vrtx3 = vector( 3, -2, 1 );
  26.     Vrtx4 = vector( -3, -2, 1 );
  27.     Poly2 = poly( list( Vrtx1, Vrtx2, Vrtx3, Vrtx4 ), false );
  28.     
  29.     Vrtx1 = vector( -3, -2, 1 );
  30.     Vrtx2 = vector( 3, -2, 1 );
  31.     Vrtx3 = vector( 3, -2, -1 );
  32.     Vrtx4 = vector( -3, -2, -1 );
  33.     Poly3 = poly( list( Vrtx1, Vrtx2, Vrtx3, Vrtx4 ), false );
  34.    
  35.     PolyObj = MERGEPOLY( list( Poly1, Poly2, Poly3 ) );
  36.