mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-03 02:25:55 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user