I am using the clip plane to cut the model , my PG is work when I am in the (0,0,0) point but when I go to the any position I have problem to adjust my clip plane.
You shouldn’t increase the value range of slider. If the clip plane moves between -100 - 100. The range it moves should be the same no matter where its positioned.
The plane needs to be shifted by (1000, 1000, 1000) after you update the clip plane.
When you update clipPlane.d, you need to take into fact that the box is shifted by 1000 as well.