Near Plane Clipping?
GIMP version: 2.10.x 2.99.x
Whilst looking to improve the "Crop to result" and "Crop with aspect" results I was pulling a 600x600 pixel image around with the unified transform tool and noticed the behaviour shown in the images below. The first image shows the shape when gimp-transform-utils.c/gimp_transform_polygon() returns the 4 control points as shown on the screen. Moving the topmost control point down slightly cause this function to return the upper 3 control points plus two interpolated points; this results in the second image. Similar effects occur if the topmost control point is moved back to it's original position but one of the side control points is moved towards the centre - as shown in the final two images. This effect doesn't occur when the bottom control point is moved upwards.
I assume that this is near plane clipping in action and it occurs as a result of gimp-transform-utils.h/GIMP_TRANSFORM_NEAR_Z being set to 0.02. If I edit this constant to have a value of 0.0 the near plane clipping doesn't occur.
From what I have read I assumed that near plane clipping was only relevant to 3D graphics. My question is, therefore, why is GIMP doing this when it is (basically) a 2D editor. I guess that there would be many other users who would not expect this to happen.
Could this be changed from a constant to a configuration setting? Either with a checkbox to select between on (0.02) and off (0.0) or a value that can be set between 0.0 and 1.0 (the range of values that GEGL expects for this parameter). The default should be set to 0.0 to disable the feature - I feel that it is more likely that users who want to produce 3D graphics would be more likely to know that they would need to enable the feature, than would users creating 2D images who didn't know why the 'odd' effect that they were seeing was happening.
I would be happy to add the code to make this a configuration option if it was decided where the setting should be made (in preferences or in the UT tool options?)