Click or drag to resize
PbRegularCartesianGrid2D Class

Defines a regular cartesian grid surface mesh.

Inheritance Hierarchy

Namespace: OIV.MeshViz.Data
Assembly: OIV.MeshViz (in OIV.MeshViz.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public class PbRegularCartesianGrid2D : PbGrid2D

The PbRegularCartesianGrid2D type exposes the following members.

Constructors
Methods
  NameDescription
Public methodAddStringsSet(Int32, String)
Calls AddStringsSet(set_index, val, "").
(Inherited from PbMesh.)
Public methodAddStringsSet(Int32, String, String)

Adds a set of string values .

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

Adds a set of scalar values.

(Inherited from PbMesh.)
Public methodAddValuesSet(Int32, Single, PbMeshDataBindings, String)

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

(Inherited from PbMesh.)
Public methodAddVecsSet(Int32, SbVec3f)
Calls AddVecsSet(set_index, val, "").
(Inherited from PbMesh.)
Public methodAddVecsSet(Int32, SbVec2f)
Calls AddVecsSet(set_index, val, "").
(Inherited from PbMesh2D.)
Public methodAddVecsSet(Int32, SbVec3f, String)

Adds a set of vector values .

(Inherited from PbMesh.)
Public methodAddVecsSet(Int32, SbVec2f, String)

Adds a set of 2D vectors on the mesh.

(Inherited from PbMesh2D.)
Public methodCopyFrom(PbBase)

Assignment operator.

(Inherited from PbBase.)
Public methodCopyFrom(PbGrid2D)

Assignment operator.

(Inherited from PbGrid2D.)
Public methodCopyFrom(PbMesh)

Assignment operator.

(Inherited from PbMesh.)
Public methodCopyFrom(PbRegularCartesianGrid2D)

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.

(Inherited from PbMesh.)
Public methodFindContainingCell(SbVec3f, Single, SbVec3f, PbCell)

(Inherited from PbMesh.)
Public methodGetAdjacentCellsIndByFacet(Int32, ArrayList) Obsolete.

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

(Inherited from PbMesh.)
Public methodGetAdjacentCellsIndByFacet(Int32, IListInt32)

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

(Inherited from PbMesh.)
Public methodGetAdjacentCellsIndByNode(Int32, ArrayList) Obsolete.

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

(Inherited from PbMesh.)
Public methodGetAdjacentCellsIndByNode(Int32, IListInt32)

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

(Inherited from PbMesh.)
Public methodGetArea

Gets the area of the mesh.

(Inherited from PbMesh.)
Public methodGetBiggestCellBox

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

(Inherited from PbMesh.)
Public methodGetBoundingBox

Gets the 2D mesh's bounding box.

(Inherited from PbMesh2D.)
Public methodGetCell

Gets the cell with index cell_index.

(Inherited from PbMesh.)
Public methodGetCellIndices

Calculates indices i,j that verify cell_index = i*(num_y-1) + j.

(Inherited from PbGrid2D.)
Public methodGetCoordinates

Get the current coordinates of the nodes of this mesh.

(Inherited from PbMesh.)
Public methodGetDim

Gets the dimensions num_x, num_y of the grid.

(Inherited from PbGrid2D.)
Public methodGetFaultMesh(Int32, Int32, SbVec3f)

Same as calling getFaultMesh(num_fault_lines, fault_line_sizes, coord,PbMesh2D.USE_ADJACENT_DERIVS, PbDefinedValue())

(Inherited from PbMesh2D.)
Public methodGetFaultMesh(Int32, Int32, SbVec3f, PbMesh2DExtrapolationMethods, PbDefinedValue)

Builds a new mesh by inserting some fault lines in this mesh.

(Inherited from PbMesh2D.)
Public methodGetGeometry(SbNativeArraySingle, SbNativeArraySingle)

Gets the mesh 2D geometry.

(Inherited from PbGrid2D.)
Public methodGetGeometry(SbNativeArraySingle, SbNativeArraySingle, SbNativeArraySingle)

Gets the mesh 3D geometry.

(Inherited from PbGrid2D.)
Public methodGetGeometry(Int32, Int32, Single, Single, Single, Single)

Gets the mesh 2D geometry.

Public methodGetGeometry(Int32, Int32, Single, Single, Single, Single, SbNativeArraySingle)

Gets the mesh 3D geometry.

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

Gets the max of a set of scalars.

(Inherited from PbMesh.)
Public methodGetMaxVecsSet

Gets the max module of a set of vectors.

(Inherited from PbMesh.)
Public methodGetMinValuesSet

Gets the min of a set of scalars.

(Inherited from PbMesh.)
Public methodGetMinVecsSet

Gets the min module of a set of vectors.

(Inherited from PbMesh.)
Public methodGetNodeCoord(Int32)

Gets the coordinates of a node.

(Inherited from PbMesh.)
Public methodGetNodeCoord(Int32, Int32)

Gets the coordinates of a node defined by its i,j indices on the grid.

(Inherited from PbGrid2D.)
Public methodGetNodeIndices

Calculates indices i,j that verify nod_index = i*num_y + j.

(Inherited from PbGrid2D.)
Public methodGetNodeOwnerCellsInd(Int32, ArrayList) Obsolete.

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

(Inherited from PbMesh.)
Public methodGetNodeOwnerCellsInd(Int32, IListInt32)

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

(Inherited from PbMesh.)
Public methodGetNodesOwnerCellsInd(ArrayList, ArrayList) Obsolete.

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

(Inherited from PbMesh.)
Public methodGetNodesOwnerCellsInd(IListInt32, IListInt32)

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

(Inherited from PbMesh.)
Public methodGetNumCells

Gets the number of cells in the mesh.

(Inherited from PbMesh.)
Public methodGetNumNodes

Gets the number of nodes in the mesh.

(Inherited from PbMesh.)
Public methodGetNumStringsSet

Gets the number of set of string values.

(Inherited from PbMesh.)
Public methodGetNumValuesSet

Gets the number of set of scalar values.

(Inherited from PbMesh.)
Public methodGetNumVecsSet

Gets the number of set of vector values.

(Inherited from PbMesh.)
Public methodGetSmallestCellBox

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

(Inherited from PbMesh.)
Public methodGetStringsSet

Gets a set of string values.

(Inherited from PbMesh.)
Public methodGetStringsSetName

Gets the name associated to a string values set.

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

Gets the binding of the scalar value set.

(Inherited from PbMesh.)
Public methodGetValuesSet

Gets a set of scalar values.

(Inherited from PbMesh.)
Public methodGetValuesSetName

Gets the name associated to a scalar values set.

(Inherited from PbMesh.)
Public methodGetVecsSet

Gets a set of vector values.

(Inherited from PbMesh.)
Public methodGetVecsSetName

Gets the name associated to a vec values set.

(Inherited from PbMesh.)
Public methodGetVolume

Gets the volume of the mesh.

(Inherited from PbMesh.)
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.

(Inherited from PbMesh.)
Public methodRemoveAllStringsSet

Remove all sets of strings values.

(Inherited from PbMesh.)
Public methodRemoveAllValuesSet

Remove all sets of scalar values.

(Inherited from PbMesh.)
Public methodRemoveAllVecsSet

Remove all sets of vector values.

(Inherited from PbMesh.)
Public methodRemoveStringsSet

Remove a set of string values.

(Inherited from PbMesh.)
Public methodRemoveValuesSet

Remove a set of scalar values.

(Inherited from PbMesh.)
Public methodRemoveVecsSet

Remove a set of vector values.

(Inherited from PbMesh.)
Public methodSetCoordinates

Set new node coordinates without modifying the mesh topology.

(Inherited from PbMesh.)
Public methodSetGeometry(Int32, Int32, Single, Single)

Defines a 2D surface mesh geometry.

(Inherited from PbGrid2D.)
Public methodSetGeometry(Int32, Int32, Single, Single, Single)

Defines a 3D surface mesh geometry.

(Inherited from PbGrid2D.)
Public methodSetGeometry(Int32, Int32, Single, Single, Single, Single)

Defines a new 2D geometry.

Public methodSetGeometry(Int32, Int32, Single, Single, Single, Single, Single)

Defines a new 3D geometry.

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

Class to define a surface mesh represented by a grid, with cartesian coordinates, of which the lines are parallel to X-axis or Y-axis. This mesh is said regular because the gap between 2 consecutive parallel lines is constant.

The geometry of such a mesh is defined by the 2 dimensions of its grid (num_x,num_y), by its bounding box (x_min,y_min,x_max,y_max) and for a 3D mesh by its z altitudes on each nodes. z is an array of num_x * num_y floats.

The values on the mesh nodes are defined by the PbMesh.addValuesSet(set_index,val) method, where val argument is an array of num_x * num_y floats.

See Also