PbMesh Class |
Defines an abstract mesh.
Namespace: OIV.MeshViz.Data
The PbMesh type exposes the following members.
Name | Description | |
---|---|---|
AddStringsSet(Int32, String) | Calls AddStringsSet(set_index, val, ""). | |
AddStringsSet(Int32, String, String) | Adds a set of string values . | |
AddValuesSet(Int32, Single) | Calls AddValuesSet(set_index, val, ""). | |
AddValuesSet(Int32, Single, PbMeshDataBindings) | Calls AddValuesSet(set_index, val, binding, ""). | |
AddValuesSet(Int32, Single, String) | Adds a set of scalar values. | |
AddValuesSet(Int32, Single, PbMeshDataBindings, String) | Adds a set of scalar values that can be located either at nodes or at cells. | |
AddVecsSet(Int32, SbVec3f) | Calls AddVecsSet(set_index, val, ""). | |
AddVecsSet(Int32, SbVec3f, String) | Adds a set of vector values . | |
CopyFrom(PbBase) | Assignment operator. | |
CopyFrom(PbMesh) | Assignment operator. | |
EnableConnection | Activates/deactivates the mechanism of connection. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
FindContainingCell(SbVec3f, Single, SbVec3f) | Find the cell that contains the point. | |
FindContainingCell(SbVec3f, Single, SbVec3f, PbCell) | ||
GetAdjacentCellsIndByFacet(Int32, ArrayList) | Obsolete. Gets the list of indices of cells that are adjacent (by a facet) to cell_index. | |
GetAdjacentCellsIndByFacet(Int32, IListInt32) | Gets the list of indices of cells that are adjacent (by a facet) to cell_index. | |
GetAdjacentCellsIndByNode(Int32, ArrayList) | Obsolete. Gets the list of indices of cells that are adjacent (by a node) to cell_index. | |
GetAdjacentCellsIndByNode(Int32, IListInt32) | Gets the list of indices of cells that are adjacent (by a node) to cell_index. | |
GetArea | Gets the area of the mesh. | |
GetBiggestCellBox | Gets the biggest cell's bounding box, returns also the index of this cell . | |
GetBoundingBox | Gets the bounding box of the mesh. | |
GetCell | Gets the cell with index cell_index. | |
GetCoordinates | Get the current coordinates of the nodes of this mesh. | |
GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) | |
GetMaxValuesSet | Gets the max of a set of scalars. | |
GetMaxVecsSet | Gets the max module of a set of vectors. | |
GetMinValuesSet | Gets the min of a set of scalars. | |
GetMinVecsSet | Gets the min module of a set of vectors. | |
GetNodeCoord | Gets the coordinates of a node. | |
GetNodeOwnerCellsInd(Int32, ArrayList) | Obsolete. Gets the list of indices of cells that own the node "nod_index". | |
GetNodeOwnerCellsInd(Int32, IListInt32) | Gets the list of indices of cells that own the node "nod_index". | |
GetNodesOwnerCellsInd(ArrayList, ArrayList) | Obsolete. Gets the list of indices of cells that own the list of nodes "nod_indices". | |
GetNodesOwnerCellsInd(IListInt32, IListInt32) | Gets the list of indices of cells that own the list of nodes "nod_indices". | |
GetNumCells | Gets the number of cells in the mesh. | |
GetNumNodes | Gets the number of nodes in the mesh. | |
GetNumStringsSet | Gets the number of set of string values. | |
GetNumValuesSet | Gets the number of set of scalar values. | |
GetNumVecsSet | Gets the number of set of vector values. | |
GetSmallestCellBox | Gets the smallest cell's bounding box, returns also the index of this cell . | |
GetStringsSet | Gets a set of string values. | |
GetStringsSetName | Gets the name associated to a string values set. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValuesBinding | Gets the binding of the scalar value set. | |
GetValuesSet | Gets a set of scalar values. | |
GetValuesSetName | Gets the name associated to a scalar values set. | |
GetVecsSet | Gets a set of vector values. | |
GetVecsSetName | Gets the name associated to a vec values set. | |
GetVolume | Gets the volume of the mesh. | |
IsConnectionEnabled | Returns true if the connection mechanism is active, otherwise false. | |
IsDataDuplicated | Returns true if mesh's data are duplicated, false otherwise. | |
RemoveAllStringsSet | Remove all sets of strings values. | |
RemoveAllValuesSet | Remove all sets of scalar values. | |
RemoveAllVecsSet | Remove all sets of vector values. | |
RemoveStringsSet | Remove a set of string values. | |
RemoveValuesSet | Remove a set of scalar values. | |
RemoveVecsSet | Remove a set of vector values. | |
SetCoordinates | Set new node coordinates without modifying the mesh topology. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Touch | Simulates the changing of an instance of this object, so all connected objects are informed of this change. |
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.