Skip to content
Snippets Groups Projects
Commit 16e4d65d authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Finding the lower left corner is easy

parent e1d43a6d
No related branches found
No related tags found
No related merge requests found
......@@ -204,20 +204,9 @@ int main(int argc, char *argv[]) {
coordinates[id] = it->geometry().corner(0);
auto const &localCoordinates = coordinates[id];
// Find the center of the lower face
switch (dims) {
case 3:
if (localCoordinates[2] != lowerLeft[2])
break;
// fallthrough
case 2:
if (localCoordinates[1] == lowerLeft[1] &&
std::abs(localCoordinates[0] - lowerLeft[0]) < 1e-8)
specialNode = id;
break;
default:
assert(false);
}
// Find the lower left corner
if (localCoordinates == lowerLeft)
specialNode = id;
// lower face
if (localCoordinates[1] == lowerLeft[1]) {
......
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