OESetSurfacePotentials

bool OESetSurfacePotentials(OESurface &surf,
                            const OESystem::OEScalarGrid &grid)

Linearly interpolates the values in the OEScalarGrid grid onto the surface surf. The scalar value associated with each vertex can then be accessed using the OESurface.GetPotential and OESurface.GetPotentialElement methods.