Skip to content

Draft: Tweak ClipClosedSurface points for accuracy

David Gobbi requested to merge dgobbi/vtk:clip-closed-surface-tweak into master

When the clipping plane is aligned with the x, y, z axes, ensure any generated points lie exactly within the plane by correcting any roundoff error in the dimension that corresponds to the plane normal.

Note:

Tuning the values of the points after-the-fact is an ugly kludge. The values of these points should only be set once. Setting them and then adjusting them later makes the code harder to maintain.

It would be better to improve the precision of the clipping up front, even though a much larger change to the code would be needed. This requires computing the clip points from the clipping plane itself, rather than just using the clipping scalars.

Edited by David Gobbi

Merge request reports