Click or drag to resize
MiCellIsPointInsideCell Method
Checks if a point is inside or outside this cell.

Namespace: OIV.MeshVizXLM.Mesh.Cell
Assembly: OIV.MeshVizXLM.Mesh (in OIV.MeshVizXLM.Mesh.dll) Version: 9.9.13.0.Release.908d87e01
Syntax
bool IsPointInsideCell(
	MiGeometryI meshGeometry,
	double[] point,
	double[] weights
)

Parameters

meshGeometry
Type: OIV.MeshVizXLM.Mesh.GeometryMiGeometryI
the geometry of the mesh. It is used to retrieve the node coordinates of this cell
point
Type: SystemDouble
coordinates {x,y,z} of point to be checked
weights
Type: SystemDouble
the array into which the weight values are to be stored, it must contain at least as many elements as the number of nodes in this cell.

Return Value

Type: Boolean
if the point is inside this cell
Remarks
Checks if a point is inside or outside this cell.

If the point is inside this cell, the specified array is filled with weight values of the point. A weight value (aka shape function) must be given for each node of the cell, see chapter "Properties of shape functions" in the User's Guide for more details.

This method is not used by all extraction classes but it is needed for streamline extraction for example.

Note: For extraction purpose only, it is not necessary to allocate the weight array since extraction classes are optimized such as weight arrays passed to this method are already allocated and large enough to retrieve all the computed weights. Thus the following assignment is then sufficient:

weight[i] = wi
for each i with 0 <= i < getNumNodes

See Also