|
Creates two new polygons. The handles to the newly created polygons are returned
through the arguments back_piece and front_piece.
The polygon is divided into two pieces according to the given split_plane.
You can use the function STATE_math_points_to_plane() to create the splitting plane
Note that the two created polygons are not added to the engine
so they wont be rendered until STATE_engine_add_polygon() is called
Returns OK or VR_ERROR.
If the given plane does not intersect the given polygon then the function will return NULL
for both back_part and front_part. In this case the return value will be OK.
Example:
DWORD back_part=NULL;
DWORD front_part=NULL;
int rc=STATE_polygon_split(my_poly, splitting_plane, &back_part, &front_part);
|