how I can do the clipping in open gl

hi

i want design program have some shapes

and i want do some cliping for this shape
by add the menu
for example

*clip with a plane x=y
*the clip upper right quarter of the shape

how can i do something like that??

best regards
Moon_Girl