Click or drag to resize
PbMesh Class

Defines an abstract mesh.

Inheritance Hierarchy

Namespace: OIV.MeshViz.Data
Assembly: OIV.MeshViz (in OIV.MeshViz.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public class PbMesh : PbBase

The PbMesh type exposes the following members.

Methods
  NameDescription
Public methodAddStringsSet(Int32, String)
Calls AddStringsSet(set_index, val, "").
Public methodAddStringsSet(Int32, String, String)

Adds a set of string values .

Public methodAddValuesSet(Int32, Single)
Calls AddValuesSet(set_index, val, "").
Public methodAddValuesSet(Int32, Single, PbMeshDataBindings)
Calls AddValuesSet(set_index, val, binding, "").
Public methodAddValuesSet(Int32, Single, String)

Adds a set of scalar values.

Public methodAddValuesSet(Int32, Single, PbMeshDataBindings, String)

Adds a set of scalar values that can be located either at nodes or at cells.

Public methodAddVecsSet(Int32, SbVec3f)
Calls AddVecsSet(set_index, val, "").
Public methodAddVecsSet(Int32, SbVec3f, String)

Adds a set of vector values .

Public methodCopyFrom(PbBase)

Assignment operator.

(Inherited from PbBase.)
Public methodCopyFrom(PbMesh)

Assignment operator.

Public methodEnableConnection

Activates/deactivates the mechanism of connection.

(Inherited from PbBase.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodFindContainingCell(SbVec3f, Single, SbVec3f)

Find the cell that contains the point.

Public methodFindContainingCell(SbVec3f, Single, SbVec3f, PbCell)

Public methodGetAdjacentCellsIndByFacet(Int32, ArrayList) Obsolete.

Gets the list of indices of cells that are adjacent (by a facet) to cell_index.

Public methodGetAdjacentCellsIndByFacet(Int32, IListInt32)

Gets the list of indices of cells that are adjacent (by a facet) to cell_index.

Public methodGetAdjacentCellsIndByNode(Int32, ArrayList) Obsolete.

Gets the list of indices of cells that are adjacent (by a node) to cell_index.

Public methodGetAdjacentCellsIndByNode(Int32, IListInt32)

Gets the list of indices of cells that are adjacent (by a node) to cell_index.

Public methodGetArea

Gets the area of the mesh.

Public methodGetBiggestCellBox

Gets the biggest cell's bounding box, returns also the index of this cell .

Public methodGetBoundingBox

Gets the bounding box of the mesh.

Public methodGetCell

Gets the cell with index cell_index.

Public methodGetCoordinates

Get the current coordinates of the nodes of this mesh.

Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodGetMaxValuesSet

Gets the max of a set of scalars.

Public methodGetMaxVecsSet

Gets the max module of a set of vectors.

Public methodGetMinValuesSet

Gets the min of a set of scalars.

Public methodGetMinVecsSet

Gets the min module of a set of vectors.

Public methodGetNodeCoord

Gets the coordinates of a node.

Public methodGetNodeOwnerCellsInd(Int32, ArrayList) Obsolete.

Gets the list of indices of cells that own the node "nod_index".

Public methodGetNodeOwnerCellsInd(Int32, IListInt32)

Gets the list of indices of cells that own the node "nod_index".

Public methodGetNodesOwnerCellsInd(ArrayList, ArrayList) Obsolete.

Gets the list of indices of cells that own the list of nodes "nod_indices".

Public methodGetNodesOwnerCellsInd(IListInt32, IListInt32)

Gets the list of indices of cells that own the list of nodes "nod_indices".

Public methodGetNumCells

Gets the number of cells in the mesh.

Public methodGetNumNodes

Gets the number of nodes in the mesh.

Public methodGetNumStringsSet

Gets the number of set of string values.

Public methodGetNumValuesSet

Gets the number of set of scalar values.

Public methodGetNumVecsSet

Gets the number of set of vector values.

Public methodGetSmallestCellBox

Gets the smallest cell's bounding box, returns also the index of this cell .

Public methodGetStringsSet

Gets a set of string values.

Public methodGetStringsSetName

Gets the name associated to a string values set.

Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValuesBinding

Gets the binding of the scalar value set.

Public methodGetValuesSet

Gets a set of scalar values.

Public methodGetValuesSetName

Gets the name associated to a scalar values set.

Public methodGetVecsSet

Gets a set of vector values.

Public methodGetVecsSetName

Gets the name associated to a vec values set.

Public methodGetVolume

Gets the volume of the mesh.

Public methodIsConnectionEnabled

Returns true if the connection mechanism is active, otherwise false.

(Inherited from PbBase.)
Public methodIsDataDuplicated

Returns true if mesh's data are duplicated, false otherwise.

Public methodRemoveAllStringsSet

Remove all sets of strings values.

Public methodRemoveAllValuesSet

Remove all sets of scalar values.

Public methodRemoveAllVecsSet

Remove all sets of vector values.

Public methodRemoveStringsSet

Remove a set of string values.

Public methodRemoveValuesSet

Remove a set of scalar values.

Public methodRemoveVecsSet

Remove a set of vector values.

Public methodSetCoordinates

Set new node coordinates without modifying the mesh topology.

Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTouch

Simulates the changing of an instance of this object, so all connected objects are informed of this change.

(Inherited from PbBase.)
Top
Remarks

A mesh is a set of nodes linked by edges. A mesh can be a surface mesh (see OIV.MeshViz.Data.PbMesh2D) or a volume mesh (see OIV.MeshViz.Data.PbMesh3D). A surface mesh can be either 2D (its nodes have 2 coordinates) or 3D (its nodes have 3 coordinates). Each node is referred to by an index named node_index.

A mesh is composed of a list of cells. A cell is a "simple" basic volume or surface element that connects adjacent nodes of the mesh. Surface meshes can be defined by triangles, quadrangles and polygonal cells. Volume meshes can be defined by tetrahedrons, hexahedrons, prisms, or pyramid cells. A cell is defined by the list of nodes (node indices) that it connects. The order of the nodes that define a cell is the same for each cell in the mesh. Each cell is referred to by an index named cell_index.

A list of value-set can be defined. A value is a scalar (float), string, or a vector. Each value is located on mesh node, so the number of values in a set must be equal to the number of mesh's nodes. Each set of values can be named by a string.

A scalar value set is used to color the representations of the mesh. A string value set is used by some charting representations. A vector value set is used to make "hedgehog" vector field representations, or streamline representations. Each data-set is referred by an index named set_index. This index is used by classes of mesh representation to indicate which value set must be used for coloring. (see OIV.MeshViz.Data.PoMesh.valuesIndex and OIV.MeshViz.Data.PoMesh.vecsIndex). Mapping a scalar value onto a color is done by OIV.MeshViz.Graph.PbDataMapping or OIV.MeshViz.Nodes.PoDataMapping classes (and derived).

Data duplication:

If the last argument is_data_duplicate of a constructor of a derived class is false, the geometry and values sets are not copied by the object. In this case, the methods setGeometry, addValuesSet, addStringsSet and addVecsSet save only the adress of the user data set and it is the application's responsibility to manage the validity of data during the existence of the mesh object.

See Also