Skip to content

Commit

Permalink
fix some edge-case scenarios i think
Browse files Browse the repository at this point in the history
  • Loading branch information
H-A-M-G-E-R committed Apr 2, 2024
1 parent 1ba9828 commit 7d4e2db
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions miratope-core/src/conc/faceting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -977,10 +977,7 @@ fn faceting_subdim(
vertices: new_vertices.clone(),
abs: abs.clone(),
};

if let Some(circumsphere) = Hypersphere::circumsphere(&new_vertices) {
poly.recenter_with(&circumsphere.center);
}
poly.recenter();

let amount = poly.element_types()[1].len();

Expand All @@ -992,13 +989,8 @@ fn faceting_subdim(
let components = poly.split();
let mut isogonal = true;
for mut component in components {
if let Some(circumsphere) = Hypersphere::circumsphere(component.vertices()) {
component.recenter_with(&circumsphere.center);
if component.element_types()[1].len() > 1 {
isogonal = false;
break;
}
} else {
component.recenter();
if component.element_types()[1].len() > 1 {
isogonal = false;
break;
}
Expand Down

0 comments on commit 7d4e2db

Please sign in to comment.