achaudhry wrote: > But the model doesnt seem to work. as the function returns an error that it > needs dGeomID type of arguments and not space. > That is a compiler error, not a function return, right? It turns out that spaces are geoms, so just casting the arguments to dGeomID will work. Cheers, / h+