mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 13:23:51 +00:00
Removing constexpr from if conditions
This commit is contained in:
parent
2909565675
commit
65cff4a4a8
@ -65,8 +65,8 @@ public:
|
||||
this->MinPoint[1] = coords.GetPortalConstControl().GetSecondPortal().Get(0);
|
||||
this->MaxPoint[1] =
|
||||
coords.GetPortalConstControl().GetSecondPortal().Get(PointDimensions[1] - 1);
|
||||
if
|
||||
constexpr(dimensions == 2) return;
|
||||
if (dimensions == 2)
|
||||
return;
|
||||
|
||||
this->AxisPortals[2] = Coords.GetThirdPortal();
|
||||
this->MinPoint[2] = coords.GetPortalConstControl().GetThirdPortal().Get(0);
|
||||
@ -87,8 +87,8 @@ public:
|
||||
inside = false;
|
||||
if (point[1] < this->MinPoint[1] || point[1] > this->MaxPoint[1])
|
||||
inside = false;
|
||||
if
|
||||
constexpr(dimensions == 2) return inside;
|
||||
if (dimensions == 2)
|
||||
return inside;
|
||||
if (point[2] < this->MinPoint[2] || point[2] > this->MaxPoint[2])
|
||||
inside = false;
|
||||
return inside;
|
||||
|
Loading…
Reference in New Issue
Block a user