cs.cmu.edu/~kmcrane/Proje…
We reimagine geometric algorithms without mesh generation or linear solves. Basically "ray tracing for geometry"—and that analogy goes pretty deep (1/n)
float sum=0.f;
for(int i=0;i<N;i++){
Vec3D x=x0;
float R;
do{
R=INF;
for(auto t:tris) R=min(R,dist(x,t));
x=x+R*randSphere();
}while(R>1e-3);
sum+=g(x);
}
return sum/nWalks;
}