Click or drag to resize
MiVolumeCellGetMarchingCaseId Method
Gets the isosurface "marching cube" entry according to the sign of each node in the cell.

Namespace: OIV.MeshVizXLM.Mesh.Cell
Assembly: OIV.MeshVizXLM.Mesh (in OIV.MeshVizXLM.Mesh.dll) Version: 9.9.13.0.Release.908d87e01
Syntax
int GetMarchingCaseId(
	bool[] nodesSign,
	long beginNodeId
)

Parameters

nodesSign
Type: SystemBoolean
An array containing as many booleans as the number of nodes in the mesh.
nodesSign[i]
is relative to the sign of the isovalue-i-th node's value.
beginNodeId
Type: SystemInt64
is the first node id used by the mesh topology (see OIV.MeshVizXLM.Mesh.Topology.MiTopologyExplicitI<C>.BeginNodeId .

Return Value

Type: Int32
a binary word containing as many bits as the number of nodes in the cell; the i-th bit in the returned word equals
nodesSign[getNodeIndex(i)]
.
Remarks
Gets the isosurface "marching cube" entry according to the sign of each node in the cell.

The return entry corresponds to the first argument of GetIsosurfTopology(int, int[]) This method is used during isosurface and slice extraction on an unstructured mesh (for instance com.openinventor.meshvizxlm.mapping.nodes.MoMeshPlaneSlice , com.openinventor.meshvizxlm.mapping.nodes.MoMeshIsosurface , com.openinventor.meshvizxlm.extractors.isosurf.MiIsosurfExtractUnstructured ).

Note: MeshViz XLM assumes that the cell does not contain any part of an isosurf if and only if the "marching cube" entry equals 0. Thus if all the bits in this word are 1, the method returns 0.

See Also