STATE_polygon_check_if_belongs_to_an_object

 

 


   If the diven polygon belongs to a dynamic object that the function will return
   the handle to that dynamic object. If the polygon belongs to the static part
   of the world, the function will return NULL.
   Remarks:
  		Sometimes a polygon can belong to several objects. This happens when
  		the function STATE_object_duplicate() is used with the flag
  		duplicate_polygons_flag==NO. In this case the created object will share the polygons of
  		the original copy. When a polygon belongs to several objects
  		the function STATE_polygon_check_if_belongs_to_an_object() will return
  		a handle to the original object that contains the polygons (also called the master object)
  
   Example:
  			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