BOOL OGF::dbg_SphereContainsVertex(Fvector& c, float R) { Fsphere S; S.set(c,R); for (u32 it=0; it<vertices.size(); it++) if (S.contains(vertices[it].P)) return TRUE; return FALSE ; }
BOOL SphereValid (FvectorVec& geom, Fsphere& test) { if (!f_valid(test.P.x) || !f_valid(test.R)) { Msg ("*** Attention ***: invalid sphere: %f,%f,%f - %f",test.P.x,test.P.y,test.P.z,test.R); } Fsphere S = test; S.R += EPS_L; for (FvectorIt I = geom.begin(); I!=geom.end(); I++) if (!S.contains(*I)) return FALSE; return TRUE; }