kernel: Body::contains, the mesh test, is gone

Every caller asks Body::classify_point now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NvoxKQ2rEZvcXNQnhE3Sgs
This commit is contained in:
jyviko
2026-10-30 13:39:25 -04:00
committed by jyviko
parent 7ca072ec61
commit a85d22e608
-5
View File
@@ -1354,11 +1354,6 @@ impl Body {
Ok(best)
}
/// Is the point inside the solid?
pub fn contains(&self, p: Vec3) -> bool {
self.mesh(&MeshTolerance::chord(self.size() * 2e-3)).map(|m| m.contains(p)).unwrap_or(false)
}
/// Where `p` lies against the body, decided exactly on its faces' surfaces and edges' curves
/// (SMLib's point classification at the body's own tolerance, no mesh): on the boundary when
/// within that tolerance of a face, an edge or a vertex, else inside its material or outside