PbMeshFindContainingCell Method (SbVec3f, Single, SbVec3f) |
Find the cell that contains the point.
Namespace: OIV.MeshViz.Data
If the (optional) adjacent cell is given, searching the containing cell starts by the cells around this adjacent one. Returns also the parametric coordinates of the point in the found cell. Parametric coordinates are the coordinates of the point relative to a topological equivalent unit cell. A point is inside a cell if its parametric coordinates range from 0 to 1. However we use a test with a tolerance value : a point is inside the cell if its parametric coordinates p verify -tolerance <= p <= 1+tolerance. Parametric coordinates are useful to interpolate the value in the cell (see OIV.MeshViz.Data.PbCell.GetValue(OIV.Inventor.SbVec3f, System.Single[])). Attention! This method returns always the same address of an internal private cell. This private cell is updated each time findContainingCell is called.