Skip to content
Snippets Groups Projects
Commit 4806f92e authored by Jacques-Bernard Lekien's avatar Jacques-Bernard Lekien Committed by Charly Bollinger
Browse files

vtkHyperTreeGridAxisClip: Fix InsideOut behavior

When InsideOut was false, cells cut by the plane were not included.
They are now included in both cases like in a general Clip.
parent d8247282
No related branches found
No related tags found
No related merge requests found
3cc237eb171341b339c859174bf00d4efb4047f6fc89efd60c5c87720323f15e63458a8be01d210c29fd150cee4e3a5c0a3df7ad26e3a290660c4a8607a5b042
33b13e60dcd89157ecf9744d666ff902862bfd3aafa35356193797f465cb02db2cd2d71a9d5272221352cee4761e5f8fb1f5543c4d3782ac7fb3c1417f054c5d
51f702be41aaee43103dd3fbd8d333af69bfd487fa2ca75725d5df6442909c1bc133a4e529e4dc759221ca8adacaab3c0c9b9d967737baa2214070d43d802b17
74329ffeec4f3b214b5958b23a5d86834e3bd9907679fc6281e0d3493d8f9a3cb522cacf93c31bffa037d6cf792852d2cb73e2b5df21d8e807009dc1eb78f52a
......@@ -187,12 +187,10 @@ bool vtkHyperTreeGridAxisClip::IsClipped(vtkHyperTreeGridNonOrientedGeometryCurs
// Retrieve geometric size of input cursor
const double* size = cursor->GetSize();
// Check whether cursor is below hyperplane
if (origin[axis] + size[axis] < inter)
{
return !this->InsideOut;
}
break;
// Check if the cell pointed to by the cursor is under the plane:
// returns true if the cell is skipped
// returns false if the cell is kept
return this->InsideOut ? (origin[axis] > inter) : (origin[axis] + size[axis] < inter);
} // case PLANE
case vtkHyperTreeGridAxisClip::BOX:
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment