STATE_polygon_get_first_polygon

 

 


   *** a very important function
   Using the functions STATE_polygon_get_first_polygon() and STATE_polygon_get_next()
   it is easy to go all over the polygons that exist inside the world
  
   Example:
      	for(DWORD poly=STATE_polygon_get_first_polygon(); poly!=NULL; poly=STATE_polygon_get_next(poly) ) {
  			if(STATE_polygon_is_disabled(poly)==YES)
  				continue;   it is up to you if you want to process disabled polygons. All the functions will work on disabled polygons
  
  			DWORD object=STATE_polygon_check_if_belongs_to_an_object(poly);
  			if(object==NULL) {
  				  The polygons belong to the static part of the world
  				do something ...
  			}
  			else {
  				  The polygon belongs to a dynamic object
  				do something ...
  			}
  		}
  

 

 

Go to page 1      Select API

 

Copyright © 2007 3DSTATE Corporation. www.3dstate.com