gp.near

Syntax

gp := gp.near(v<,sgrp>)

Get the grid point nearest v; will return null if there are no grid points in the model.

If the optional second argument grp is given, the grid point will only be selected if it, a face connected to it, or a zone connected to it belongs to that group.

Returns:

gp - the pointer to the gridpoint closest to v

Arguments:

v - a point in space

grp - an optional group name used to restrict the search