Click or drag to resize
PbMeshFindContainingCell Method (SbVec3f, Single, SbVec3f)

Find the cell that contains the point.

Namespace: OIV.MeshViz.Data
Assembly: OIV.MeshViz (in OIV.MeshViz.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax
public PbCell FindContainingCell(
	SbVec3f point,
	float tolerance,
	out SbVec3f pcoord
)

Parameters

point
Type: OIV.InventorSbVec3f
tolerance
Type: SystemSingle
pcoord
Type: OIV.InventorSbVec3f

Return Value

Type: PbCell
Remarks

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.

See Also