public override bool IsInDF(ref Vector3 p) { if (MathEx.AABBIsIn(ref aabb, ref p)) { if (children != null) { bool isin = new bool(); for (int i = 0; i < children.Length; i++) { isin |= children[i].IsInDF(ref p); } return(isin); } else { Plane pl = new Plane(faceData.a, faceData.b, faceData.c); pl.Normalize(); return(Math.Abs(MathEx.PlaneRelative(ref pl, ref p)) <= 2); } } return(false); }