gp.near

Syntax

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

Note

  • In the description below, the following correspondence is assumed between 3D and 2D analysis:
    • There is no 2D equivalence for 3D zone edges

    • 3D zone faces (surfaces) <-> 2D zone edges (lines)

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

If the optional second argument sgrp is given, the grid point will only be selected if it, an edge connected to 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

sgrp - an optional group name used to restrict the search