ENH:Modify the accuracy of determining whether the volume is above or below the cutting plane

jira: none
Change-Id: I4b4b60f1bf4d26e037e6e084fae569f3fb75be41
This commit is contained in:
zhou.xu 2025-04-14 12:07:59 +08:00 committed by lane.wei
parent 6055a36593
commit e3f5c6fe15

View File

@ -2856,7 +2856,7 @@ PartSelection::PartSelection(
for (const Vec3f &v : volume->mesh().its.vertices) {
double p = (v - pos).dot(norm);
if (std::abs(p) > EPSILON) {
if (std::abs(p) > 0.01) { // 0.01 mm is enough
m_cut_parts[i].is_up_part = p > 0.;
break;
}