Skip to content

Commit 45333f4

Browse files
committed
add comment for V3D comparison
1 parent f7c3c30 commit 45333f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Framework/Algorithms/src/SampleCorrections/IBeamProfile.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ Geometry::IObject_sptr IBeamProfile::getIntersectionWithSample(const Geometry::I
8585
return nullptr;
8686
}
8787

88+
// If the intersection volume is the same as the sample volume use the sample volume instead of creating a new shape
89+
// V3D operator== comparison is done with a 1.0e-6 tolerance
8890
if ((sampleBB.minPoint() == intersectionBox.minPoint()) && (sampleBB.maxPoint() == intersectionBox.maxPoint())) {
8991
return std::shared_ptr<Geometry::IObject>(sample.clone());
9092
}

0 commit comments

Comments
 (0)